/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Noto Sans Arabic", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: color 0.3s ease, background-color 0.3s ease;
  overflow-x: hidden;
}

/* CSS Variables */
:root {
  /* Light Theme Colors */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  --secondary-50: #f0fdf4;
  --secondary-100: #dcfce7;
  --secondary-200: #bbf7d0;
  --secondary-300: #86efac;
  --secondary-400: #4ade80;
  --secondary-500: #22c55e;
  --secondary-600: #16a34a;
  --secondary-700: #15803d;
  --secondary-800: #166534;
  --secondary-900: #14532d;

  --accent-50: #fefce8;
  --accent-100: #fef9c3;
  --accent-200: #fef08a;
  --accent-300: #fde047;
  --accent-400: #facc15;
  --accent-500: #eab308;
  --accent-600: #ca8a04;
  --accent-700: #a16207;
  --accent-800: #854d0e;
  --accent-900: #713f12;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Light Theme Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-tertiary: #9ca3af;
  --border-primary: #e5e7eb;
  --border-secondary: #d1d5db;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Dark Theme Variables */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-tertiary: #64748b;
  --border-primary: #334155;
  --border-secondary: #475569;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.3), 0 8px 10px -6px rgb(0 0 0 / 0.3);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary-600), var(--secondary-700));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, var(--secondary-700), var(--secondary-800));
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-primary);
}

.btn-outline:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-600);
  color: var(--primary-600);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: var(--bg-secondary);
  border: 2px solid var(--border-primary);
  border-radius: 2rem;
  padding: 0.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}

.toggle-track {
  width: 3rem;
  height: 1.5rem;
  background: var(--bg-tertiary);
  border-radius: 1rem;
  position: relative;
  transition: background-color 0.3s ease;
}

.toggle-thumb {
  position: absolute;
  top: 0.125rem;
  left: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--primary-600);
  border-radius: 50%;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .toggle-thumb {
  transform: translateX(1.5rem);
}

.sun-icon,
.moon-icon {
  width: 0.75rem;
  height: 0.75rem;
  color: white;
  transition: opacity 0.3s ease;
}

.sun-icon {
  opacity: 1;
}

.moon-icon {
  opacity: 0;
  position: absolute;
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-primary);
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.8);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
}

.nav-menu {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-600);
  background: var(--primary-50);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  background: rgba(14, 165, 233, 0.1);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  width: 1.5rem;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(14, 165, 233, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.hero-particles {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(34, 197, 94, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(234, 179, 8, 0.1) 0%, transparent 50%);
  animation: particles-float 15s ease-in-out infinite;
}

@keyframes particles-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.badge-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 8px;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 4.5rem;
    display: block;
  }
}

.title-line {
  display: block;
}

.title-line.highlight {
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600), var(--accent-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 1rem;
  border: 1px solid var(--border-primary);
}

@media (min-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-600);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* YouTube Content Section */
.youtube-content {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.content-section {
  margin-bottom: 4rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.content-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.view-all-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  color: var(--primary-700);
  transform: translateX(-2px);
}

.link-icon {
  width: 1rem;
  height: 1rem;
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.loading-spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid var(--border-primary);
  border-top: 3px solid var(--primary-600);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.shorts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .shorts-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .shorts-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.hidden {
  display: none;
}

/* Features Section */
.features {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--border-primary);
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Newsletter Section */
.newsletter {
  padding: 6rem 0;
  background: url(../assets/minecraft-desert-background.png);
  /* filter: brightness(75%); */
  background-blend-mode: overlay;
  color: white;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
  color: rgb(255, 255, 255);
}

@media (min-width: 1024px) {
  .newsletter-content {
    grid-template-columns: 1fr 1fr;
    text-align: right;
    color: rgb(255, 255, 255);
  }
}

.newsletter-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: rgb(69, 66, 66);
}

.newsletter-description {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.6;
  color: rgb(69, 66, 66);
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
  color: rgb(69, 66, 66);
}

@media (min-width: 1024px) {
  .newsletter-form {
    margin: 0;
    color: rgb(69, 66, 66);

  }
}

.form-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgb(69, 66, 66);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgb(69, 66, 66);

}

