/* ========== پالت رنگی سینمایی ستارانو - طلایی و مشکی ========== */
:root {
  /* رنگ‌های اصلی - تم سینمایی */
  --primary-gold: #FFD700;        /* طلایی اسکار */
  --primary-yellow: #F7BB0E;      /* زرد طلایی */
  --primary-black: #0A0A0A;       /* مشکی عمیق سینما */
  --primary-dark: #1A1A1E;        /* خاکستری تیره */
  --accent-red: #DC0000;          /* قرمز تاکیدی */
  
  /* رنگ‌های ثانویه */
  --secondary-gold: #FFB700;
  --secondary-yellow: #E5A800;
  --secondary-black: #151515;
  --light-gold: #FFE55C;
  --dark-gold: #B8860B;
  
  /* خاکستری‌ها */
  --light-gray: #F5F5F5;
  --medium-gray: #CCCCCC;
  --dark-gray: #2A2A2A;
  
  /* گرادیانت‌های سینمایی */
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #F7BB0E 50%, #B8860B 100%);
  --gradient-cinema: linear-gradient(135deg, #0A0A0A 0%, #1A1A1E 100%);
  --gradient-spotlight: radial-gradient(circle, #FFD700 0%, #F7BB0E 50%, transparent 70%);
  --gradient-curtain: linear-gradient(to bottom, #DC0000 0%, #8B0000 100%);
  
  /* سایه‌ها با حس طلایی */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.3);
  --shadow-gold-lg: 0 8px 40px rgba(255, 215, 0, 0.4);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* متغیرهای تم روشن */
  --primary-color: var(--primary-gold);
  --bg-primary: #FAFAFA;
  --bg-secondary: #F0F0F0;
  --text-primary: #0A0A0A;
  --text-secondary: #2A2A2A;
  --text-color: #0A0A0A;
  --text-muted: #666666;
  --border-color: #DDDDDD;
  --card-bg: #FFFFFF;
  --card-bg-darker: #F5F5F5;
  --header-bg: rgba(250, 250, 250, 0.98);
  --input-bg: #FFFFFF;
  --hover-bg: rgba(255, 215, 0, 0.08);
  
  /* گرادیانت‌های سینمایی */
  --gradient-gold: linear-gradient(135deg, #FFD700, #F7BB0E, #B8860B);
  --gradient-cinema: linear-gradient(135deg, #0A0A0A, #1A1A1E, #2A2A2A);
  --gradient-spotlight: radial-gradient(circle at center, rgba(255, 215, 0, 0.2), transparent);
}

/* ========== حالت شب (Dark Cinema Mode) ========== */
[data-theme="dark"] {
  /* رنگ‌های اصلی */
  --primary-gold: #FFD700;
  --primary-yellow: #F7BB0E;
  --primary-black: #0A0A0A;
  
  /* بازگشت مقادیر برای سازگاری */
  --primary-white: #0A0A0A;
  --primary-dark: #FFD700;
  --light-gray: #2A2A2A;
  --medium-gray: #3A3A3A;
  --dark-gray: #CCCCCC;
  
  /* سایه‌های طلایی */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.5);
  --shadow-gold-lg: 0 8px 40px rgba(255, 215, 0, 0.6);
  
  /* متغیرهای تم شب سینمایی */
  --primary-color: var(--primary-gold);
  --bg-primary: #0A0A0A;          /* مشکی عمیق سینما */
  --bg-secondary: #151515;
  --text-primary: #FFD700;        /* طلایی برای متن مهم */
  --text-secondary: #F0F0F0;
  --text-color: #FFFFFF;
  --text-muted: #AAAAAA;
  --border-color: #2A2A2A;
  --card-bg: #151515;
  --card-bg-darker: #0A0A0A;
  --header-bg: rgba(10, 10, 10, 0.98);
  --input-bg: #1A1A1A;
  --hover-bg: rgba(255, 215, 0, 0.12);
  
  /* گرادیانت‌های سینمایی شب */
  --gradient-gold: linear-gradient(135deg, #FFD700, #F7BB0E, #B8860B);
  --gradient-cinema: linear-gradient(135deg, #000000, #0A0A0A, #151515);
  --gradient-spotlight: radial-gradient(circle at center, rgba(255, 215, 0, 0.3), transparent);
  --input-bg: #1A1A1A;
  --hover-bg: rgba(255, 215, 0, 0.12);
}

/* ========== تنظیمات پایه ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: 'Vazirmatn', sans-serif;
}

body {
  font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  direction: rtl;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========== Header و Navigation ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  background: var(--header-bg);
  box-shadow: var(--shadow-md);
}

/* ========== دکمه تغییر تم (روز/شب) ========== */
.theme-toggle {
  width: 60px;
  height: 30px;
  background: var(--medium-gray);
  border-radius: 15px;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border-color);
  margin-right: 1rem;
}

.theme-toggle:hover {
  transform: scale(1.05);
}

.theme-toggle-slider {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  background: var(--primary-white);
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.theme-toggle-slider i {
  font-size: 0.7rem;
  color: var(--primary-yellow);
}

[data-theme="dark"] .theme-toggle {
  background: var(--dark-gray);
}

[data-theme="dark"] .theme-toggle-slider {
  right: calc(100% - 26px);
  background: var(--primary-dark);
}

[data-theme="dark"] .theme-toggle-slider i {
  color: var(--primary-yellow);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
  color: var(--primary-white);
  position: relative;
  z-index: 10;
}

.logo-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: #FFFFFF;
  color: #FFFFFF;
}

.logo-icon i {
  display: block;
  line-height: 1;
  font-style: normal;
  font-size: 1.8rem;
}

.logo-icon:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: var(--shadow-md);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: 'Vazirmatn', sans-serif;
}

/* ========== منو دسکتاپ ========== */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-menu li a {
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: block;
}

.nav-menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-yellow);
  transition: var(--transition);
  z-index: -1;
}

.nav-menu li a:hover::before {
  left: 0;
}

.nav-menu li a:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}

