:root {
  --site-primary-dark: #0A2463;
  --site-secondary-gold: #FFD700;

  --neon-base-dark: #0a0a0a;
  --neon-dark-blue: #1a1a2e;
  --neon-dark-purple: #16213e;

  --theme-neon-primary: var(--site-secondary-gold);
  --theme-neon-secondary: #FF1493; /* Deep Pink */
  --theme-neon-accent: #00FFFF; /* Cyan */

  --neon-text-color: #ffffff;

  --header-top-height: 60px;
  --main-nav-height: 45px;
  --mobile-buttons-height: 55px;
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background-color: #0a0a0a;
  color: #c0c0c0;
  line-height: 1.6;
  padding-top: calc(var(--header-top-height) + var(--main-nav-height)); /* Desktop padding */
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

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

/* Header Top Section - Desktop */
.header-top {
  background: linear-gradient(135deg, var(--neon-base-dark), var(--neon-dark-blue), var(--neon-dark-purple));
  min-height: var(--header-top-height);
  display: flex;
  align-items: center;
  padding: 10px 0;
}

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

.logo {
  font-size: 2em;
  font-weight: bold;
  text-decoration: none;
  color: var(--neon-text-color);
  white-space: nowrap;
  padding: 5px 0;
}

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

/* Main Navigation - Desktop */
.main-nav {
  background: linear-gradient(135deg, var(--neon-dark-blue), var(--neon-dark-purple), var(--site-primary-dark));
  min-height: var(--main-nav-height);
  display: flex;
  align-items: center;
  padding: 5px 0;
}

.main-nav .nav-container {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.nav-link {
  color: #c0c0c0;
  text-decoration: none;
  font-weight: bold;
  padding: 10px 0;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--theme-neon-primary);
  transform: translateY(-2px);
}

/* Buttons */
.btn {
  position: relative;
  padding: 12px 25px;
  color: var(--neon-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent; /* Base border for dynamic effects */
  background: linear-gradient(135deg, var(--theme-neon-primary), var(--theme-neon-secondary));
  overflow: hidden; /* For glow effects */
}

.btn:hover {
  transform: translateY(-3px);
  animation-duration: 2s; /* Speed up glow on hover */
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  cursor: pointer;
  padding: 5px;
  position: relative;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
  position: relative;
}

/* Mobile Nav Buttons - Hidden on Desktop */
.mobile-nav-buttons-wrapper {
  display: none;
}

.mobile-menu-overlay {
  display: none;
}

/* Footer Styles - Regular, no neon */
.site-footer {
  background-color: #1a1a2e;
  color: #c0c0c0;
  padding: 40px 0 20px 0;
  font-size: 0.9em;
}

.footer-top-section, .footer-middle-section, .footer-bottom-section {
  padding: 15px 0;
}

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

.footer-middle-section {
  border-bottom: 1px solid #333;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--site-secondary-gold);
  padding-bottom: 5px;
  display: inline-block;
}

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

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

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

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

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

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

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

.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%); /* Make icons fit dark theme */
  transition: filter 0.3s ease;
}

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

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

.copyright {
  text-align: center;
  margin-top: 20px;
  color: #888;
}

/* ANIMATIONS - MUST BE INCLUDED */
@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 hue-spin {
  0% { filter: hue-rotate(0deg); box-shadow: 0 0 10px var(--theme-neon-primary), 0 0 20px var(--theme-neon-primary); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--theme-neon-primary), 0 0 20px var(--theme-neon-primary); }
}

@keyframes alternate-colors {
  0% { border-color: var(--theme-neon-primary); box-shadow: 0 0 10px var(--theme-neon-primary), 0 0 20px var(--theme-neon-primary); }
  100% { border-color: var(--theme-neon-secondary); box-shadow: 0 0 10px var(--theme-neon-secondary), 0 0 20px var(--theme-neon-secondary); }
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
  50% { background-position: 100% 50%; box-shadow: 0 0 10px #00ffff, 0 0 20px #0000ff; }
  100% { background-position: 0% 50%; box-shadow: 0 0 10px #ff0000, 0 0 20px #ff8000; }
}

@keyframes random-glow {
  0% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
  20% { border-color: #00ffff; box-shadow: 0 0 20px #00ffff; }
  40% { border-color: #ffff00; box-shadow: 0 0 20px #ffff00; }
  60% { border-color: #00ff00; box-shadow: 0 0 20px #00ff00; }
  80% { border-color: #ff0000; box-shadow: 0 0 20px #ff0000; }
  100% { border-color: #ff00ff; box-shadow: 0 0 20px #ff00ff; }
}

@keyframes theme-colors {
  0%, 100% {
    border-color: var(--theme-neon-primary);
    box-shadow:
      0 0 10px var(--theme-neon-primary),
      0 0 20px var(--theme-neon-primary),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  33% {
    border-color: var(--theme-neon-secondary);
    box-shadow:
      0 0 10px var(--theme-neon-secondary),
      0 0 20px var(--theme-neon-secondary),
      inset 0 0 10px rgba(255, 20, 147, 0.3);
  }
  66% {
    border-color: var(--theme-neon-accent);
    box-shadow:
      0 0 10px var(--theme-neon-accent),
      0 0 20px var(--theme-neon-accent),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
}

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

/* Neon Glow Classes */
.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-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;
}

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

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

  .header-container, .nav-container, .footer-container {
    max-width: none;
    padding: 0 15px;
  }

  .header-top .header-container {
    justify-content: space-between;
  }

  .hamburger-menu {
    display: flex;
    order: 0; /* Place hamburger on the left */
    margin-right: auto; /* Push logo to center */
    z-index: 1002; /* Above overlay and menu */
  }

  .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 {
    flex-grow: 1;
    text-align: center;
    order: 1;
    margin: 0;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-top-height) + var(--mobile-buttons-height)); /* Position below header and buttons */
    left: 0;
    width: 70%;
    height: calc(100% - var(--header-top-height) - var(--mobile-buttons-height)); /* Full height below header */
    overflow-y: auto;
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease-out;
    background: linear-gradient(180deg, var(--neon-dark-purple), var(--neon-base-dark));
    border-right: 2px solid var(--theme-neon-primary);
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    z-index: 1001;
  }

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

  .main-nav .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
  }

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

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

  .mobile-nav-buttons-wrapper {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--neon-dark-purple), var(--site-primary-dark));
    padding: 10px 0;
    border-bottom: 2px solid var(--theme-neon-secondary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    min-height: var(--mobile-buttons-height);
  }

  .mobile-nav-buttons-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

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

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

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

  .footer-col h4 {
    margin-top: 20px;
  }

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

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