:root {
  --primary-dark: #ED7031;        /* Deep orange accent */
  --primary-light: #ff845a;       /* Softer shade of the same orange */
  --secondary-bg: #1a1a1a;        /* Light black / dark charcoal */
  --dark-gray: #d1d5db;           /* Light gray for text */
  --medium-gray: #9ca3af;         /* Muted gray for secondary text */
  --light-gray: #121212;          /* Background: light black */
  --accent-yellow: #EE7230;       /* Accent changed to orange */
  --accent-red: #ef4444;          /* Red accent */
  --accent-green: #22c55e;        /* Green accent */
  --accent-purple: #a855f7;       /* Purple accent */
  --card-bg: #1e1e1e;             /* Slightly lighter black for cards */
  --header-bg: rgba(24, 24, 24, 0.8); /* Same color (#181818) but 80% opaque */
  --text-color: #f3f4f6;          /* Light text */
  --muted-text: #9ca3af;          /* Muted text */
  --footer-bg: #181818;           /* Light black footer */
  --footer-border: rgba(255, 255, 255, 0.08);
  --footer-text: #e5e7eb;
}

.dark-theme {
  --bg-light: var(--light-gray);
  --bg-dark: var(--card-bg);
  --text-main: var(--text-color);
  --text-muted: var(--muted-text);
  --primary-color: var(--primary-dark);
  --accent: var(--accent-yellow);
  --footer: var(--footer-bg);
}

.dark-theme header,
.site-header {
  background-color: var(--header-bg);
  backdrop-filter: blur(8px); /* Glass effect */
  -webkit-backdrop-filter: blur(8px); /* Safari support */
}

body.dark-theme {
  background-color: var(--bg-light);
  color: var(--text-main);
}

.dark-theme footer {
  background-color: var(--footer);
  color: var(--footer-text);
}

.dark-theme .bg-indigo-100,
.dark-theme .bg-white,
.dark-theme .bg-secondary-bg,
.dark-theme .bg-accent-yellow {
  background-color: var(--bg-dark) !important;
  color: var(--text-main) !important;
}

.dark-theme .bg-indigo-200 {
  background-color: var(--header-bg) !important;
  border-top-color: var(--footer-border) !important;
}

.dark-theme .text-indigo-800,
.dark-theme .text-dark-gray,
.dark-theme .navbar-desktop-nav-group a,
.dark-theme .navbar-desktop-auth-group a,
.dark-theme .game-card h3.text-gray-800 {
  color: var(--text-main) !important;
}

.dark-theme .text-indigo-700,
.dark-theme .text-medium-gray,
.dark-theme .category-dropdown-content a,
.dark-theme .category-dropdown-content a:hover,
.dark-theme .category-box:hover {
  color: var(--text-muted) !important;
}

.dark-theme .text-indigo-700:hover,
.dark-theme .navbar-desktop-nav-group a:hover,
.dark-theme .navbar-desktop-auth-group a:hover,
.dark-theme .category-dropdown-content a:hover {
  color: var(--accent) !important;
}

.dark-theme .bg-indigo-100,
.dark-theme .bg-gray-200,
.dark-theme .game-card {
  background-color: var(--bg-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.dark-theme .game-card:hover,
.dark-theme .category-box:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.dark-theme .game-card-overlay {
  background-color: rgba(0, 0, 0, 0.8);
}

.dark-theme hr,
.dark-theme input[type="text"],
.dark-theme input[type="password"],
.dark-theme input[type="email"] {
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme input::placeholder {
  color: var(--text-muted);
}

.dark-theme .hover\:bg-indigo-200:hover,
.dark-theme .hover\:text-primary-light:hover,
.dark-theme .hover\:shadow-xl:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
}

.dark-theme .hover\:bg-yellow-300:hover {
  background-color: #FCD34D !important;
  color: #111827 !important;
}

.site-header {
  position: relative;
  min-height: 56px;
  z-index: 60;
  background-color: rgba(6, 6, 8, 0.94);
  border-bottom: 1px solid var(--footer-border);
  color: var(--text-main);
}

.site-header .logo-col,
.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-header .logo-col img,
.site-header .logo-bleed img {
  max-height: 40px;
  width: auto;
  object-fit: contain;
}

.site-header .site-container {
  padding: 0.5rem 1rem;
}

@media (max-width: 767px) {
  .site-header .site-container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-header .logo-bleed img { max-height: 36px; }

  .site-header #mobileMenuButton {
    margin-right: 0.75rem;
    font-size: 2rem;
  }

  .site-header #mobileMenuButton i {
    font-size: 2rem;
  }

  .site-header .mobile-search-only {
    margin-left: 2rem;
    margin-right: -4rem;
    margin-bottom: 0.5rem;
  }

  .site-header .mobile-search-only .search-input {
    padding-left: 1.75rem;
  }

  .site-header .auth-links a.login-desktop {
    display: none;
  }
}

@media (min-width: 768px) {
  .site-header .auth-links a.login-desktop {
    display: inline-flex;
  }

  .site-header .nav-icons-desktop {
    gap: 2rem;
  }
}

.site-header .category-dropdown-content {
  min-width: 220px;
  max-width: 320px;
}

.site-header .nav-icons-desktop a,
.site-header .auth-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.site-header, .site-header * {
  box-sizing: border-box;
}
