:root {
  --site-primary-color: #0A2463;
  --site-secondary-color: #E3B505;
  --neon-yellow: #FFFF00;
  --neon-orange: #FFA500;
  --neon-red: #FF0000;
  --neon-pink: #FF1493;
  --neon-blue: #00FFFF;
  --neon-green: #00FF00;
  --neon-primary-glow: var(--neon-yellow);
  --neon-secondary-glow: var(--neon-red);
  --neon-accent-glow: var(--neon-blue);
}

/* Base styles for the body to prevent header overlap */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0a0a0a;
  color: #ffffff;
  padding-top: 120px; /* Default for desktop header height */
}

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

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

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

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; text-shadow: 0 0 5px currentColor, 0 0 10px currentColor, 0 0 15px currentColor; }
  20%, 24%, 55% { opacity: 0.8; text-shadow: 0 0 2px currentColor, 0 0 5px currentColor, 0 0 8px currentColor; }
}

/* Header styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 100px; /* Ensure content fits */
}

.header-top {
  padding: 15px 0;
  border-bottom: 2px solid var(--neon-primary-glow);
  animation: theme-colors 4s ease-in-out infinite;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  box-shadow: 
    0 0 10px var(--neon-primary-glow),
    0 0 20px var(--neon-primary-glow),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
}

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

.logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  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(--neon-primary-glow), var(--neon-secondary-glow));
  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-glow);
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.main-nav {
  padding: 10px 0;
  border-top: 2px solid var(--neon-secondary-glow);
  border-bottom: 2px solid var(--neon-secondary-glow);
  animation: theme-colors 4s ease-in-out infinite;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  box-shadow: 
    0 0 10px var(--neon-secondary-glow),
    0 0 20px var(--neon-secondary-glow),
    inset 0 0 20px rgba(255, 0, 0, 0.1);
  display: flex;
}

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

.nav-link {
  color: #ffffff;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 1.1em;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
  animation: theme-colors 4s ease-in-out infinite;
  border-radius: 5px;
}

.hamburger-icon {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--neon-primary-glow);
  position: relative;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary-glow), 0 0 10px var(--neon-primary-glow);
}

.hamburger-icon::before, .hamburger-icon::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--neon-primary-glow);
  position: absolute;
  transition: transform 0.3s ease, top 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 5px var(--neon-primary-glow), 0 0 10px var(--neon-primary-glow);
}

.hamburger-icon::before {
  top: -10px;
}

.hamburger-icon::after {
  top: 10px;
}

.hamburger-menu.active .hamburger-icon {
  background-color: transparent;
  box-shadow: none;
}

.hamburger-menu.active .hamburger-icon::before {
  transform: translateY(10px) rotate(45deg);
  top: 0;
}

.hamburger-menu.active .hamburger-icon::after {
  transform: translateY(-10px) rotate(-45deg);
  top: 0;
}

.mobile-buttons-area {
  display: none; /* Hidden on desktop */
  padding: 10px 0;
  background: linear-gradient(135deg, #0f3460, #16213e);
  border-bottom: 2px solid var(--neon-accent-glow);
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 8px var(--neon-accent-glow),
    0 0 15px var(--neon-accent-glow),
    inset 0 0 10px rgba(0, 255, 255, 0.1);
}

.mobile-buttons-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0 15px;
}

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

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

/* Mobile styles */
@media (max-width: 768px) {
  .header-container,
  .nav-container,
  .mobile-buttons-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
  }

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

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

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

  .hamburger-menu {
    display: block;
    order: -1; /* Place it at the beginning */
    margin-left: 15px;
  }

  .mobile-buttons-area {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative; /* Relative to header for positioning below */
    z-index: 990; /* Below main-nav when active, above main content */
  }

  .main-nav {
    display: none; /* Hidden by default for mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 80px; /* Space for logo/hamburger */
    border-right: 2px solid var(--neon-primary-glow);
    box-shadow: 
      0 0 15px var(--neon-primary-glow),
      0 0 30px var(--neon-primary-glow),
      inset 0 0 20px rgba(255, 255, 0, 0.1);
  }

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

  .nav-link {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2em;
  }

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

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

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

.footer-top-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

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

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

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

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

.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(100%) brightness(150%); /* For subtle glow effect */
  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-middle-sections {
  padding: 30px 0;
  border-bottom: 1px solid #333;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 992px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-col:first-child {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .footer-nav {
    justify-content: center;
  }
}
