/* ============================================
   GLOBAL HEADER COMPONENT - Transparent to Dark
   ============================================ */

/* Header Root Container - Fixed positioning */
#header-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Header Container - TRANSPARENT by default */
.header {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

/* Scrolled state - dark background */
.header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled .header-content {
  padding: 12px 24px;
}

.header.scrolled .accent-bar {
  height: 2px;
  opacity: 1;
}

/* Accent Bar (Green to Orange Gradient) - Hidden initially */
.accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #10b981, #34d399, #f59e0b);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Header Content Container - Thicker padding */
.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

/* Logo with green 'Your' */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color 0.2s;
}

.logo .logo-accent {
  color: #10b981;
}

.logo:hover {
  opacity: 0.9;
}

/* Navigation */
.nav-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Header Actions Container */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Quiz CTA Button */
.quiz-cta {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.quiz-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #34d399, #10b981);
}

/* Store Icon */
.store-icon {
  color: #cbd5e1;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-icon:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.store-icon svg {
  width: 22px;
  height: 22px;
}

/* Mobile Menu Button */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-button svg {
  width: 24px;
  height: 24px;
}

.menu-icon-close {
  display: none;
}

.mobile-menu-button.active .menu-icon-open {
  display: none;
}

.mobile-menu-button.active .menu-icon-close {
  display: block;
}

/* Mobile Menu Dropdown */
.mobile-menu {
  display: none;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.mobile-menu.active {
  max-height: 400px;
  padding: 16px 24px 24px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .header-content {
    padding: 12px 20px;
  }

  .nav-main {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .mobile-menu {
    display: block;
    max-height: 0;
    padding: 0 24px;
  }

  .quiz-cta {
    padding: 8px 14px;
    font-size: 13px;
  }

  .store-icon {
    display: none;
  }
}


/* ============================================
   LANGUAGE SWITCHER COMPONENT
   ============================================ */

.language-switcher {
  position: relative;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9em;
  color: white;
  font-family: inherit;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.language-switcher.open .lang-toggle {
  border-color: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
}

.current-flag {
  font-size: 1.2em;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
}

.current-lang {
  font-weight: 600;
  letter-spacing: 0.3px;
}

.chevron {
  transition: transform 0.2s ease;
  color: #94a3b8;
}

.language-switcher.open .chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  overflow: hidden;
  z-index: 1000;
}

.language-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  text-decoration: none;
  color: #cbd5e1;
  transition: background 0.2s ease;
  font-size: 0.95em;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.lang-option .flag {
  font-size: 1.3em;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
  display: inline-block;
  min-width: 1.3em;
  text-align: center;
}

.lang-option .lang-name {
  font-weight: 500;
}

@media (max-width: 768px) {
  .language-switcher {
    margin-right: 4px;
  }
  
  .lang-toggle {
    padding: 6px 10px;
  }
  
  .current-lang {
    display: none;
  }
}


/* ============================================
   FOOTER STYLES - Enhanced Dark Theme
   ============================================ */

.footer {
  position: relative;
  background: linear-gradient(to bottom right, #0f172a, #1e293b, #0f172a);
  overflow: hidden;
  margin-top: auto;
}

.footer-accent-bar {
  height: 3px;
  background: linear-gradient(90deg, #10b981, #34d399, #f59e0b);
}

.footer-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

.footer-glow {
  position: absolute;
  bottom: -100px;
  right: 10%;
  width: 400px;
  height: 400px;
  background: #10b981;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.08;
  pointer-events: none;
}

.footer-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-about {
  padding-right: 24px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
  transition: color 0.2s;
}

.footer-logo:hover {
  color: #34d399;
}

.footer-description {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.footer-stats {
  display: flex;
  gap: 24px;
}

.footer-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #34d399;
}

.footer-stat-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column {
  
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: #34d399;
  transform: translateX(4px);
}

.footer-link-highlight {
  color: #34d399 !important;
  font-weight: 500;
}

.footer-link-highlight:hover {
  color: #6ee7b7 !important;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-tagline {
  color: #34d399;
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  position: relative;
  padding-bottom: 16px;
}

.footer-tagline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #34d399, #f59e0b, transparent);
}

.footer-copyright {
  color: #64748b;
  font-size: 13px;
}

.footer-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.7;
  margin-top: 32px;
}

.footer-disclaimer-icon {
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 2px;
}

.footer-disclaimer strong {
  color: #94a3b8;
}

/* Footer Responsive */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  
  .footer-about {
    grid-column: span 2;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-about {
    grid-column: span 1;
  }
  
  .footer-content {
    padding: 48px 20px 32px;
  }
  
  .footer-stats {
    flex-direction: row;
    gap: 32px;
  }
  
  .footer-disclaimer {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-disclaimer-icon {
    align-self: center;
  }
}


/* ============================================
   PAGE HERO COMPONENT - Dark Theme
   Standard hero section for all inner pages
   ============================================ */

.page-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #064e3b 100%);
  padding: 140px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle glow effect */
.page-hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Secondary glow */
.page-hero::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-hero-title {
  font-size: 3em;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-hero-subtitle {
  font-size: 1.25em;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Page hero with accent color title */
.page-hero-title .accent {
  color: #34d399;
}

.page-hero-title .gold {
  color: #f59e0b;
}

/* Responsive */
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 20px 60px;
  }
  
  .page-hero-title {
    font-size: 2.2em;
  }
  
  .page-hero-subtitle {
    font-size: 1.1em;
  }
}
