:root {
  --site-primary: #C0392B;
  --site-secondary: #F39C12;

  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;

  /* Default neon colors, will be overridden by sections */
  --neon-primary: #FF3366;
  --neon-secondary: #FFD700;
  --neon-accent: #00FFFF;

  --text-color: #e0e0e0;
  --link-color: #ffffff;
  --link-hover-color: var(--neon-primary);
}

/* Base Neon Glow Effects */
.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);
}

/* Neon Border Styles */
.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s ease-in-out infinite;
}

.neon-pulse {
  border: 2px solid;
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}

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

/* Keyframes for Dynamic Colors and Glows */
@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);
    box-shadow:
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      inset 0 0 10px var(--neon-primary, 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 var(--neon-secondary, 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 var(--neon-accent, 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: 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);
  }
}

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

/* Global Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #000;
  color: var(--text-color);
  padding-top: 110px; /* Account for fixed header + mobile buttons */
}

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

/* Header Top - Desktop */
.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  padding: 10px 0;
  /* Override neon colors for header top */
  --neon-primary: #FFD700;
  --neon-secondary: #FFEB3B;
  --neon-accent: #FFFF00;
  animation: theme-colors 4s ease-in-out infinite;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: var(--link-color);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* Uses neon-text-dynamic animation */
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  /* Uses theme-flow and neon-tube/neon-pulse animations */
}

.btn:hover {
  animation-duration: 2s; /* Faster color change on hover */
  transform: translateY(-2px);
  opacity: 0.9;
}

/* Main Navigation - Desktop */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3), var(--dark-bg-4));
  padding: 10px 0;
  display: flex;
  /* Override neon colors for main nav */
  --neon-primary: #FF3366;
  --neon-secondary: #FF0000;
  --neon-accent: #FF6600;
  animation: theme-colors 4s ease-in-out infinite;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 5px 20px;
}

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

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

.hamburger-menu,
.mobile-buttons-area,
.mobile-right-placeholder,
.mobile-menu-overlay {
  display: none;
}

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-1);
  color: var(--text-color);
  padding: 40px 0 20px;
  font-size: 0.9em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer h4 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 5px;
}

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

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
}

.footer-logo {
  font-size: 2em;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
}

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

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

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

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

.footer-nav a:hover {
  color: var(--site-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: 40px;
  height: auto;
  width: auto;
  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-middle {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
}

.game-providers-section,
.social-media-section {
  width: 100%;
}

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

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

.footer-legal-nav li {
  margin: 0;
}

.copyright {
  color: #888;
  font-size: 0.85em;
}

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

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

  .header-container {
    padding: 0 15px;
    justify-content: space-between;
  }

  .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: 1002;
    position: relative;
    /* Neon glow for hamburger */
    --neon-primary: #00FFFF;
    --neon-secondary: #00FF00;
    --neon-accent: #FFFF00;
    animation: theme-colors 4s ease-in-out infinite;
    border-radius: 3px;
    box-shadow:
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary);
  }

  .hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px #ffffff;
  }

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

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8em;
    /* Uses neon-text-dynamic animation */
  }

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

  .mobile-right-placeholder {
    display: block;
    width: 30px; /* Balance hamburger space */
    height: 25px;
  }

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--dark-bg-3), var(--dark-bg-4));
    border-bottom: 2px solid;
    /* Override neon colors for mobile buttons area */
    --neon-primary: #FF00FF;
    --neon-secondary: #00FFFF;
    --neon-accent: #FFFF00;
    animation: theme-colors 4s ease-in-out infinite;
  }

  .mobile-buttons-area .btn {
    flex: 1;
    max-width: 180px;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: var(--dark-bg-3); /* Solid background for mobile menu */
    padding-top: 20px;
    transform: translateX(-100%); /* Slide out from left */
    transition: transform 0.3s ease-in-out;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    z-index: 9999; /* Higher z-index for menu */
    border-right: 2px solid var(--neon-primary);
    /* Mobile menu uses regular styles, no neon glow for the menu itself */
    animation: none;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 20px;
    max-width: none; /* Remove max-width for mobile */
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1em;
    color: var(--text-color);
    text-shadow: none; /* No neon glow for mobile menu links */
  }

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

  .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: 9998;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }

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

  .site-footer h4 {
    font-size: 1.1em;
  }

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

  .footer-col:first-child {
    order: 0;
  }

  .footer-col:nth-child(2) {
    order: 1;
  }

  .footer-col:nth-child(3) {
    order: 2;
  }

  .footer-col.payment-methods {
    order: 3;
  }

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

  .footer-legal-nav li {
    width: 100%;
  }

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