:root {
  --primary-color: #0A2463; /* Website primary color */
  --secondary-color: #FFD700; /* Website auxiliary color */

  /* Neon dynamic colors, derived from website scheme or vibrant defaults */
  --neon-primary-base: #00FFFF; /* Bright Cyan */
  --neon-secondary-base: #FF00FF; /* Bright Magenta */
  --neon-accent-base: #FFFF00; /* Bright Yellow */

  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 50px;
  --header-total-height-desktop: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop));

  --header-top-height-mobile: 60px;
  --mobile-buttons-height: 80px;
  --header-total-height-mobile: calc(var(--header-top-height-mobile) + var(--mobile-buttons-height));
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #0a0a0a; /* Dark background for overall page */
  padding-top: var(--header-total-height-desktop); /* Default for desktop */
  transition: padding-top 0.3s ease;
}

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

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--neon-primary-base),
      0 0 10px var(--neon-primary-base),
      0 0 15px var(--neon-primary-base);
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary-base),
      0 0 10px var(--neon-secondary-base),
      0 0 15px var(--neon-secondary-base);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent-base),
      0 0 10px var(--neon-accent-base),
      0 0 15px var(--neon-accent-base);
    color: #ffffff;
  }
}

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

/* Neon Glow Styles */
.neon-glow-primary {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}
.neon-glow-secondary {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse;
}
.neon-glow-accent {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite 1s;
}
.neon-text-glow {
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}
.neon-flicker-effect {
  animation: neon-flicker 2s infinite alternate;
}
.neon-pulse-effect {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

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

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  min-height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
  padding: 10px 0;
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
  padding: 5px 0;
}

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  min-height: var(--main-nav-height-desktop);
  display: flex;
  align-items: center;
  padding: 10px 0;
}

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

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

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

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary-base), var(--neon-secondary-base));
  padding: 10px 20px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary-base);
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow:
    0 0 15px currentColor,
    0 0 30px currentColor,
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  margin-right: 15px;
  order: 1;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-accent-base);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px var(--neon-accent-base), 0 0 10px var(--neon-accent-base);
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 10px; }
.hamburger-menu span:nth-child(3) { top: 20px; }

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

.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: 999;
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

.mobile-nav-buttons {
  display: none; /* Hidden on desktop */
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
  padding: 10px 20px;
  justify-content: center;
  gap: 10px;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite 0.5s;
  z-index: 990; /* Below main nav and overlay */
}

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

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

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

.footer-col h4 {
  color: #FFD700;
  margin-bottom: 15px;
  font-size: 1.1em;
}

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

.footer-col ul li a {
  color: #f0f0f0;
  text-decoration: none;
  margin-bottom: 8px;
  display: block;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #FFD700;
}

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

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

.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;
  filter: grayscale(100%) brightness(150%); /* Subtle glow for footer 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%);
}

.game-providers-section, .social-media-section {
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaaaaa;
}

.copyright p {
  margin: 0;
}

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

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

  .header-top {
    justify-content: space-between;
    padding: 10px 0;
    min-height: var(--header-top-height-mobile);
  }

  .logo {
    font-size: 1.8em;
    flex-grow: 1;
    text-align: center;
    order: 2;
    margin-left: -45px; /* Counteract hamburger width */
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    order: 1;
    width: 30px;
    height: 24px;
  }

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

  .mobile-nav-buttons {
    display: flex;
    position: relative; /* Relative to header, not fixed to viewport */
    width: 100%;
    justify-content: center;
    padding: 10px 15px;
    gap: 10px;
    z-index: 990;
  }

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

  .main-nav {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px; /* Limit sidebar width */
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 80px; /* Space for logo/hamburger */
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    z-index: 1000;
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
  }

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

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

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

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

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

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

  .footer-col ul {
    padding-left: 0;
  }

  .footer-col ul li a {
    display: inline-block;
    margin: 0 10px 8px;
  }

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

  .payment-methods, .game-providers-section, .social-media-section {
    text-align: center;
  }

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

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

body.no-scroll {
  overflow: hidden;
}