@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

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

  /* Neon dynamic colors - based on site theme */
  --neon-primary-glow: #00FFFF; /* Bright Cyan */
  --neon-secondary-glow: #FF00FF; /* Bright Magenta */
  --neon-accent-glow: #FFFF00; /* Bright Yellow */
  --neon-red-glow: #FF3366; /* Bright Pinkish Red */
  --neon-orange-glow: #FFA500; /* Bright Orange */
}

/* Animations for dynamic colors and glow styles */
@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(0, 255, 255, 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, 255, 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(255, 255, 0, 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;
  }
}

/* Base styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #e0e0e0;
  background-color: var(--bg-dark-1);
  line-height: 1.6;
  padding-top: 120px; /* Placeholder for combined header-top and main-nav height on desktop, adjusted by JS */
}

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

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

.header-container, .nav-container, .footer-top-grid, .footer-middle-sections, .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.header-top {
  background: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
  border-bottom: 2px solid; /* Dynamic color via animation */
  animation: theme-colors 4s ease-in-out infinite;
  padding: 10px 0;
  display: flex;
  align-items: center;
}

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

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2em;
  font-weight: bold;
  color: #fff;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  display: inline-block;
  padding: 5px 0;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--site-primary-dark), var(--site-secondary-gold));
  padding: 10px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  border: 2px solid; /* Dynamic color via animation */
  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;
  font-weight: bold;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.main-nav {
  background: linear-gradient(135deg, var(--bg-dark-2), var(--bg-dark-3));
  border-top: 1px solid; /* Dynamic color via animation */
  border-bottom: 2px solid; /* Dynamic color via animation */
  animation: theme-colors 5s linear infinite; /* Different animation for distinction */
  padding: 10px 0;
  display: flex; /* Desktop default: visible, horizontal */
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.main-nav .nav-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.nav-link {
  color: #e0e0e0;
  font-size: 1.1em;
  padding: 5px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

/* Mobile specific elements (hidden on desktop) */
.hamburger-menu, .mobile-nav-buttons, .mobile-menu-overlay {
  display: none;
}

/* Footer Styles */
.site-footer {
  background: linear-gradient(135deg, #1a1a2e, #0a0a0a);
  color: #a0a0a0;
  padding: 40px 0 20px 0;
  font-size: 0.9em;
  border-top: 1px solid #333;
}

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

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

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

.footer-col ul li a {
  color: #a0a0a0;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8em;
  font-weight: bold;
  color: var(--site-secondary-gold);
  display: block;
  margin-bottom: 15px;
}

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

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

.footer-middle-sections {
  margin-bottom: 40px;
}

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

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

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

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

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

  .header-container, .nav-container, .footer-top-grid, .footer-middle-sections, .footer-bottom {
    max-width: none;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Header mobile layout */
  .site-header {
    flex-direction: column;
  }

  .header-top {
    padding: 10px 0;
    justify-content: space-between;
    position: relative;
    border-bottom: none;
  }

  .header-top .header-container {
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: none;
  }

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

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    padding: 5px;
    position: relative;
    z-index: 1001;
    order: 1;
    border: 2px solid; /* Dynamic color via animation */
    animation: theme-colors 4s ease-in-out infinite;
    border-radius: 3px;
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
    transition: all 0.3s ease;
  }

  .hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--neon-accent-glow);
    border-radius: 2px;
    transition: all 0.3s ease;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile, shown by JS */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-dark-3), var(--bg-dark-1));
    padding-top: 80px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease-out;
    border-right: 2px solid; /* Dynamic color via animation */
    animation: theme-colors 5s linear infinite;
    z-index: 999;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex; /* Must set display to show */
    transform: translateX(0); /* Slide into view */
  }

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--bg-dark-1), var(--bg-dark-2));
    border-top: 1px solid; /* Dynamic color via animation */
    animation: theme-colors 4s ease-in-out infinite;
    z-index: 1000;
  }

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

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

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

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

  .footer-col ul {
    text-align: center;
  }
  .footer-col ul li {
      display: inline-block;
      margin: 0 5px 5px 0;
  }
  .footer-col ul li a {
      white-space: nowrap;
  }

  .footer-logo {
    text-align: center;
  }
  
  .footer-description {
    text-align: center;
  }

  .game-providers-section .game-providers-icons, .social-media-section .social-media-icons {
    gap: 5px;
  }

  .body.no-scroll {
    overflow: hidden;
  }
}