/* Global Reset & Base Styles */
:root {
  --site-primary-base: #007bff;
  --site-secondary-base: #28a745;
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
  --dark-bg-4: #0f3460;

  /* Derived vibrant neon colors for animations */
  --neon-primary-derived: #00FFFF; /* Cyan */
  --neon-secondary-derived: #00FF00; /* Lime Green */
  --neon-accent-derived: #FF00FF; /* Magenta */
  --neon-header-border: #FFFF00; /* Yellow */
  --neon-nav-border: #FF00FF; /* Magenta */
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #c0c0c0;
  background-color: #0a0a0a;
  padding-top: 140px; /* Adjust based on header + mobile button height */
  transition: padding-top 0.3s ease;
}

.no-scroll {
  overflow: hidden;
}

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

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

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
  }
  50% {
    box-shadow: 0 0 15px currentColor, 0 0 30px currentColor, 0 0 45px currentColor;
  }
}

@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); }
  100% { filter: hue-rotate(360deg); }
}

@keyframes alternate-colors {
  0% { border-color: var(--neon-primary-derived); box-shadow: 0 0 10px var(--neon-primary-derived), 0 0 20px var(--neon-primary-derived); }
  100% { border-color: var(--neon-secondary-derived); box-shadow: 0 0 10px var(--neon-secondary-derived), 0 0 20px var(--neon-secondary-derived); }
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@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-derived);
    box-shadow: 
      0 0 10px var(--neon-primary-derived),
      0 0 20px var(--neon-primary-derived),
      inset 0 0 10px rgba(0, 255, 255, 0.3);
  }
  33% {
    border-color: var(--neon-secondary-derived);
    box-shadow: 
      0 0 10px var(--neon-secondary-derived),
      0 0 20px var(--neon-secondary-derived),
      inset 0 0 10px rgba(0, 255, 0, 0.3);
  }
  66% {
    border-color: var(--neon-accent-derived);
    box-shadow: 
      0 0 10px var(--neon-accent-derived),
      0 0 20px var(--neon-accent-derived),
      inset 0 0 10px rgba(255, 0, 255, 0.3);
  }
}

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

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--dark-bg-1);
  display: flex;
  flex-direction: column;
}

.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  border-bottom: 2px solid var(--neon-header-border);
  box-shadow:
    0 0 10px var(--neon-header-border),
    0 0 20px var(--neon-header-border),
    0 0 30px var(--neon-header-border),
    inset 0 0 20px rgba(255, 255, 0, 0.1);
  padding: 15px 0;
  width: 100%;
}

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

.logo {
  font-family: 'Electrolize', sans-serif; /* Example Cyberpunk/Retro font */
  font-size: 2.2em;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn {
  position: relative;
  background: linear-gradient(135deg, var(--neon-primary-derived), var(--neon-secondary-derived));
  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-derived);
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 0.95em;
  white-space: nowrap;
}

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

.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid var(--neon-nav-border);
  border-bottom: 2px solid var(--neon-nav-border);
  box-shadow:
    0 0 8px var(--neon-nav-border),
    0 0 16px var(--neon-nav-border),
    0 0 24px var(--neon-nav-border),
    inset 0 0 15px rgba(255, 0, 255, 0.1);
  width: 100%;
  display: flex; /* Desktop default: visible */
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.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;
  gap: 25px;
}

.nav-link {
  color: #c0c0c0;
  font-weight: 600;
  padding: 8px 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  text-shadow: 0 0 5px var(--neon-primary-derived), 0 0 10px var(--neon-primary-derived);
}

.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-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--neon-primary-derived);
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 0 5px var(--neon-primary-derived);
}

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

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

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

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

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

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

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

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

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

.footer-logo {
  font-family: 'Electrolize', sans-serif;
  font-size: 1.8em;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
  display: block;
  text-transform: uppercase;
}

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

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

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

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

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

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

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

.game-providers-section h4, .social-media-section h4 {
  color: #fff;
  font-size: 1.1em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

  .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none;
    justify-content: space-between;
    position: relative; /* For logo centering */
  }

  .logo {
    font-size: 1.6em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: normal;
    text-align: center;
    width: calc(100% - 100px); /* Adjust width to not overlap hamburger */
  }

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

  .hamburger-menu {
    display: block;
    order: -1; /* Place hamburger on the left */
    margin-right: auto;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: linear-gradient(180deg, var(--dark-bg-3), var(--dark-bg-4));
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    padding-top: 20px; /* Offset from top for better look */
    border-right: 2px solid var(--neon-nav-border);
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    width: 100%;
    max-width: none;
    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-menu-overlay.active {
    display: block;
  }

  /* Mobile specific button area */
  .site-header::after {
    content: '';
    display: block;
    width: 100%;
    height: 60px; /* Placeholder for mobile buttons */
    background: var(--dark-bg-1);
    position: absolute;
    top: 80px; /* Below header-top */
    left: 0;
    z-index: 990;
    box-shadow:
      0 5px 10px rgba(0, 0, 0, 0.5),
      inset 0 0 10px rgba(0, 0, 0, 0.2);
  }

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 80px; /* Position below header-top */
    left: 0;
    z-index: 991;
    flex-wrap: wrap;
    background: transparent; /* Overlay on top of the ::after background */
  }

  .mobile-nav-buttons .btn {
    max-width: calc(50% - 10px); /* Two buttons per row, with gap */
    flex: 1 1 auto;
    min-width: 120px; /* Minimum width for buttons */
    white-space: normal;
    word-wrap: break-word;
    padding: 10px 15px;
    font-size: 0.9em;
  }

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

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

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

  .footer-nav {
    padding-left: 0;
  }

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

  .payment-methods, .game-providers-section, .social-media-section {
    text-align: center;
  }

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