.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.form-note {
  font-size: 0.875rem;
  opacity: 0.8;
  text-align: center;
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-primary);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: 2fr 3fr;
  }
}

.footer-brand .brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.link-group {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--primary-600);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-primary);
  text-align: center;
}

.copyright {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.disclaimer {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* Page-specific styles */

/* Breadcrumb */
.breadcrumb {
  padding: 6rem 0 2rem;
  background: var(--bg-secondary);
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-600);
}

.breadcrumb-separator {
  color: var(--text-tertiary);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Page Header */
.page-header {
  padding: 8rem 0 4rem 0;
  /* padding-top */
  text-align: center;
  /* padding-top: 50px; */
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Filter/Category Sections */
.filter-section,
.news-categories {
  padding: 2rem 0;
  background: var(--bg-secondary);
}

.filter-container,
.categories-container {
  text-align: center;
}

.filter-title,
.categories-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.filter-buttons,
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.filter-btn,
.category-btn {
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 2rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.category-btn:hover,
.filter-btn.active,
.category-btn.active {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
}

/* Card Grids */
.mods-grid,
.theories-grid,
.tutorials-grid,
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .mods-grid,
  .theories-grid,
  .tutorials-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mods-grid,
  .theories-grid,
  .tutorials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Generic Card Styles */
.mod-card,
.theory-card,
.tutorial-card,
.news-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.mod-card:hover,
.theory-card:hover,
.tutorial-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.mod-image,
.theory-image,
.tutorial-image,
.news-image {
  position: relative;
  height: 200px;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-placeholder {
  width: 4rem;
  height: 4rem;
  color: var(--text-tertiary);
}

.image-placeholder svg {
  width: 100%;
  height: 100%;
}

/* Placeholder backgrounds */
.tech-bg {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.adventure-bg {
  background: linear-gradient(135deg, #10b981, #047857);
}
.magic-bg {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
}
.decoration-bg {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.utility-bg {
  background: linear-gradient(135deg, #6b7280, #374151);
}
.mystery-bg {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}
.ancient-bg {
  background: linear-gradient(135deg, #92400e, #451a03);
}
.ocean-bg {
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}
.civilization-bg {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}
.lunar-bg {
  background: linear-gradient(135deg, #64748b, #334155);
}
.time-bg {
  background: linear-gradient(135deg, #059669, #047857);
}
.beginner-bg {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.intermediate-bg {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.advanced-bg {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}
.potion-bg {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
}
.farming-bg {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}
.redstone-bg {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.update-bg {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.security-bg {
  background: linear-gradient(135deg, #10b981, #047857);
}
.event-bg {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.community-bg {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
}
.mod-bg {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.bugfix-bg {
  background: linear-gradient(135deg, #6b7280, #374151);
}
.esports-bg {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Badges */
.mod-badges,
.theory-badges,
.tutorial-badges,
.news-badges {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}

.badge-new {
  background: var(--secondary-600);
}

.badge-popular {
  background: var(--accent-600);
}

.badge-featured {
  background: var(--primary-600);
}

.badge-beginner {
  background: var(--secondary-600);
}

.badge-intermediate {
  background: var(--accent-600);
}

.badge-advanced {
  background: var(--red-600);
}

.badge-technical {
  background: var(--gray-600);
}

.badge-mystery {
  background: var(--purple-600);
}

.badge-update {
  background: var(--blue-600);
}

/* Card Content */
.mod-content,
.theory-content,
.tutorial-content,
.news-content {
  padding: 1.5rem;
}

.mod-header,
.theory-header,
.tutorial-header,
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.mod-title,
.theory-title,
.tutorial-title,
.news-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.mod-description,
.theory-description,
.tutorial-description,
.news-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Meta Information */
.mod-meta,
.theory-meta,
.tutorial-meta,
.news-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.meta-category {
  padding: 0.25rem 0.75rem;
  background: var(--secondary-100);
  color: var(--secondary-700);
  border-radius: 1rem;
  font-weight: 600;
}

[data-theme="dark"] .meta-category {
  background: rgba(34, 197, 94, 0.2);
  color: var(--secondary-400);
}

.meta-date,
.meta-views,
.meta-author,
.meta-difficulty {
  color: var(--text-tertiary);
}

/* Ratings */
.mod-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stars {
  display: flex;
  gap: 0.125rem;
}

.star {
  color: var(--gray-300);
  font-size: 1rem;
}

.star.filled {
  color: var(--accent-500);
}

.rating-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Tags */
.mod-tags,
.theory-tags,
.tutorial-tags,
.news-tags,
.tutorial-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tag,
.topic {
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Stats */
.mod-stats,
.theory-stats,
.tutorial-stats,
.news-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-tertiary);
}

.stat-icon {
  width: 1rem;
  height: 1rem;
}

/* Actions */
.mod-actions,
.theory-actions,
.tutorial-actions,
.news-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Duration Badge */
.tutorial-duration {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Featured Content */
.featured-theory,
.featured-news {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.theory-card.featured,
.news-card.featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .theory-card.featured,
  .news-card.featured {
    grid-template-columns: 1fr 1fr;
  }
}

.theory-card.featured .theory-image,
.news-card.featured .news-image {
  height: 300px;
}

/* Breaking News */
.breaking-news {
  padding: 2rem 0;
  background: linear-gradient(135deg, var(--red-600), var(--red-700));
  color: white;
}

.breaking-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 767px) {
  .breaking-banner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
}

.breaking-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breaking-text {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.875rem;
}

.breaking-pulse {
  width: 0.5rem;
  height: 0.5rem;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.breaking-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.breaking-description {
  opacity: 0.9;
  line-height: 1.5;
}

/* Learning Path */
.learning-path {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.path-header {
  text-align: center;
  margin-bottom: 3rem;
}

.path-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.path-description {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.path-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .path-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.step {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.step-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-bar {
  flex: 1;
  height: 0.5rem;
  background: var(--bg-tertiary);
  border-radius: 0.25rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary-600);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Community Theories */
.community-theories {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.community-theory {
  background: var(--bg-primary);
  padding: 1.5rem;
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.community-theory:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-600);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-meta {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

.theory-content {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.theory-engagement {
  display: flex;
  gap: 1rem;
}

.engagement-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color 0.3s ease;
}

.engagement-btn:hover {
  color: var(--primary-600);
}

.engagement-btn svg {
  width: 1rem;
  height: 1rem;
}

.community-cta {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 1rem;
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.cta-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-600), var(--secondary-600));
  color: white;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-description {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cta-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 640px) {
  .cta-actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Newsletter Subscription */
.newsletter-subscription {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.newsletter-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Load More */
.load-more-section {
  text-align: center;
  padding: 2rem 0;
}

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

*{
   font-family: "Cairo", sans-serif !important;
}

/* Responsive Design */
@media (max-width: 767px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .newsletter-title,
  .cta-title {
    font-size: 2rem;
  }

  .form-group {
    flex-direction: column;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .filter-buttons,
  .category-buttons {
    justify-content: flex-start;
  }

  .mod-actions,
  .theory-actions,
  .tutorial-actions,
  .news-actions {
    flex-direction: column;
  }

  .cta-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
button:focus,
input:focus,
a:focus {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .theme-toggle,
  .navbar,
  .hero-background,
  .newsletter,
  .footer {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}

/* Utility Classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-600);
}

/* Selection */
::selection {
  background: var(--primary-600);
  color: white;
}
