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

  /* Neon colors derived from site scheme and vibrant spectrum */
  --neon-primary: #00FFFF; /* Cyan */
  --neon-secondary: #FF00FF; /* Magenta */
  --neon-accent: #FFFF00; /* Pure Yellow */

  /* Specific colors for dynamic animations */
  --dynamic-neon-1: #00FFFF; /* Cyan */
  --dynamic-neon-2: #FF00FF; /* Magenta */
  --dynamic-neon-3: #FFFF00; /* Yellow */
  --dynamic-neon-4: #FF1493; /* Deep Pink */
  --dynamic-neon-5: #00FF7F; /* Spring Green */
  --dynamic-neon-6: #FF4500; /* Orange Red */

  /* Header heights for padding calculations */
  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 50px;
  --mobile-header-height: 60px; /* hamburger + logo row */
  --mobile-buttons-height: 60px; /* button row */
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: #0a0a0a;
  padding-top: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop)); /* Desktop padding */
  direction: ltr;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Neon Glow Animations */
@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(--dynamic-neon-1);
    box-shadow:
      0 0 10px var(--dynamic-neon-1),
      0 0 20px var(--dynamic-neon-1);
  }
  20% {
    border-color: var(--dynamic-neon-2);
    box-shadow:
      0 0 10px var(--dynamic-neon-2),
      0 0 20px var(--dynamic-neon-2);
  }
  40% {
    border-color: var(--dynamic-neon-3);
    box-shadow:
      0 0 10px var(--dynamic-neon-3),
      0 0 20px var(--dynamic-neon-3);
  }
  60% {
    border-color: var(--dynamic-neon-4);
    box-shadow:
      0 0 10px var(--dynamic-neon-4),
      0 0 20px var(--dynamic-neon-4);
  }
  80% {
    border-color: var(--dynamic-neon-5);
    box-shadow:
      0 0 10px var(--dynamic-neon-5),
      0 0 20px var(--dynamic-neon-5);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 5px var(--dynamic-neon-1),
      0 0 10px var(--dynamic-neon-1),
      0 0 15px var(--dynamic-neon-1);
    color: #ffffff;
  }
  25% {
    text-shadow:
      0 0 5px var(--dynamic-neon-2),
      0 0 10px var(--dynamic-neon-2),
      0 0 15px var(--dynamic-neon-2);
    color: #ffffff;
  }
  50% {
    text-shadow:
      0 0 5px var(--dynamic-neon-3),
      0 0 10px var(--dynamic-neon-3),
      0 0 15px var(--dynamic-neon-3);
    color: #ffffff;
  }
  75% {
    text-shadow:
      0 0 5px var(--dynamic-neon-4),
      0 0 10px var(--dynamic-neon-4),
      0 0 15px var(--dynamic-neon-4);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 5px var(--dynamic-neon-1),
      0 0 10px var(--dynamic-neon-1),
      0 0 15px var(--dynamic-neon-1);
    color: #ffffff;
  }
}

/* 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: theme-colors 4s ease-in-out infinite;
}

.neon-pulse {
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

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

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--site-primary-dark), #1a1a2e, #16213e);
  display: flex;
  flex-direction: column;
}

.header-top {
  min-height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--site-primary-dark), #1a1a2e, #16213e);
  border-bottom: 2px solid var(--site-secondary-gold);
  box-shadow:
    0 0 10px var(--site-secondary-gold),
    0 0 20px var(--site-secondary-gold),
    0 0 30px var(--site-secondary-gold),
    inset 0 0 15px rgba(255, 215, 0, 0.1);
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  /* Dynamic glow is applied via .theme-flow class */
  border: 2px solid;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
}

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

.main-nav {
  min-height: var(--main-nav-height-desktop);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460); /* Different dark gradient */
  border-top: 2px solid var(--neon-secondary); /* Magenta border */
  border-bottom: 2px solid var(--neon-secondary); /* Magenta border */
  box-shadow:
    0 0 10px var(--neon-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 15px rgba(255, 0, 255, 0.1);
}

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

.nav-item {
  padding: 8px 15px;
  font-size: 1.1em;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-item:hover {
  color: var(--neon-primary);
  text-shadow: 0 0 8px var(--neon-primary);
}

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

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

.footer-top-grid {
  max-width: 1200px;
  margin: 0 auto 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 0 30px;
}

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

.footer-col a {
  display: block;
  color: #cccccc;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

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

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

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

.payment-methods .payment-icons,
.game-providers-section .game-providers-icons,
.social-media-section .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.payment-methods .payment-icons img,
.game-providers-section .game-providers-icons img,
.social-media-section .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: 20px 30px;
  background-color: #1c1c1c;
  border-radius: 8px;
}

.game-providers-section h4,
.social-media-section h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.1em;
  text-align: center;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 30px 0;
  border-top: 1px solid #333333;
  color: #aaaaaa;
}

.copyright {
  margin-top: 15px;
}

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

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

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .header-top {
    min-height: var(--mobile-header-height);
    justify-content: flex-start;
    border-bottom: none;
    box-shadow: none; /* Remove desktop glow for mobile header-top */
  }

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    order: 0; /* Place to the left */
    padding: 5px;
    border-radius: 3px;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic glow for hamburger */
  }

  .hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0 5px #fff, 0 0 10px #fff; /* White glow for lines */
  }

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

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

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

  .mobile-nav-buttons {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--site-primary-dark), #1a1a2e, #16213e);
    border-bottom: 2px solid var(--site-secondary-gold);
    box-shadow:
      0 0 10px var(--site-secondary-gold),
      0 0 20px var(--site-secondary-gold),
      0 0 30px var(--site-secondary-gold),
      inset 0 0 15px rgba(255, 215, 0, 0.1);
    z-index: 999; /* Below main nav but above content */
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    max-width: calc(50% - 10px); /* Max 2 buttons per row, with gap */
    min-width: 140px; /* Minimum width for readability */
    padding: 10px 15px;
    font-size: 0.9em;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--mobile-header-height);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    border-right: 2px solid var(--neon-primary);
    box-shadow: 5px 0 15px rgba(0, 255, 255, 0.5);
    display: none; /* Hidden by default on mobile */
    z-index: 1000; /* Ensure it's above overlay */
  }

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

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

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

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 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-top-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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