:root {
  --site-primary-dark: #0A2463;
  --site-secondary-gold: #E3B505;
  --neon-primary: #00FFFF; /* Bright Cyan */
  --neon-secondary: #FFD700; /* Bright Gold */
  --neon-accent: #FF69B4; /* Hot Pink */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --header-height-desktop: 100px; /* 60px header-top + 40px main-nav */
  --header-height-mobile: 140px; /* Approx 70px header-top + 70px mobile-nav-buttons */
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--dark-bg-1);
  color: #e0e0e0;
  line-height: 1.6;
  padding-top: var(--header-height-desktop); /* Desktop padding for fixed header */
}

.container, .header-container, .nav-container, .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Neon Glow Animations - MUST support multiple styles and dynamic colors */

/* Base dynamic color variables for animations */
@keyframes rainbow-border {
  0% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
  16.6% { border-color: #ff8000; box-shadow: 0 0 10px #ff8000, 0 0 20px #ff8000; }
  33.3% { border-color: #ffff00; box-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00; }
  50% { border-color: #00ff00; box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00; }
  66.6% { border-color: #0000ff; box-shadow: 0 0 10px #0000ff, 0 0 20px #0000ff; }
  83.3% { border-color: #8000ff; box-shadow: 0 0 10px #8000ff, 0 0 20px #8000ff; }
  100% { border-color: #ff0000; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000; }
}

@keyframes hue-spin {
  0% { filter: hue-rotate(0deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
}

@keyframes alternate-colors {
  0% { border-color: var(--neon-primary); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  100% { border-color: var(--neon-secondary); box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary); }
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-secondary); }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px var(--neon-accent), 0 0 20px var(--neon-primary); }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-secondary); }
}

@keyframes random-glow {
  0% { border-color: var(--neon-primary); box-shadow: 0 0 20px var(--neon-primary); }
  20% { border-color: var(--neon-secondary); box-shadow: 0 0 20px var(--neon-secondary); }
  40% { border-color: var(--neon-accent); box-shadow: 0 0 20px var(--neon-accent); }
  60% { border-color: #00ff00; box-shadow: 0 0 20px #00ff00; }
  80% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; }
  100% { border-color: var(--neon-primary); box-shadow: 0 0 20px var(--neon-primary); }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary);
    box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary), inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--neon-secondary), inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 0 0 10px var(--neon-accent), 0 0 20px var(--neon-accent), inset 0 0 10px rgba(255, 105, 180, 0.3);
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; box-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor, inset 0 0 15px currentColor; }
  20%, 24%, 55% { opacity: 0.8; box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, inset 0 0 10px currentColor; }
}

@keyframes pulse-glow {
  from { box-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
  to { box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor; }
}

@keyframes led-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

@keyframes text-glow-flow {
  0% {
    text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary), 0 0 15px var(--neon-primary);
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary), 0 0 15px var(--neon-secondary);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px var(--neon-accent), 0 0 10px var(--neon-accent), 0 0 15px var(--neon-accent);
    color: #ffffff;
  }
}

/* General Neon Classes */
.neon-glow {
  box-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor, 0 0 20px currentColor, inset 0 0 10px rgba(255, 255, 255, 0.1);
}
.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s linear infinite;
}
.cyber-grid {
  background: linear-gradient(90deg, transparent 95%, currentColor 100%), linear-gradient(180deg, transparent 95%, currentColor 100%);
  background-size: 20px 20px;
  border: 1px solid;
  animation: hue-spin 4s linear infinite;
}
.neon-pulse {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}
.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}
.hue-rotate {
  border: 2px solid;
  filter: hue-rotate(0deg);
  animation: hue-spin 4s linear infinite;
}
.alternate-glow {
  border: 2px solid;
  animation: alternate-colors 2s ease-in-out infinite alternate;
}
.color-stream {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #00ffff, #0000ff, #8000ff, #ff0080);
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}
.random-colors {
  border: 2px solid;
  animation: random-glow 5s linear infinite;
}
.theme-flow {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}
.neon-text-dynamic {
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  padding: 10px 0;
  min-height: 60px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--neon-primary); /* Base for theme-flow animation */
}

.header-top.theme-flow {
  animation: theme-colors 4s ease-in-out infinite;
}

.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  width: 100%;
}

.logo {
  font-size: 2em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  white-space: nowrap;
  order: 0; /* Default order for desktop */
  flex-shrink: 0;
}

