/**
 * MAIN WEBSITE STYLES - UPDATED
 */

:root {
  --primary-color: #A0704A;
  --primary-dark: #8B5A3C;
  --accent-color: #A0704A;
  --button-color: #9b9b9b;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --success: #10b981;
  --font-arabic: 'Cairo', sans-serif;
  --container-max-width: 1200px;
  --header-height: 80px;
  
  /* Light Mode (Default) */
  --bg-color: var(--white);
  --text-color: var(--gray-700);
  --card-bg: var(--white);
  --section-bg: var(--gray-50);
  --header-bg: rgba(255, 255, 255, 0.95);
  --heading-color: var(--gray-900);
  --subheading-color: var(--gray-600);
  --nav-link-color: var(--gray-600);
  --border-color: var(--gray-200);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --transition: 300ms ease;
}

body.dark-mode {
  /* Dark Mode Overrides */
  --bg-color: var(--gray-900);
  --text-color: var(--gray-300);
  --card-bg: var(--gray-800);
  --section-bg: #0c1322; /* Slightly darker than gray-900 */
  --header-bg: rgba(15, 23, 42, 0.95); /* gray-900 with opacity */
  --heading-color: var(--gray-100);
  --subheading-color: var(--gray-200);
  --nav-link-color: var(--gray-200);
  --border-color: var(--gray-700);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}


/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
section[id] {
  scroll-margin-top: var(--header-height);
}
body {
  font-family: var(--font-arabic);
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-xl);
  margin-bottom: 24px;
  box-shadow: var(--shadow-lg);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.navbar-brand-link {
  text-decoration: none;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.brand-text span {
  font-size: 0.875rem;
  color: var(--subheading-color);
  transition: color var(--transition);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--nav-link-color);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--gray-100);
  border: 1px solid var(--border-color);
  color: var(--gray-600);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}
.theme-toggle-btn:hover {
  background: var(--gray-200);
}
.theme-toggle-btn .fa-sun {
  display: none;
}
.theme-toggle-btn .fa-moon {
  display: block;
}
body.dark-mode .theme-toggle-btn {
  background: var(--gray-700);
  border-color: var(--gray-600);
  color: var(--gray-100);
}
body.dark-mode .theme-toggle-btn:hover {
  background: var(--gray-600);
}
body.dark-mode .theme-toggle-btn .fa-sun {
  display: block;
}
body.dark-mode .theme-toggle-btn .fa-moon {
  display: none;
}


.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--subheading-color);
  transition: var(--transition);
}

/* Hero Section */
/* CSS */
:root {
  /* متغيرات خاصة بخلفية hero */
  --hero-accent-color: #FF6347;   /* لون فاتح جديد */
  --hero-primary-dark: #800000;   /* لون داكن جديد */
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  color: var(--white);
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
  background: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  /* استخدم تدرج ألوان باردة أو محايدة هنا */
  background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;

  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);

  filter: none; /* ازل الفلاتر المشبعة أو الصبغات الملونة */
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  color: var(--white);
}




/* احتفظ بباقي أنماط hero-title، hero-subtitle، hero-stats، hero-actions كما هي */


/* FIXED: Reverted hero-bg to original */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(160, 112, 74, 0.3) 0%, transparent 50%);
}

.hero.rules-hero,
.hero.tutorials-hero {
  min-height: 60vh;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;

  /* إضاءة بسيطة للنص */
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}


.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(45deg, #ffffff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* تأثير ضوء حول النص */
  text-shadow: 
    0 0 5px rgba(255, 255, 255, 0.7), 
    0 0 10px rgba(255, 255, 255, 0.5), 
    0 0 15px rgba(255, 255, 255, 0.3);
}



.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 48px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.8;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-xl);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  min-width: 200px;
  justify-content: center;
  font-family: inherit;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Sections */
.streamers,
.features,
.tutorials,
.about,
.cta,
.rules-content,
.tutorials-content,
.supporters {
  padding: 80px 0;
  transition: background var(--transition);
}

.streamers,
.tutorials,
.rules-content,
.tutorials-content,
.supporters {
  background: var(--section-bg);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 16px;
  transition: color var(--transition);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--subheading-color);
  transition: color var(--transition);
}

/* Streamers Grid */
.streamers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-bottom: 48px;
}

