:root {
  --primary-site-color: #0A2038;
  --secondary-site-color: #FFD700;
  --neon-primary: var(--secondary-site-color, #FFD700); /* Neon Yellow */
  --neon-secondary: #FF6600; /* Neon Orange */
  --neon-accent: #FF00FF; /* Neon Magenta */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --text-color: #ffffff;
  --light-text-color: #cccccc;
}

/* 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);
}

/* Styles for different glow patterns (multi-style support) */
/* Style 1: Classic Neon Tube Effect */
.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s linear infinite;
}

/* Style 2: Cyberpunk Grid Glow (conceptual for background/containers) */
.cyber-grid {
  background:
    linear-gradient(90deg, transparent 95%, currentColor 100%),
    linear-gradient(180deg, transparent 95%, currentColor 100%);
  background-size: 20px 20px;
  border: 1px solid;
  animation: hue-spin 4s linear infinite;
}

/* Style 3: Pulse Breathing Effect */
.neon-pulse {
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* Style 4: Rainbow Cycle Gradient */
.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}

/* Style 5: Hue Rotation */
.hue-rotate {
  border: 2px solid;
  filter: hue-rotate(0deg);
  animation: hue-spin 4s linear infinite;
}

/* Style 6: Alternate Color Glow */
.alternate-glow {
  border: 2px solid;
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

/* Style 7: Color Stream (for backgrounds/buttons) */
.color-stream {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg,
    #ff0000, #ff8000, #ffff00, #00ff00,
    #00ffff, #0000ff, #8000ff, #ff0080
  );
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}

/* Style 8: Random Color Changes */
.random-colors {
  border: 2px solid;
  animation: random-glow 5s linear infinite;
}

/* Style 9: Theme Color Dynamic Change (Recommended) */
.theme-flow {
  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, 255, 255, 0.1);
  animation: theme-colors 4s ease-in-out infinite;
}

/* Style 10: LED Matrix Effect (conceptual) */
.led-matrix {
  position: relative;
  border: 2px solid;
  box-shadow:
    0 0 5px currentColor,
    0 0 10px currentColor;
  animation: random-glow 5s linear infinite;
}
.led-matrix::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background:
    radial-gradient(circle at 0% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 0% 100%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 100%, currentColor 2px, transparent 3px);
  background-size: 20px 20px;
  animation: led-blink 1s steps(2) infinite;
}

/* Keyframe Animations */
@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(--neon-primary), 0 0 20px var(--neon-primary); }
  100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
}
@keyframes alternate-colors {
  0% { border-color: var(--neon-primary); box-shadow: 0 0 10px var(--neon-primary), 0 0 20px var(--neon-primary); }
  100% { border-color: var(--neon-secondary); box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px var(--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(--neon-primary, #FFD700);
    box-shadow:
      0 0 10px var(--neon-primary, #FFD700),
      0 0 20px var(--neon-primary, #FFD700),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  33% {
    border-color: var(--neon-secondary, #FF6600);
    box-shadow:
      0 0 10px var(--neon-secondary, #FF6600),
      0 0 20px var(--neon-secondary, #FF6600),
      inset 0 0 10px rgba(255, 102, 0, 0.3);
  }
  66% {
    border-color: var(--neon-accent, #FF00FF);
    box-shadow:
      0 0 10px var(--neon-accent, #FF00FF),
      0 0 20px var(--neon-accent, #FF00FF),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}
@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.8; }
}
@keyframes pulse-glow {
  from { text-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
  to { text-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; }
}

/* Dynamic Neon Text Glow */
.neon-text-dynamic {
  color: var(--text-color);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}
@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);
  }
  50% {
    text-shadow:
      0 0 5px var(--neon-secondary),
      0 0 10px var(--neon-secondary),
      0 0 15px var(--neon-secondary);
  }
  100% {
    text-shadow:
      0 0 5px var(--neon-accent),
      0 0 10px var(--neon-accent),
      0 0 15px var(--neon-accent);
  }
}

/* General Body/HTML Reset */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--dark-bg-1);
  color: var(--text-color);
  line-height: 1.6;
}

/* Fixed Header Padding for Main Content */
body.has-fixed-header {
  padding-top: 120px; /* Adjust dynamically based on header and mobile button area height */
}

/* Site Header - Fixed Positioning and Base Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: 60px;
  box-sizing: border-box;
}

/* Header Top Section - Logo and Buttons */
.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  position: relative;
  z-index: 1001;
}

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

/* Logo Styles */
.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block; /* Ensure visibility */
}

/* Desktop Navigation Buttons */
.desktop-nav-buttons {
  display: flex;
  gap: 12px;
}

/* Navigation Menu */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  padding: 10px 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  display: flex; /* Desktop default: visible */
  justify-content: center;
  align-items: center;
  position: static; /* Desktop default: static */
  z-index: 999;
}

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

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

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

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

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

/* Mobile Specific Styles */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
  padding: 5px;
  box-sizing: content-box;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  border-radius: 3px;
  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: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

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

.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: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-buttons-area {
  display: none; /* Hidden on desktop */
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: fixed;
  width: 100%;
  top: 60px; /* Below header-top */
  left: 0;
  z-index: 999;
  box-sizing: border-box;
  border-bottom: 1px solid transparent;
  animation: theme-colors 4s ease-in-out infinite; /* Apply dynamic glow */
}

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

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

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

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

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

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

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

.footer-nav li a {
  color: #c0c0c0;
  text-decoration: none;
  padding: 5px 0;
  display: block;
  transition: color 0.3s ease;
}

.footer-nav li 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;
  filter: grayscale(80%) brightness(120%);
  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-mid-section {
  margin-bottom: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.game-providers-section h4, .social-media-section h4 {
  margin-top: 0;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal-nav {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

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

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

.copyright {
  margin: 0;
  color: #999999;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body.has-fixed-header {
    padding-top: 120px; /* Adjust based on mobile header-top + mobile-buttons-area */
  }

  .header-container, .nav-container {
    width: 100%;
    max-width: none;
    padding: 0 15px; /* Smaller padding for mobile */
  }

  .site-header {
    min-height: auto;
  }

  .header-top {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

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

  .logo {
    order: 2;
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
  }

  .hamburger-menu {
    display: block; /* Show hamburger menu */
    order: 1;
    margin-right: auto;
  }

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

  .mobile-buttons-area {
    display: flex; /* Show mobile buttons */
  }

  .main-nav {
    display: none; /* Hide by default on mobile */
    flex-direction: column; /* Vertical menu */
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* Mobile menu width */
    height: 100vh;
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-3));
    padding-top: 80px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    border: none; /* Remove border from desktop nav */
  }

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

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

  .nav-link {
    width: 100%;
    text-align: left;
    font-size: 1.2em;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  .footer-top-cols {
    grid-template-columns: 1fr;
  }

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

  .footer-legal-nav li a {
    padding: 5px 0;
  }

  .footer-col.footer-about {
    text-align: center;
  }
  .footer-col.footer-about .footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
  .payment-methods, .game-providers-section, .social-media-section {
    text-align: center;
  }
  .payment-icons, .game-providers-icons, .social-media-icons {
    justify-content: center;
  }
}
