:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC143C; /* Crimson */
  --accent-color: #00FFFF; /* Cyan */

  --neon-primary: var(--primary-color);
  --neon-secondary: var(--secondary-color);
  --neon-accent: var(--accent-color);

  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --text-color: #ffffff;
  --link-color: #cccccc;
  --link-hover-color: var(--neon-primary);
}

/* Base Reset & Body Padding for Fixed Header */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: var(--dark-bg-1);
  color: var(--text-color);
  padding-top: 110px; /* Default for desktop header height (header-top + main-nav) */
  overflow-x: hidden;
}

/* Animations for Neon Effects */
@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 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, 215, 0, 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(220, 20, 60, 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(0, 255, 255, 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: var(--text-color);
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
    color: var(--text-color);
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
    color: var(--text-color);
  }
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-bg-1); /* Fallback */
  display: flex;
  flex-direction: column;
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  padding: 15px 0;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border/shadow */
}

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

.logo {
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
  /* Apply dynamic text glow */
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.logo:hover {
  color: var(--neon-primary);
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid;
  /* Apply dynamic border/shadow */
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow:
    0 0 5px var(--text-color),
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  font-weight: bold;
  overflow: hidden;
}

.btn:hover {
  animation-duration: 2s; /* Faster glow on hover */
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--neon-secondary), var(--neon-primary));
}

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  padding: 10px 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  /* Apply dynamic border/shadow */
  animation: theme-colors 4s ease-in-out infinite;
  display: flex;
  flex-direction: row; /* Desktop default: horizontal */
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: row; /* Desktop default: horizontal */
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.nav-link {
  color: var(--link-color);
  text-decoration: none;
  font-size: 1.1em;
  padding: 8px 15px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 25px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  transition: transform 0.3s ease;
}

.hamburger-menu span {
  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 span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 11px; }
.hamburger-menu span:nth-child(3) { top: 22px; }

.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: none; /* Hidden on desktop */
}

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

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

.footer-main {
  border-bottom: 1px solid #333;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.site-footer .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr); /* First column wider */
  gap: 30px;
}

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

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--neon-primary);
}

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

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin-top: 15px;
}

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

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

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

.game-providers-section,
.social-media-section {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
}

.game-providers-section h4,
.social-media-section h4 {
  color: var(--text-color);
  font-size: 1.2em;
  margin-bottom: 20px;
  position: relative;
}

.game-providers-section h4::after,
.social-media-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 40px;
  height: 2px;
  background-color: var(--neon-primary);
}

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

.footer-bottom .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright {
  margin: 0;
}

.footer-legal-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: var(--neon-primary);
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    /* Header-top (60px) + mobile-nav-buttons (50px) = 110px. Add some buffer. */
    padding-top: 120px; 
  }

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

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    justify-content: space-between;
  }

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

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-2));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    width: 100%;
    box-sizing: border-box;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* Sidebar width */
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px; /* Space for logo/hamburger if it were inside */
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(180deg, var(--dark-bg-3), var(--dark-bg-1));
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Apply glow to sidebar */
    box-sizing: border-box;
  }

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

  .nav-container {
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
  }

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

  .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-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
  }

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

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer Mobile */
  .site-footer .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .footer-col h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-bottom .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .game-providers-section,
  .social-media-section {
    padding: 0 15px;
  }

  .game-providers-section h4::after,
  .social-media-section h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}