.streamer-card {
  background: linear-gradient(135deg, #8B5A3C, #A0704A);
  box-shadow: 0 6px 20px rgba(121, 64, 213, 0.15);
  border-radius: 12px;
  width: 234px;
  height: 267px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.streamer-card:hover {
  box-shadow: 0 10px 36px rgba(121, 64, 213, 0.27);
  transform: translateY(-6px) scale(1.04);
}

.streamer-header {
  width: 100%;
  height: 180px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.streamer-avatar {
  width: 110px;
  height: 110px;
  background: none !important;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  position: relative;
}

.streamer-avatar::before,
.streamer-avatar::after {
  content: none !important;
}

.streamer-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 10;
}

.streamer-avatar {
  width: 120px;   /* زيادة حجم الدائرة قليلاً لاستيعاب الإطار */
  height: 120px;
  background: none !important;
  border-radius: 50%;
  overflow: visible;  /* لإظهار الظل الخارجي */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  
  /* دائرة حول الأفاتار */
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35); /* دائرة بيضاء شفافة */
}
.streamer-info {
  width: 100%;
  text-align: center;
  padding-top: 14px;
}

.streamer-info h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  text-transform: capitalize;
}



/* soical media */

.specter-socials {
  background: linear-gradient(135deg, #000141 65%, #000000 100%);
  color: #fff;
  padding: 70px 0;
  width: 100%;
  max-width: 2000px;
  max-height: 500px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.specter-socials-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  max-width: 1300px;
  margin: 0 auto;
  flex-direction: row-reverse;
  position: relative;
}

.specter-socials-cards {
  position: relative;
  width: 300px;
  height: 600px;
}

/* تموضع البطاقات موقع ثابت */
.card-wrapper {
  position: absolute;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.card-wrapper:hover,
.card-wrapper:focus-within {
  transform: scale(1.07);
  z-index: 100;
}

/* تعيين مواضع وأحجام ثابتة */
.card-discord {
  top: 120px;
  left: 150px;
  width: 200px;
  height: 400px;
}

.card-tiktok {
  top: 120px;
  left: -90px;
  width: 200px;
  height: 400px;
}

.card-twitter {
  top: 120px;
  left: -330px;
  width: 200px;
  height: 400px;
}

/* تصميم البطاقة */
.specter-card {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #fff;
  background: none;
  box-shadow: none;
  position: relative;
}

/* المربع الخلفي */
.card-img-wrapper {
  width: 100%;
  height: 85%;
  background: #190c3d;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

/* صورة تملأ المربع */
.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* تكبير عند المرور */
.card-wrapper:hover .card-img-wrapper img {
  transform: scale(1.1);
}

/* عنوان الكرت */
.card-title-arabic {
  position: absolute;
  bottom: 8px;
  /* left: 50%; */
  transform: translate(2px, -30px);
  font-size: 2.3rem;
  color: #f7f7f7;
  font-family: "Aref Ruqaa", serif;
  text-shadow: 0 0 8px #11068690;
  /* background-color: rgba(196, 194, 201, 0.6); */
  padding: 4px 8px;
  border-radius: 10px;
  user-select: none;
  white-space: nowrap;
  max-width: 90%;
  text-align: center;
}

/* معلومات الصفحة */
.specter-info {
  max-width: 850px;
  text-align: right;
  direction: rtl;
}
.specter-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 20px 0 16px 0;
  transform: translate(200px, -30px);
  text-align: center;
}

.specter-description {
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.7;
  color: #fff;
  text-align: center;
  transform: translate(200px, -50px);

}


/* .specter-title 
  font-size: 2.4rem;
  font-weight: 700;
  margin: 20px 0 16px 0;
  text-align: center;
  position: relative;
  /* استبدال top و left بـ transform لنقل العنصر */
  /* transform: translate(200px, -30px);
  transition: transform 0.3s ease; */


/* .specter-description 
  margin-top: 10px;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.7;
  color: #ffffff;
  text-align: center;
  position: relative;
  transform: translate(200px, -50px);
  transition: transform 0.3s ease;
 */ 




/* ----  */
/* Content Creator Program */
.content-creator-program {
  margin-top: 48px;
}

.program-card {
  background: linear-gradient(135deg, var(--primary-color), #8B5A3C);
  color: white;
  padding: 48px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.program-card h3 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--card-bg);
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all var(--transition);
  user-select: none;
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  margin: 0 auto 24px;
}

.feature-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 16px;
  transition: color var(--transition);
}

.feature-card p {
  color: var(--subheading-color);
  line-height: 1.6;
  transition: color var(--transition);
}

/* Tutorials Grid */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

a.tutorial-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.tutorial-card-link .tutorial-card {
  width: 100%;
}

.tutorial-card {
  background: var(--card-bg);
  padding: 32px 24px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
}

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

.tutorial-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 20px;
}

