:root {
  --site-primary-dark: #1A2E44;
  --site-secondary-gold: #E0B354;
  --neon-primary-glow: #00eaff; /* Vibrant Cyan */
  --neon-secondary-glow: #ffe000; /* Vibrant Yellow */
  --neon-accent-glow: #ff0077; /* Vibrant Pink */

  --header-top-bg: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  --header-top-border-color: var(--neon-secondary-glow);
  --main-nav-bg: linear-gradient(135deg, #16213e, #0f3460, #1a1a2e);
  --main-nav-border-color: var(--neon-accent-glow);

  --text-color-light: #f0f0f0;
  --text-color-dark: #cccccc;
  --link-color: #a0a0a0;
  --link-hover-color: var(--neon-primary-glow);

  --header-height-desktop: 120px; /* header-top + main-nav */
  --header-height-mobile: 130px; /* header-top + mobile-nav-buttons */
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #0a0a0a;
  color: var(--text-color-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height-desktop); /* Desktop default padding */
}

body.no-scroll {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-sizing: border-box;
}

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

/* Header Top - Neon Style */
.header-top {
  background: var(--header-top-bg);
  border-bottom: 2px solid var(--header-top-border-color);
  box-shadow:
    0 0 10px var(--header-top-border-color),
    0 0 20px var(--header-top-border-color),
    inset 0 0 15px rgba(255, 255, 255, 0.1);
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between; /* For desktop hamburger menu, hidden */
}

.header-top .header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color-light);
  white-space: nowrap;
  padding: 5px 0;
  /* Neon text base style */
  text-shadow:
    0 0 5px var(--neon-primary-glow),
    0 0 10px var(--neon-primary-glow),
    0 0 15px var(--neon-primary-glow);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

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

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

/* Main Navigation - Regular style for links, neon border */
.main-nav {
  background: var(--main-nav-bg);
  border-top: 2px solid var(--main-nav-border-color);
  border-bottom: 2px solid var(--main-nav-border-color);
  box-shadow:
    0 0 10px var(--main-nav-border-color),
    0 0 20px var(--main-nav-border-color),
    inset 0 0 15px rgba(255, 255, 255, 0.05);
  padding: 10px 0;
  display: flex; /* Desktop default: flex */
}

.main-nav .nav-container {
  display: flex;
  justify-content: center; /* Center nav links on desktop */
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.nav-link {
  color: var(--text-color-light);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

/* Buttons - Neon Style */
.btn {
  position: relative;
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary-glow);
}

/* Neon Glow Styles (Multiple styles, dynamic colors) */

/* Dynamic color variables */
:root {
  --neon-cycle-1: var(--neon-primary-glow), var(--neon-secondary-glow), var(--neon-accent-glow), #00ff00, #0000ff, #ff0000;
}

/* Base neon glow effect */
.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);
}

/* Style 1: Classic Neon Tube (dynamic color via animation) */
.neon-tube {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

/* Style 2: Pulse Glow (dynamic color via animation) */
.neon-pulse {
  border: 2px solid;
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* Style 3: Rainbow Flow (dynamic color via animation) */
.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}

/* Style 4: Theme Flow (recommended, dynamic color via animation) */
.theme-flow {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

/* 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 theme-colors {
  0%, 100% {
    border-color: var(--neon-primary-glow);
    box-shadow:
      0 0 10px var(--neon-primary-glow),
      0 0 20px var(--neon-primary-glow),
      inset 0 0 10px rgba(0, 234, 255, 0.3);
  }
  33% {
    border-color: var(--neon-secondary-glow);
    box-shadow:
      0 0 10px var(--neon-secondary-glow),
      0 0 20px var(--neon-secondary-glow),
      inset 0 0 10px rgba(255, 224, 0, 0.3);
  }
  66% {
    border-color: var(--neon-accent-glow);
    box-shadow:
      0 0 10px var(--neon-accent-glow),
      0 0 20px var(--neon-accent-glow),
      inset 0 0 10px rgba(255, 0, 119, 0.3);
  }
}

@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 text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--neon-primary-glow),
      0 0 10px var(--neon-primary-glow),
      0 0 15px var(--neon-primary-glow);
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary-glow),
      0 0 10px var(--neon-secondary-glow),
      0 0 15px var(--neon-secondary-glow);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent-glow),
      0 0 10px var(--neon-accent-glow),
      0 0 15px var(--neon-accent-glow);
    color: #ffffff;
  }
}

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 25px;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1002;
  padding: 0;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--neon-primary-glow);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px var(--neon-primary-glow), 0 0 10px var(--neon-primary-glow);
}

.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 Menu Overlay */
.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: 998;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

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

/* Footer styles */
.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.site-footer a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--neon-primary-glow);
}

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

.footer-col h4 {
  color: var(--text-color-light);
  font-size: 1.2em;
  margin-bottom: 15px;
}

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

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

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: var(--text-color-light);
  display: block;
  margin-bottom: 15px;
}

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

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

.payment-icons img, .game-providers-icons img, .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  filter: grayscale(100%) brightness(50%) contrast(150%);
  transition: filter 0.3s ease;
}

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

.footer-full-width-section {
  padding: 20px 0;
  text-align: center;
}

.footer-full-width-section h4 {
  margin-bottom: 15px;
  color: var(--text-color-light);
}

.game-providers-section {
  border-bottom: 1px solid #333;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-legal-nav a {
  margin-left: 15px;
  white-space: nowrap;
}

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

  .header-top {
    padding: 10px 0;
    flex-wrap: wrap;
  }

  .header-top .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    justify-content: space-between;
  }

  .logo {
    order: 2; /* Center logo */
    flex-grow: 1;
    text-align: center;
    font-size: 2em;
    padding: 0;
  }

  .hamburger-menu {
    display: flex;
    order: 1;
    margin-right: auto; /* Push logo to center */
  }

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

  .mobile-nav-buttons {
    display: flex;
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px 0;
    box-sizing: border-box;
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    max-width: 180px; /* Limit button width on small screens */
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    width: 80%;
    height: calc(100% - var(--header-height-mobile));
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-in-out;
    background: var(--main-nav-bg);
    border-right: 2px solid var(--main-nav-border-color);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    padding: 20px 0;
  }

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

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal-nav a {
    margin: 5px 10px;
  }

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

  .footer-full-width-section {
    padding: 15px 0;
  }
}