.nav-menu li a.active {
  background: var(--gradient-gold);
  color: var(--primary-black);
}

/* لینک ورود/ثبت‌نام */
.nav-menu li a.auth-link {
  background: var(--gradient-gold);
  color: var(--primary-black);
  font-weight: 600;
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-gold);
}

.nav-menu li a.auth-link:hover {
  background: var(--gradient-yellow);
  color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(247, 187, 14, 0.4);
  transform: translateY(-2px);
}

/* لینک‌های غیرفعال */
.nav-menu li a.disabled-link {
  background: var(--card-bg-darker);
  color: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
  border: 1px solid var(--border-color);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.nav-menu li a.disabled-link::before {
  display: none;
}

/* ========== همبرگر منو (موبایل) ========== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  background: transparent;
  border: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.hamburger:focus {
  outline: none;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--text-color) !important;
  border-radius: 3px;
  transition: all 0.3s ease;
  display: block;
  pointer-events: none;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background: var(--primary-color);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background: var(--primary-color);
}

/* ========== Main Content ========== */
.main-content {
  margin-top: 82px;
  min-height: calc(100vh - 82px - 300px);
}

/* ========== Parallax Background ========== */
.parallax-layer {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

.parallax-shape {
  position: absolute;
  opacity: 0.05;
  transition: transform 0.5s ease-out;
}

.shape-1 {
  top: 10%;
  right: 5%;
  width: 300px;
  height: 300px;
  background: var(--gradient-gold);
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.shape-2 {
  bottom: 20%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: var(--gradient-yellow);
  border-radius: 50%;
  filter: blur(120px);
}

.shape-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: var(--gradient-dark);
  border-radius: 50%;
  filter: blur(150px);
}

/* ========== Footer ========== */
.site-footer {
  background: var(--gradient-dark);
  color: var(--primary-white);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

[data-theme="dark"] .site-footer {
  background: linear-gradient(135deg, #0F0F12 0%, #1A1A1E 100%);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--primary-yellow);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

[data-theme="dark"] .footer-section h3 {
  color: var(--primary-yellow);
  text-shadow: 0 0 20px rgba(247, 187, 14, 0.3);
}

[data-theme="dark"] .footer-section p {
  color: #E0E0E0;
  opacity: 0.9;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--primary-white);
  text-decoration: none;
  transition: var(--transition);
  opacity: 0.8;
}

[data-theme="dark"] .footer-section ul li a {
  color: #E0E0E0;
  opacity: 0.85;
}

.footer-section ul li a:hover {
  opacity: 1;
  color: var(--primary-yellow);
  padding-right: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-white);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1.2rem;
}

[data-theme="dark"] .social-icon {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
  background: var(--gradient-yellow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .social-icon:hover {
  background: var(--gradient-gold);
  border-color: var(--primary-gold);
  box-shadow: var(--shadow-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.05);
  opacity: 0.8;
  color: #B0B0B0;
}

/* ========== Responsive Design - موبایل اول ========== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .hamburger {
    display: flex;
  }

  .theme-toggle {
    position: absolute;
    left: 4.5rem;
    width: 50px;
    height: 26px;
  }

  .theme-toggle-slider {
    width: 20px;
    height: 20px;
  }

  .theme-toggle-slider i {
    font-size: 0.6rem;
  }

  [data-theme="dark"] .theme-toggle-slider {
    right: calc(100% - 22px);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    gap: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    border-left: 1px solid var(--border-color);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    color: var(--text-color);
    width: 100%;
    display: block;
    padding: 1rem;
    font-size: 1.1rem;
    border-right: 3px solid transparent;
    transition: all 0.3s ease;
  }

  .nav-menu li a:hover,
  .nav-menu li a.active {
    border-right-color: var(--primary-color);
    background: var(--hover-bg);
    color: var(--primary-color);
  }
  
  .nav-menu li a.auth-link {
    background: var(--gradient-gold);
    color: var(--primary-black);
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
  }
  
  .nav-menu li a.auth-link:hover {
    background: var(--gradient-yellow);
    color: var(--text-primary);
    border-right-color: transparent;
  }

  .nav-menu li a::before {
    display: none;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }
  
  .logo-icon svg {
    width: 20px;
    height: 20px;
    fill: #FFFFFF;
    color: #FFFFFF;
  }
  
  .logo-icon i {
    font-size: 1.4rem;
  }

  .header-container {
    padding: 0.75rem 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .shape-1, .shape-2, .shape-3 {
    width: 200px;
    height: 200px;
  }

  .main-content {
    margin-top: 70px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .header-container {
    padding: 1rem;
  }

  .nav-menu {
    gap: 0.25rem;
  }

  .nav-menu li a {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

/* ========== انیمیشن‌ها ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* ========== Utility Classes ========== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--primary-black);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--gradient-yellow);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ========== Card Styles ========== */
.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

/* ========== تنظیمات اضافی برای Dark Mode ========== */
[data-theme="dark"] .parallax-shape {
  opacity: 0.03;
}

[data-theme="dark"] .hero-subtitle,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .stat-label {
  color: var(--text-secondary);
}

[data-theme="dark"] .section-title,
[data-theme="dark"] .hero-title,
[data-theme="dark"] .feature-card h3 {
  color: var(--text-primary);
}

/* تنظیمات منوی موبایل در حالت تاریک */
[data-theme="dark"] .nav-menu {
  background: rgba(26, 26, 30, 0.98);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .nav-menu li a {
  color: var(--text-color);
}

[data-theme="dark"] .nav-menu li a:hover {
  background: rgba(240, 0, 0, 0.1);
  color: var(--primary-color);
}

[data-theme="dark"] .nav-menu li a.disabled-link {
  background: rgba(42, 42, 42, 0.5);
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

[data-theme="dark"] .hamburger span {
  background: #FFFFFF !important;
}

[data-theme="dark"] .hamburger.active span {
  background: var(--primary-color) !important;
}

/* حالت روشن - اطمینان از نمایش درست */
[data-theme="light"] .hamburger span {
  background: #29282C !important;
}

[data-theme="light"] .hamburger.active span {
  background: var(--primary-color) !important;
}