.tutorial-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.tutorial-card p {
  color: var(--subheading-color);
  line-height: 1.5;
  margin-bottom: 16px;
  transition: color var(--transition);
}

.tutorial-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
}

.difficulty {
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.difficulty.beginner {
  background: #dcfce7;
  color: #166534;
}

.difficulty.intermediate {
  background: #fef3c7;
  color: #92400e;
}

.difficulty.advanced {
  background: #fecaca;
  color: #991b1b;
}

.duration {
  color: var(--subheading-color);
  opacity: 0.8;
  transition: color var(--transition);
}

.tutorials-cta {
  text-align: center;
  margin-top: 48px;
}

/* About Section */
.about {
  background: var(--bg-color);
  transition: background var(--transition);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 24px;
  transition: color var(--transition);
}

.about-text p {
  font-size: 1.1rem;
  color: var(--subheading-color);
  line-height: 1.6;
  margin-bottom: 32px;
  transition: color var(--transition);
}

.about-stats {
  display: flex;
  gap: 32px;
}

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

.about-stat h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.about-stat p {
  color: var(--subheading-color);
  font-size: 0.9rem;
  margin: 0;
  transition: color var(--transition);
}

.community-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* CTA Section */
/* FIXED: Matched background to hero */
.cta {
  background: linear-gradient(135deg, var(--accent-color) 0%, #8B5A3C 100%);
  color: white;
}

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

.cta h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 64px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.footer-brand p {
  color: var(--gray-400);
  line-height: 1.6;
  margin-top: 12px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--gray-800);
  border-radius: var(--radius);
  color: var(--gray-300);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all var(--transition);
}

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

.server-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: 0.875rem;
}

.info-item i {
  color: var(--primary-color);
  width: 16px;
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--gray-800);
}

.footer-text p {
  color: var(--gray-400);
  margin-bottom: 8px;
}

.footer-text small {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* Rules & Tutorials Content */
.rules-section {
  margin-bottom: 30px;
  background: var(--card-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background var(--transition);
}

.rules-section .section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin-bottom: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative; 
  background-color: var(--card-bg);
}

.rules-section .section-header:hover {
  background-color: var(--border-color);
}
body.dark-mode .rules-section .section-header:hover {
  background-color: var(--gray-700);
}

.rules-section.active .section-header {
  background-color: var(--gray-100);
}
body.dark-mode .rules-section.active .section-header {
  background-color: var(--gray-900);
}


.rules-section .section-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  flex-shrink: 0;
}

.rules-section .section-info {
  width: 100%;
  position: relative;
}

.rules-section .section-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 4px;
  transition: color var(--transition);
}

.rules-section .section-info p {
  color: var(--subheading-color);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 15px;
  padding: 20px 24px;
}
.rules-text {
  gap: 15px;
  padding: 20px 24px;
}

.rule-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all var(--transition);
  user-select: none; 
  color: var(--subheading-color);
}

.rule-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.rule-item i {
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Punishment Grid */
.punishment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 24px;
}

.punishment-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: none;
  transition: all var(--transition);
  user-select: none; 
}

.punishment-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.punishment-card p {
  color: var(--subheading-color);
  line-height: 1.6;
}

.punishment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.punishment-header i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.punishment-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  transition: color var(--transition);
}

/* Tutorials Sections */
.tutorials-section {
  margin-bottom: 80px;
}

/* REMOVED conflicting tutorial styles */

.tutorials-section .section-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
}