.logo:hover {
  color: var(--neon-secondary);
  text-shadow: 0 0 5px var(--neon-secondary), 0 0 15px var(--neon-secondary), 0 0 25px var(--neon-secondary);
}

.desktop-nav-buttons {
  display: flex;
  gap: 15px;
  margin-left: auto;
}

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid;
  text-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-primary);
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--neon-secondary), var(--neon-accent));
  text-shadow: 0 0 5px #ffffff, 0 0 10px var(--neon-secondary);
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  padding: 10px 0;
  min-height: 40px;
  display: flex; /* Desktop default: visible */
  flex-direction: row; /* Desktop default: horizontal */
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--neon-accent);
  border-bottom: 1px solid var(--neon-accent);
  box-shadow: 0 0 8px var(--neon-accent), 0 0 15px var(--neon-accent), inset 0 0 10px rgba(255, 105, 180, 0.1);
}

.main-nav .nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05em;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon-secondary);
  text-shadow: 0 0 5px var(--neon-secondary), 0 0 10px var(--neon-secondary);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  border: 2px solid transparent; /* Base for glow */
  border-radius: 3px;
  box-shadow: 0 0 5px var(--neon-primary);
}

.hamburger-menu .bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary);
}

.hamburger-menu .bar:nth-child(1) { top: 0; }
.hamburger-menu .bar:nth-child(2) { top: 11px; }
.hamburger-menu .bar:nth-child(3) { top: 22px; }

.hamburger-menu.active {
  animation: pulse-glow 1.5s ease-in-out infinite alternate;
  border-color: var(--neon-secondary);
}

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
  background-color: var(--neon-secondary);
  box-shadow: 0 0 5px var(--neon-secondary);
}
.hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
  background-color: var(--neon-secondary);
  box-shadow: 0 0 5px var(--neon-secondary);
}

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-2);
  padding: 40px 0 20px;
  font-size: 0.95em;
  color: #a0a0a0;
  border-top: 1px solid #333;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #a0a0a0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: var(--site-secondary-gold);
}

.footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.payment-icons, .game-providers-icons, .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme */
  opacity: 0.7;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.payment-icons img:hover, .game-providers-icons img:hover, .social-media-icons img:hover {
  opacity: 1;
  filter: grayscale(0%) brightness(100%);
}

.footer-middle-sections {
  margin-bottom: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
}

.game-providers-section, .social-media-section {
  margin-bottom: 20px;
}

.game-providers-section:last-child, .social-media-section:last-child {
  margin-bottom: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  margin-top: 20px;
}

.footer-bottom p {
  margin: 0;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--header-height-mobile); /* Mobile padding for fixed header + buttons */
  }

  .container, .header-container, .nav-container, .footer-container {
    padding: 0 15px;
    max-width: none; /* Mobile containers take full width */
    width: 100%;
  }

  .site-header {
    flex-direction: column;
  }

  .header-top {
    padding: 10px 0;
    min-height: 70px;
  }

  .header-top .header-container {
    justify-content: space-between;
    padding: 0 15px;
  }

  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 0;
    margin-right: auto; /* Push logo to center */
    box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
  }

  .logo {
    font-size: 1.5em;
    order: 1;
    flex-grow: 1;
    text-align: center;
    margin: 0;
    padding: 0 10px; /* Some padding to keep it from edges */
  }

  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  .header-top .header-container::after {
    content: '';
    width: 30px; /* Balance hamburger space */
    order: 2;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu on mobile */
    position: fixed;
    top: var(--header-height-mobile); /* Below header and mobile buttons */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - var(--header-height-mobile));
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-3));
    overflow-y: auto;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-out;
    border-right: 2px solid var(--neon-primary);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
  }

  .main-nav.active {
    display: flex; /* Show menu when active */
    transform: translateX(0); /* Slide in */
  }

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    align-items: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-1));
    border-bottom: 2px solid var(--neon-secondary);
    box-shadow: 0 0 8px var(--neon-secondary), 0 0 15px var(--neon-secondary);
  }

  .mobile-nav-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .mobile-menu-overlay.active {
    display: block; /* Show overlay when menu is active */
  }

  /* Footer Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col ul {
    text-align: center;
  }

  .footer-logo {
    text-align: center;
  }
}

/* Ensure body scroll is managed */
body.no-scroll {
  overflow: hidden;
}
