:root {
  --primary-site-color: #FFD700; /* Gold */
  --secondary-site-color: #000080; /* Navy */
  --neon-primary: var(--primary-site-color); /* Initial primary neon */
  --neon-secondary: #00FFFF; /* Cyan for contrast */
  --neon-accent: #FF00FF; /* Magenta for contrast */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --header-height-desktop: 110px; /* header-top + main-nav */
  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 50px;
  --header-height-mobile: 110px; /* header-top + mobile-nav-buttons */
  --header-top-height-mobile: 60px;
  --mobile-buttons-height-mobile: 50px;
}

/* Base styles for body to prevent fixed header overlap */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: #fff;
  padding-top: var(--header-height-desktop); /* Default desktop padding */
}

/* Animations for dynamic neon effects */
@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(255, 255, 255, 0.1);
  }
  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, 255, 255, 0.1);
  }
  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, 255, 255, 0.1);
  }
}

@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;
  }
}

@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; }
}

/* Header - Fixed, Dark background, Neon effects */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-bg-1); /* Fallback */
}

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

/* Header Top - Logo and Buttons */
.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  min-height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: var(--neon-primary); /* Initial color for dynamic text glow */
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 5px 0;
}

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

/* Main Navigation - Menu items */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: rainbow-border 6s linear infinite; /* Different animation for contrast */
  min-height: var(--main-nav-height-desktop);
  display: flex; /* Desktop default: flex */
  align-items: center;
}

.main-nav .nav-container {
  display: flex;
  flex-direction: row; /* Desktop default: row */
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

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

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

/* Buttons */
.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  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-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 0.95em;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s; /* Speed up color change on hover */
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--neon-primary), 0 0 30px var(--neon-primary), inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Hamburger Menu (Mobile Only) */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
}

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

.hamburger-menu.active .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-menu.active .bar:nth-child(2) {
  opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation Buttons (Mobile Only) */
.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
}

/* Mobile Menu Overlay */
.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;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

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

/* Footer */
.site-footer {
  background-color: #111;
  color: #bbb;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

.footer-container {
  padding-top: 20px;
}

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

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

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

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

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

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

.footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none;
  color: var(--primary-site-color);
  margin-bottom: 15px;
  display: inline-block;
}

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

.payment-methods, .game-providers-section, .social-media-section {
  margin-top: 20px;
}

.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;
  filter: grayscale(100%) brightness(150%); /* Subtle effect for icons */
  transition: filter 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
}

.footer-legal ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

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

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

.copyright {
  color: #888;
}

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

  .header-container, .nav-container, .footer-container {
    width: 100%;
    max-width: none;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header Top - Mobile Layout */
  .header-top .header-container {
    justify-content: space-between;
  }

  .logo {
    flex: 1;
    text-align: center;
    font-size: 1.8em;
    order: 2;
  }

  .hamburger-menu {
    display: block;
    order: 1;
  }

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

  /* Mobile Navigation Buttons - Always visible below header-top */
  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    background: var(--dark-bg-1);
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    z-index: 990; /* Below mobile menu overlay */
    min-height: var(--mobile-buttons-height-mobile);
  }

  /* Main Navigation - Mobile (Hamburger Menu) */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: var(--dark-bg-1);
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 80px; /* Space for logo/close button if added */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
  }

  .main-nav.active {
    display: flex; /* CRITICAL: Must be flex to show */
    transform: translateX(0);
  }

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

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

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

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

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

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

  .footer-logo {
    margin-bottom: 10px;
  }

  .footer-legal ul {
    flex-direction: column;
    gap: 10px;
  }

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

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