/* Help CTA */
.help-cta {
  margin-top: 64px;
  padding: 48px;
  background: linear-gradient(135deg, var(--primary-color), #8B5A3C);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.help-cta .cta-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  text-align: right;
  color: white;
}

.help-cta .cta-icon {
  font-size: 3rem;
  opacity: 0.9;
}

.help-cta .cta-text h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* --- NEW ACCORDION STYLES --- */
/* These styles hide the content by default */

.rules-section .rules-list,
.rules-section .punishment-grid {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease-out;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* This class is added by JS to show the content */
.rules-section.active .rules-list,
.rules-section.active .punishment-grid {
  max-height: 6000px;
  padding-top: 20px;
  padding-bottom: 24px;
  opacity: 1;
  pointer-events: auto;
}

/* This is the clickable arrow */
.rules-section .section-info::after {
  content: '\f078'; 
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
  color: var(--subheading-color);
  font-size: 1.2rem;
}
.rules-section.active .section-info::after {
   transform: translateY(-50%) rotate(180deg); /* Flip arrow */
}


/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .navbar-menu { display: none; }
  .navbar-right { gap: 8px; }
  .theme-toggle-btn { width: 36px; height: 36px; font-size: 0.9rem; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 2rem; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 300px; }
  .features-grid, .streamers-grid, .tutorials-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; gap: 32px; }
  .about-stats { justify-content: center; }
  .rules-list { grid-template-columns: 1fr; }
  .punishment-grid { grid-template-columns: 1fr; }
  .tutorials-section .section-header, .rules-section .section-header { flex-direction: row; text-align: right; gap: 16px; padding: 16px; }
  .rules-section .section-icon { width: 50px; height: 50px; font-size: 1.2rem; }
  .rules-section .section-info::after { left: 10px; font-size: 1rem; }
  .help-cta .cta-content { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
}

/* NEW: 2-Column Grid for Rules */
.rules-grid-container {
  display: grid;
  grid-template-columns: 1fr; 
  gap: 24px;
  align-items: start; /* This prevents the height-stretching bug */
}

@media (min-width: 992px) {
  .rules-grid-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* NEW: Supporters Section */
.supporters {
    padding: 0 0 80px 0; /* Changed: Top padding removed */
    background: var(--section-bg);
}
.supporters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.supporter-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  user-select: none; /* Makes text unselectable */
}
.supporter-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.supporter-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--primary-color);
  margin: 0 auto 16px auto;
  object-fit: cover;
}
.supporter-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 4px;
}
.supporter-tier {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 500;
}
/* --- Mobile Menu Toggle --- */
@media (max-width: 768px) {
  .navbar-menu {
    display: none; /* Already there, but good to be explicit */
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--header-bg);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow);
  }

  .navbar-menu.is-open {
    display: flex; /* This class will be added by JS */
  }

  .mobile-menu-btn.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* rules page */

    .parent-card {
  background: var(--card-bg, #fff);
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.parent-header h2 {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary-dark, #8B5A3C);
}

.parent-header p {
  margin: 0 0 1.2rem 0;
  color: var(--subheading-color, #475569);
  font-size: 1rem;
}

.subcards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Subcards style */
.subcard {
  background: var(--section-bg, #f8fafc);
  border-radius: 0.75rem;
  padding: 1rem 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  flex: 1 1 45%; /* two per row */
  min-width: 280px;
}

.subcard h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary-color, #A0704A);
}

.subcard p {
  margin: 0;
  color: var(--heading-color, #334155);
  font-size: 1rem;
  line-height: 1.4;
}

.rules-section .rules-text,
.rules-section .punishment-grid {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease-out;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* This class is added by JS to show the content */
.rules-section.active .rules-text,
.rules-section.active .punishment-grid {
  max-height: 4000px;
  padding-top: 20px;
  padding-bottom: 24px;
  opacity: 1;
  pointer-events: auto;
}
.link-btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 16px;
  background: var(--primary-dark);
  color: white;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.link-btn:hover {
  background: var(--button-color);
}
.link-btn i {
  margin-right: 6px;
}

.rule-iteminset {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all var(--transition);
  user-select: none; 
  color: var(--subheading-color);
}

.rule-iteminset:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.rule-iteminset i {
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}
.rule-iteminset::before {
  /* Increments the counter for each .rule-item */
  counter-increment: rule-counter;
}

/* --- Automatic Rule Numbering --- */
.rules-list {
  /* Initializes a counter named 'rule-counter' */
  counter-reset: rule-counter;
}

.rule-item::before {
  /* Increments the counter for each .rule-item */
  counter-increment: rule-counter;
  
  /* Displays the counter's value followed by a dot and space */
  content: counter(rule-counter) ". ";

  /* The styles below make the number
    match the styling of your <i> icon 
  */
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 2px;
  flex-shrink: 0;
  
  /* This ensures numbers like '9.' and '10.' align neatly */
  min-width: 20px;
  text-align: right;
  padding-right: 2px; /* Adds a little space after the number */
}