:root {
  --primary-color: #B80F0A; /* Website primary color */
  --secondary-color: #FFD700; /* Website secondary color */

  --neon-primary: var(--primary-color, #ff00ff); /* Default for dynamic neon */
  --neon-secondary: var(--secondary-color, #00ffff); /* Default for dynamic neon */
  --neon-accent: #ffff00; /* General accent for neon */

  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
}

/* Base Styles */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background-color: #000000; /* Ensures dark background */
}

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

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

/* Animations for Neon Effects */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary, #B80F0A);
    box-shadow:
      0 0 10px var(--neon-primary, #B80F0A),
      0 0 20px var(--neon-primary, #B80F0A),
      inset 0 0 10px rgba(184, 15, 10, 0.3);
  }
  33% {
    border-color: var(--neon-secondary, #FFD700);
    box-shadow:
      0 0 10px var(--neon-secondary, #FFD700),
      0 0 20px var(--neon-secondary, #FFD700),
      inset 0 0 10px rgba(255, 215, 0, 0.3);
  }
  66% {
    border-color: var(--neon-accent, #ffff00);
    box-shadow:
      0 0 10px var(--neon-accent, #ffff00),
      0 0 20px var(--neon-accent, #ffff00),
      inset 0 0 10px rgba(255, 255, 0, 0.3);
  }
}

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

@keyframes neon-pulse {
  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 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;
  }
}

/* Header Styles - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2), var(--dark-bg-3));
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

.site-header .header-top {
  padding: 15px 0;
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.site-header .logo {
  font-size: 2.2em;
  font-weight: bold;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  white-space: nowrap;
  text-shadow:
    0 0 5px var(--neon-primary, #B80F0A),
    0 0 10px var(--neon-primary, #B80F0A),
    0 0 15px var(--neon-primary, #B80F0A);
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  transition: all 0.3s ease;
}

.site-header .logo:hover {
  transform: scale(1.05);
  text-shadow:
    0 0 8px var(--neon-secondary, #FFD700),
    0 0 15px var(--neon-secondary, #FFD700),
    0 0 25px var(--neon-secondary, #FFD700);
}

.site-header .main-nav {
  padding: 10px 0;
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid;
  animation: theme-colors 4s linear infinite;
  display: flex; /* Desktop: default flex */
  flex-direction: row; /* Desktop: default row */
  width: 100%;
  box-sizing: border-box;
}

.site-header .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.site-header .nav-link {
  color: #e0e0e0;
  padding: 10px 20px;
  font-size: 1.1em;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

.site-header .nav-link:hover {
  color: var(--neon-secondary, #FFD700);
  text-shadow:
    0 0 5px var(--neon-secondary, #FFD700),
    0 0 10px var(--neon-secondary, #FFD700);
}

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

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

.site-header .btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 15px var(--neon-secondary, #FFD700),
    0 0 30px var(--neon-secondary, #FFD700),
    inset 0 0 15px rgba(255, 215, 0, 0.5);
}

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

/* Main content padding to prevent fixed header overlap */
body {
  padding-top: 120px; /* Adjust based on actual header height */
}

/* Footer Styles */
.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 0.9em;
}

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

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

.site-footer .footer-col h4 {
  color: var(--secondary-color, #FFD700);
  margin-bottom: 15px;
  font-size: 1.2em;
}

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

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

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

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

.site-footer .footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}

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

.site-footer .payment-icons,
.site-footer .game-providers-icons,
.site-footer .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.site-footer .payment-icons img,
.site-footer .game-providers-icons img,
.site-footer .social-media-icons img {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}

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

.site-footer .game-providers-section h4,
.site-footer .social-media-section h4 {
  margin-bottom: 15px;
  color: var(--secondary-color, #FFD700);
}

.site-footer .footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333333;
  color: #888888;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: 160px; /* Adjust for taller mobile header with buttons */
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

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

  .site-header .header-container {
    padding: 0 15px;
    width: 100%;
    max-width: none; /* Crucial for mobile full width */
    justify-content: space-between;
  }

  .site-header .logo {
    order: 2;
    flex: 1;
    text-align: center;
    font-size: 1.5em;
    margin: 0;
  }

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

  .hamburger-menu {
    display: block;
    order: 1;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow:
      0 0 5px var(--neon-accent, #ffff00),
      0 0 10px var(--neon-accent, #ffff00);
    border-radius: 3px;
    animation: theme-colors 4s ease-in-out infinite;
  }

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

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

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

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

  .site-header .main-nav {
    display: none; /* Default hidden on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Ensure menu is above overlay */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
    padding-top: 20px; /* Space from top */
  }

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

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

  .site-header .nav-link {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

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

  .mobile-nav-buttons {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
    padding: 10px 15px;
    font-size: 14px;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999; /* Below menu, above content */
  }

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

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer Mobile */
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .site-footer .payment-methods,
  .site-footer .game-providers-section,
  .site-footer .social-media-section {
    padding: 0 15px;
    text-align: center;
  }

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