:root {
  --primary-color: #FFD700; /* Gold/Yellow from site scheme */
  --secondary-color: #1A1A1A; /* Dark Grey from site scheme */

  /* Base neon colors, derived from primary/accent for smart adaptation */
  --neon-base-1: #FFD700; /* Primary yellow */
  --neon-base-2: #FF00FF; /* Vibrant Pink */
  --neon-base-3: #00FFFF; /* Cyan */
  --neon-base-4: #FF6600; /* Orange */
  --neon-base-5: #00FF00; /* Green */
  --neon-base-6: #0000FF; /* Blue */

  /* Header Top Bar specific neon color (e.g., yellow) */
  --header-top-neon-color-1: var(--neon-base-1); /* Yellow */
  --header-top-neon-color-2: #FFEF53; /* Lighter Yellow */
  --header-top-neon-color-3: #FFFF80; /* Pale Yellow */

  /* Main Nav Bar specific neon color (e.g., red/pink) */
  --main-nav-neon-color-1: var(--neon-base-2); /* Pink */
  --main-nav-neon-color-2: #FF1493; /* Deep Pink */
  --main-nav-neon-color-3: #FF69B4; /* Hot Pink */

  /* Button specific neon colors (e.g., orange/red) */
  --button-neon-color-1: var(--neon-base-4); /* Orange */
  --button-neon-color-2: #FF4500; /* OrangeRed */
  --button-neon-color-3: #FF8C00; /* DarkOrange */

  /* Text glow colors */
  --text-glow-color-1: var(--neon-base-1);
  --text-glow-color-2: var(--neon-base-2);
  --text-glow-color-3: var(--neon-base-3);

  /* Backgrounds */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460; /* Slightly different dark blue for contrast */

  /* Header heights for padding calculation */
  --header-top-height: 60px; /* Estimated */
  --main-nav-height: 50px; /* Estimated */
  --mobile-buttons-height: 60px; /* Estimated */
}

/* General reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: var(--secondary-color); /* Dark background for overall site */
  color: #e0e0e0;
  padding-top: calc(var(--header-top-height) + var(--main-nav-height)); /* Desktop default padding */
  transition: padding-top 0.3s ease; /* Smooth transition for padding changes */
}

/* Dynamic color animations - based on prompt examples */

/* Theme colors flow for borders/box-shadows */
@keyframes theme-colors-header-top {
  0%, 100% {
    border-color: var(--header-top-neon-color-1);
    box-shadow:
      0 0 10px var(--header-top-neon-color-1),
      0 0 20px var(--header-top-neon-color-2),
      0 0 30px var(--header-top-neon-color-3),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  33% {
    border-color: var(--header-top-neon-color-2);
    box-shadow:
      0 0 10px var(--header-top-neon-color-2),
      0 0 20px var(--header-top-neon-color-3),
      0 0 30px var(--header-top-neon-color-1),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  66% {
    border-color: var(--header-top-neon-color-3);
    box-shadow:
      0 0 10px var(--header-top-neon-color-3),
      0 0 20px var(--header-top-neon-color-1),
      0 0 30px var(--header-top-neon-color-2),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
}

@keyframes theme-colors-main-nav {
  0%, 100% {
    border-color: var(--main-nav-neon-color-1);
    box-shadow:
      0 0 10px var(--main-nav-neon-color-1),
      0 0 20px var(--main-nav-neon-color-2),
      0 0 30px var(--main-nav-neon-color-3),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  33% {
    border-color: var(--main-nav-neon-color-2);
    box-shadow:
      0 0 10px var(--main-nav-neon-color-2),
      0 0 20px var(--main-nav-neon-color-3),
      0 0 30px var(--main-nav-neon-color-1),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  66% {
    border-color: var(--main-nav-neon-color-3);
    box-shadow:
      0 0 10px var(--main-nav-neon-color-3),
      0 0 20px var(--main-nav-neon-color-1),
      0 0 30px var(--main-nav-neon-color-2),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
}

@keyframes theme-colors-button {
  0%, 100% {
    border-color: var(--button-neon-color-1);
    box-shadow:
      0 0 10px var(--button-neon-color-1),
      0 0 20px var(--button-neon-color-2),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  33% {
    border-color: var(--button-neon-color-2);
    box-shadow:
      0 0 10px var(--button-neon-color-2),
      0 0 20px var(--button-neon-color-3),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  66% {
    border-color: var(--button-neon-color-3);
    box-shadow:
      0 0 10px var(--button-neon-color-3),
      0 0 20px var(--button-neon-color-1),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
}

/* Dynamic neon text glow */
.neon-text-dynamic {
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--text-glow-color-1),
      0 0 10px var(--text-glow-color-1),
      0 0 15px var(--text-glow-color-1);
    color: #ffffff;
  }
  33% {
    text-shadow:
      0 0 5px var(--text-glow-color-2),
      0 0 10px var(--text-glow-color-2),
      0 0 15px var(--text-glow-color-2);
    color: #ffffff;
  }
  66% {
    text-shadow:
      0 0 5px var(--text-glow-color-3),
      0 0 10px var(--text-glow-color-3),
      0 0 15px var(--text-glow-color-3);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--text-glow-color-1),
      0 0 10px var(--text-glow-color-1),
      0 0 15px var(--text-glow-color-1);
    color: #ffffff;
  }
}

/* Pulse glow for hamburger menu */
@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;
  }
}

/* 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), var(--dark-bg-3));
  padding: 0;
  min-height: var(--header-top-height);
  display: flex;
  align-items: center;
  animation: theme-colors-header-top 4s ease-in-out infinite;
  border-bottom: 1px solid transparent; /* To make animation visible */
}

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

.logo {
  font-family: 'Electrolize', sans-serif; /* Example retro-futuristic font */
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  padding: 5px 0;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--button-neon-color-1), var(--button-neon-color-2));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid transparent;
  animation: theme-colors-button 4s ease-in-out infinite;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: inline-flex; /* Ensure flex for text-shadow on button text */
  align-items: center;
  justify-content: center;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.2);
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--dark-bg-4));
  padding: 0;
  min-height: var(--main-nav-height);
  display: flex; /* Desktop default: visible */
  align-items: center;
  animation: theme-colors-main-nav 5s linear infinite;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller desktop screens */
}

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 0.95em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 25px;
  position: relative;
  z-index: 1001;
  animation: pulse-glow 2s ease-in-out infinite alternate;
  color: var(--header-top-neon-color-1);
  border-radius: 3px;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: currentColor;
  border-radius: 5px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger-menu span:nth-child(1) {
  top: 0px;
}

