:root {
  --primary-site-color: #0A2239;
  --secondary-site-color: #FFD700;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;

  /* Dynamic Neon Colors - Derived from site colors for harmony */
  --neon-primary: var(--secondary-site-color); /* Yellow from #FFD700 */
  --neon-secondary: #00FFFF; /* Cyan */
  --neon-accent: #FF00FF; /* Magenta */
}

/* Base styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #c0c0c0;
  background-color: var(--dark-bg-1);
}

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

/* Animations for dynamic neon effects */
@keyframes theme-colors {
  0%, 100% {
    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, 215, 0, 0.1);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow:
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary),
      inset 0 0 10px rgba(0, 255, 255, 0.1);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow:
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent),
      inset 0 0 10px rgba(255, 0, 255, 0.1);
  }
}

@keyframes theme-colors-alt {
  0%, 100% {
    border-color: #FF6600; /* Neon Orange */
    box-shadow:
      0 0 8px #FF6600,
      0 0 16px #FF6600,
      inset 0 0 8px rgba(255, 102, 0, 0.1);
  }
  33% {
    border-color: #FF0000; /* Neon Red */
    box-shadow:
      0 0 8px #FF0000,
      0 0 16px #FF0000,
      inset 0 0 8px rgba(255, 0, 0, 0.1);
  }
  66% {
    border-color: #FF1493; /* Neon Pink */
    box-shadow:
      0 0 8px #FF1493,
      0 0 16px #FF1493,
      inset 0 0 8px rgba(255, 20, 147, 0.1);
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.8; }
}

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

/* Header - Fixed & Neon Style (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  color: #ffffff;
}

.header-top {
  padding: 15px 0;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;
}

.logo {
  font-size: 2.2em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  filter: brightness(1.2);
  transition: all 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate, neon-flicker 2s infinite alternate;
  text-transform: uppercase;
}

.logo:hover {
  filter: brightness(1.5);
}

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

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

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Main Navigation - Regular Style with Neon Container */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  padding: 10px 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors-alt 5s linear infinite;
  display: flex;
  flex-direction: row;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1em;
  padding: 8px 15px;
  margin: 0 8px;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon-primary);
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  transform: translateY(-2px);
}

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

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--neon-primary);
  border-radius: 2px;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px var(--neon-primary);
}

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

.mobile-buttons-area {
  display: none; /* Hidden on desktop */
}

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

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

/* Footer - Regular Style */
.site-footer {
  background-color: var(--primary-site-color);
  color: #c0c0c0;
  padding-top: 40px;
  font-size: 0.9em;
}

.footer-main {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-col h4 {
  color: var(--secondary-site-color);
  font-size: 1.1em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

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

.footer-nav li {
  margin-bottom: 10px;
}

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

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

.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(1.2);
  transition: filter 0.3s ease;
}

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

.footer-middle {
  padding: 30px 20px;
  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 {
  color: var(--secondary-site-color);
  font-size: 1.1em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .header-container, .nav-container, .footer-container {
    padding: 0 15px;
  }
  .nav-link {
    padding: 8px 10px;
    margin: 0 5px;
  }
  .footer-main .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col.footer-about {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  /* Header */
  .site-header {
    display: block; /* Allow header to stack elements */
  }

  .header-top {
    padding: 10px 0;
  }

  .header-container {
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: none; /* Remove max-width on mobile */
  }

  .hamburger-menu {
    display: flex;
  }

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

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

  .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(180deg, var(--dark-bg-3), var(--dark-bg-1));
    padding-top: 120px; /* Space for header-top and mobile-buttons-area */
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 999;
    border-right: 2px solid;
    animation: theme-colors-alt 5s linear infinite;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: none;
    padding: 0 20px;
  }

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

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

  .mobile-buttons-area {
    display: block;
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    padding: 10px 0;
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    width: 100%;
  }

  .mobile-buttons-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Remove max-width on mobile */
  }

  /* Footer */
  .footer-main .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-col.footer-about {
    grid-column: span 1;
  }
  .footer-middle {
    padding: 20px 15px;
  }
  .footer-bottom .footer-container {
    padding: 0 15px;
  }
}

/* Ensure main content is not hidden by fixed header */
body {
  padding-top: 130px; /* Adjust based on header-top + mobile-buttons-area height on mobile */
}

@media (min-width: 769px) {
  body {
    padding-top: 120px; /* Adjust based on header-top + main-nav height on desktop */
  }
}
