:root {
  --site-primary-dark: #0A2463;
  --site-secondary-accent: #E3B505;

  /* Neon base colors derived from site theme for intelligent matching */
  --neon-blue: #00CFFF; /* Vibrant blue, close to primary dark */
  --neon-yellow: #FFD700; /* Vibrant yellow, close to secondary accent */
  --neon-pink: #FF69B4;  /* Vibrant pink for accent */
  --neon-orange: #FFA500; /* Vibrant orange */
  --neon-green: #00FF00; /* Vibrant green */
  --neon-purple: #9933FF; /* Vibrant purple */

  /* Dynamic neon color cycle for theme-flow animation */
  --neon-cycle-color1: var(--neon-blue);
  --neon-cycle-color2: var(--neon-yellow);
  --neon-cycle-color3: var(--neon-pink);
}

/* Keyframe 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-blue), 0 0 20px var(--neon-blue); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue); }
}

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

@keyframes gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px #00ffff, 0 0 20px #0000ff; }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
}

@keyframes random-glow {
  0% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
  20% { border-color: #00ffff; box-shadow: 0 0 20px #00ffff; }
  40% { border-color: #ffff00; box-shadow: 0 0 20px #ffff00; }
  60% { border-color: #00ff00; box-shadow: 0 0 20px #00ff00; }
  80% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; }
  100% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-cycle-color1);
    box-shadow: 0 0 10px var(--neon-cycle-color1), 0 0 20px var(--neon-cycle-color1), inset 0 0 10px rgba(0, 207, 255, 0.3);
  }
  33% {
    border-color: var(--neon-cycle-color2);
    box-shadow: 0 0 10px var(--neon-cycle-color2), 0 0 20px var(--neon-cycle-color2), inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  66% {
    border-color: var(--neon-cycle-color3);
    box-shadow: 0 0 10px var(--neon-cycle-color3), 0 0 20px var(--neon-cycle-color3), 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-cycle-color1), 0 0 10px var(--neon-cycle-color1), 0 0 15px var(--neon-cycle-color1);
    color: #ffffff;
  }
  50% {
    text-shadow: 0 0 5px var(--neon-cycle-color2), 0 0 10px var(--neon-cycle-color2), 0 0 15px var(--neon-cycle-color2);
    color: #ffffff;
  }
  100% {
    text-shadow: 0 0 5px var(--neon-cycle-color3), 0 0 10px var(--neon-cycle-color3), 0 0 15px var(--neon-cycle-color3);
    color: #ffffff;
  }
}

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

body {
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
  padding-top: 95px; /* Desktop header height: header-top (55px) + main-nav (40px) = 95px */
}

/* Site Header - Fixed and Neon Style */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid var(--neon-yellow); /* Neon yellow border for top area */
  box-shadow: 
    0 0 10px var(--neon-yellow),
    0 0 20px var(--neon-yellow),
    0 0 30px var(--neon-yellow),
    inset 0 0 20px rgba(255, 215, 0, 0.1);
  animation: theme-colors 8s ease-in-out infinite alternate;
  padding: 0; /* Container handles padding */
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px; /* Padding for logo and buttons */
}

.logo {
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow: 
    0 0 5px var(--neon-cycle-color1),
    0 0 10px var(--neon-cycle-color1),
    0 0 15px var(--neon-cycle-color1);
}

.desktop-nav-buttons {
  display: flex;
  gap: 15px;
  align-items: center;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
}

/* Buttons - Neon Style with Dynamic Colors */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-blue);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px var(--neon-cycle-color1),
    0 0 30px var(--neon-cycle-color1),
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Main Navigation - Separate Area */
.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Different dark gradient */
  border-top: 2px solid var(--neon-pink); /* Neon pink border for nav area */
  border-bottom: 2px solid var(--neon-pink);
  box-shadow: 
    0 0 10px var(--neon-pink),
    0 0 20px var(--neon-pink),
    0 0 30px var(--neon-pink),
    inset 0 0 20px rgba(255, 105, 180, 0.1);
  animation: theme-colors 6s ease-in-out infinite reverse; /* Different animation/direction */
  width: 100%;
  display: flex; /* Desktop default display */
  min-height: 40px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

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

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

/* Footer Styles - Regular */
.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding-top: 40px;
  font-size: 14px;
}

.footer-top-section, .footer-middle-section, .footer-bottom-section {
  width: 100%;
  padding-bottom: 20px;
}

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

.footer-top-section .footer-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 15px;
  border-left: 3px solid var(--site-secondary-accent);
  padding-left: 10px;
}

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

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

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

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

.footer-logo {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  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;
  object-fit: contain;
}

.footer-middle-section {
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

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

.footer-bottom-section {
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  color: #999999;
}

.copyright {
  font-size: 13px;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 105px; /* Mobile header height: header-top (55px) + mobile-nav-buttons (50px) = 105px */
  }

  .header-top {
    flex-direction: column; /* Stack logo/hamburger and mobile buttons */
  }

  .header-container {
    width: 100%;
    max-width: none;
    padding: 10px 15px;
    justify-content: space-between;
    position: relative; /* For hamburger positioning */
  }

  .logo {
    flex: 1;
    text-align: center;
    font-size: 24px;
    order: 2; /* Move logo to center */
  }

  .desktop-nav-buttons {
    display: none;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    order: 1; /* Keep hamburger on left */
    position: relative;
    left: 0;
    color: var(--neon-yellow);
    box-shadow: 
      0 0 5px var(--neon-yellow),
      0 0 10px var(--neon-yellow);
    animation: theme-colors 5s ease-in-out infinite alternate;
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: currentColor;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }

  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
  }

  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
  }

  .mobile-nav-buttons {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: inherit;
    order: 3; /* Place below logo/hamburger row */
  }

  .mobile-nav-buttons .btn {
    max-width: calc(100% - 20px); /* Account for padding/gap */
    min-width: 120px;
    flex: 1 1 auto;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    font-size: 14px;
    padding: 10px 15px;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0; /* Adjusted in JS to be below header if needed, but fixed from top */
    left: 0;
    width: 70%; /* Side menu width */
    height: 100%;
    background: linear-gradient(90deg, #0a0a0a, #1a1a2e); /* Dark background for side menu */
    z-index: 1000; /* Above overlay */
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease-out;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 100px; /* Space for fixed header above */
    border-right: 2px solid var(--neon-pink); /* Neon border for side menu */
    box-shadow: 
      0 0 10px var(--neon-pink),
      0 0 20px var(--neon-pink);
  }

  .main-nav.active {
    display: flex; /* CRITICAL: Must set display to show menu */
    transform: translateX(0); /* Slide into view */
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    max-width: none;
    padding: 0 20px;
  }

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

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

  .mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    transition: opacity 0.3s ease-in-out;
  }

  .mobile-menu-overlay.active {
    display: block;
  }

  /* Footer Mobile */
  .footer-top-section .footer-container {
    grid-template-columns: 1fr;
    padding-bottom: 20px;
  }

  .footer-col {
    margin-bottom: 20px;
  }

  .footer-col:last-child {
    margin-bottom: 0;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-logo {
    font-size: 20px;
  }

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

  .footer-middle-section {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}