.hamburger-menu span:nth-child(2) {
  top: 11px;
}

.hamburger-menu span:nth-child(3) {
  top: 22px;
}

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

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

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

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

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

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

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

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

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

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

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

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

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

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

.footer-logo {
  font-family: 'Electrolize', sans-serif;
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-color);
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  color: #b0b0b0;
  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-methods h4, .game-providers-section h4, .social-media-section h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.footer-middle-section {
  background-color: var(--dark-bg-2);
  padding: 25px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-middle-section .footer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.copyright-info {
  text-align: center;
  color: #808080;
  font-size: 0.85em;
  padding-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    /* Adjust padding for mobile header (header-top + mobile-nav-buttons) */
    padding-top: calc(var(--header-top-height) + var(--mobile-buttons-height));
  }

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

  .header-top {
    padding: 10px 0;
    justify-content: space-between;
    position: relative; /* For hamburger z-index */
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
    position: relative;
    order: 1;
    margin-right: auto; /* Push logo to center */
  }

  .logo {
    order: 2;
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center;
    font-size: 1.8em;
    margin: 0 auto; /* Center the logo text */
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: calc(var(--header-top-height) + var(--mobile-buttons-height)); /* Below header-top and mobile buttons */
    left: 0;
    width: 80%; /* Menu width */
    height: calc(100vh - var(--header-top-height) - var(--mobile-buttons-height)); /* Full height below header */
    background: linear-gradient(180deg, var(--dark-bg-3), var(--dark-bg-4));
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Below overlay */
    overflow-y: auto;
    padding: 20px 0;
    animation: none; /* Disable desktop animation */
    border: none; /* Disable desktop border */
  }

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

  .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    text-align: left;
  }

  .mobile-nav-buttons {
    display: flex; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: var(--dark-bg-1);
    border-bottom: 1px solid var(--primary-color);
    position: relative; /* To be below header-top */
    z-index: 990; /* Below main-nav and overlay */
    min-height: var(--mobile-buttons-height);
    animation: theme-colors-header-top 4s ease-in-out infinite; /* Reuse animation */
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    font-size: 0.9em;
    padding: 10px 15px;
  }

  .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; /* Above content, below menu */
  }

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

  .footer-top-section .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .footer-col ul {
    padding-inline-start: 0;
  }

  .footer-logo {
    margin: 0 auto 15px auto;
  }

  .game-providers-section,
  .social-media-section {
    text-align: center;
  }

  .payment-icons, .game-providers-icons, .social-media-icons {
    justify-content: center;
  }
}

/* Utility for body scroll lock */
body.no-scroll {
  overflow: hidden;
}
