:root {
  --site-primary-color: #FFD700; /* Gold */
  --site-secondary-color: #1A1A1A; /* Dark Grey */

  /* Base neon colors for animations, derived from site colors or vibrant defaults */
  --neon-color-1: #00FFFF; /* Cyan */
  --neon-color-2: #FF00FF; /* Magenta */
  --neon-color-3: #FFFF00; /* Yellow */
  --neon-color-4: #FF1493; /* Deep Pink */
  --neon-color-5: #00FF00; /* Lime Green */

  /* Specific colors for header-top and main-nav for contrast */
  --header-top-glow-color: var(--neon-color-3); /* Yellow for top area */
  --main-nav-glow-color: var(--neon-color-4); /* Deep Pink for main nav */
  --button-glow-color: var(--neon-color-1); /* Cyan for buttons */

  /* Dynamic color cycle for animations */
  --theme-flow-color-1: var(--site-primary-color);
  --theme-flow-color-2: #FF6600; /* Orange */
  --theme-flow-color-3: #00FFFF; /* Cyan */
}

/* Keyframe Animations for Dynamic Glows */
@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 theme-colors {
  0%, 100% {
    border-color: var(--theme-flow-color-1);
    box-shadow:
      0 0 10px var(--theme-flow-color-1),
      0 0 20px var(--theme-flow-color-1),
      inset 0 0 10px rgba(255, 215, 0, 0.3); /* Based on site-primary-color */
  }
  33% {
    border-color: var(--theme-flow-color-2);
    box-shadow:
      0 0 10px var(--theme-flow-color-2),
      0 0 20px var(--theme-flow-color-2),
      inset 0 0 10px rgba(255, 102, 0, 0.3); /* Based on orange */
  }
  66% {
    border-color: var(--theme-flow-color-3);
    box-shadow:
      0 0 10px var(--theme-flow-color-3),
      0 0 20px var(--theme-flow-color-3),
      inset 0 0 10px rgba(0, 255, 255, 0.3); /* Based on cyan */
  }
}

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

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a;
  color: #f0f0f0;
  padding-top: 110px; /* Adjust for fixed header height (header-top + main-nav) */
}

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

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Stacks header-top and main-nav vertically */
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  padding: 15px 0;
  border-bottom: 2px solid var(--header-top-glow-color);
  animation: theme-colors 4s ease-in-out infinite alternate;
  color: var(--header-top-glow-color); /* For currentColor usage in glow */
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  text-shadow: 0 0 5px var(--header-top-glow-color), 0 0 10px var(--header-top-glow-color);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  white-space: nowrap;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--button-glow-color), var(--neon-color-2));
  padding: 10px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid var(--button-glow-color);
  animation: theme-colors 4s ease-in-out infinite;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--button-glow-color);
  transition: all 0.3s ease;
  font-weight: bold;
  white-space: nowrap;
}

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

.main-nav {
  background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a);
  padding: 10px 0;
  border-top: 2px solid var(--main-nav-glow-color);
  border-bottom: 2px solid var(--main-nav-glow-color);
  animation: theme-colors 4s linear infinite;
  color: var(--main-nav-glow-color); /* For currentColor usage in glow */
  display: flex; /* Desktop default */
  flex-direction: row; /* Desktop default */
}

.main-nav .nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller desktop screens */
  gap: 25px;
}

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

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

.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
  position: relative; /* For glow effect */
  color: var(--header-top-glow-color); /* For currentColor */
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-8px) 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;
  transition: opacity 0.3s ease;
  opacity: 0;
}

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

.mobile-buttons-area {
  display: none; /* Hidden by default on desktop */
  background: linear-gradient(90deg, #1a1a2e, #16213e);
  padding: 10px 20px;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 60px; /* Below header-top on mobile */
  width: 100%;
  z-index: 990;
}

/* Footer Styles */
.site-footer {
  background-color: var(--site-secondary-color);
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 14px;
  border-top: 1px solid #333;
}

.site-footer h4 {
  color: #f0f0f0;
  margin-bottom: 15px;
  font-size: 16px;
}

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

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

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

.footer-nav {
  list-style: none;
}

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

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

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

.footer-middle-sections {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-providers-section,
.social-media-section {
  padding: 20px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.footer-legals {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.footer-legals li a {
  color: #999999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legals li a:hover {
  color: var(--site-primary-color);
}

.copyright {
  color: #777777;
  font-size: 13px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 120px; /* Adjusted for mobile header-top + mobile-buttons-area */
  }

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

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

  .hamburger-menu {
    display: block;
    order: 0;
    margin-right: auto; /* Push logo to center */
  }

  .logo {
    flex-grow: 1;
    text-align: center;
    font-size: 22px;
    order: 1;
    margin-left: -40px; /* Offset hamburger menu width for better centering */
  }

  .main-nav {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #1a1a2e; /* Solid background for mobile menu */
    padding-top: 80px;
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease-in-out;
    z-index: 999;
    border-right: 2px solid var(--main-nav-glow-color);
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
  }

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

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

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

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

  .mobile-buttons-area {
    display: flex; /* Show on mobile */
    position: fixed;
    top: 60px; /* Below header-top */
    width: 100%;
    left: 0;
    z-index: 990;
    justify-content: center;
    padding: 10px 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  }

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

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

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

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

@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  .btn {
    padding: 8px 15px;
    font-size: 14px;
  }

  .footer-col .footer-logo {
    font-size: 20px;
  }
}
