/* Basic Reset & Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0;
  background-color: #000;
  line-height: 1.6;
  padding-top: 120px; /* Marquee (50px) + Header-top (approx 70px) */
  overflow-x: hidden; /* Prevent horizontal scroll from marquee/animations */
}

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

ul {
  list-style: none;
}

/* Custom CSS Variables for Neon Colors */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --accent-color: #FFA500; /* Orange */

  --neon-primary: var(--primary-color);
  --neon-secondary: var(--secondary-color);
  --neon-accent: var(--accent-color);
  
  /* Additional dynamic colors for variety */
  --neon-dynamic-1: #FF00FF; /* Magenta */
  --neon-dynamic-2: #00FFFF; /* Cyan */
  --neon-dynamic-3: #00FF00; /* Green */
}

/* Keyframe Animations for Neon Effects */

/* Dynamic border color based on theme */
@keyframes theme-colors {
  0%, 100% {
    border-color: var(--neon-primary, #FFD700);
    box-shadow: 
      0 0 10px var(--neon-primary, #FFD700),
      0 0 20px var(--neon-primary, #FFD700);
  }
  33% {
    border-color: var(--neon-secondary, #8B0000);
    box-shadow: 
      0 0 10px var(--neon-secondary, #8B0000),
      0 0 20px var(--neon-secondary, #8B0000);
  }
  66% {
    border-color: var(--neon-accent, #FFA500);
    box-shadow: 
      0 0 10px var(--neon-accent, #FFA500),
      0 0 20px var(--neon-accent, #FFA500);
  }
}

/* Dynamic text glow based on theme */
@keyframes text-glow-flow {
  0% {
    text-shadow: 
      0 0 5px var(--neon-primary, #FFD700),
      0 0 10px var(--neon-primary, #FFD700),
      0 0 15px var(--neon-primary, #FFD700);
    color: #ffffff;
  }
  50% {
    text-shadow: 
      0 0 5px var(--neon-secondary, #8B0000),
      0 0 10px var(--neon-secondary, #8B0000),
      0 0 15px var(--neon-secondary, #8B0000);
    color: #ffffff;
  }
  100% {
    text-shadow: 
      0 0 5px var(--neon-accent, #FFA500),
      0 0 10px var(--neon-accent, #FFA500),
      0 0 15px var(--neon-accent, #FFA500);
    color: #ffffff;
  }
}

/* Marquee Specific Animations */
@keyframes marquee-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Marquee Section Styles */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(255, 215, 0, 0.1); /* Using gold from primary-color for inset */
  z-index: 1001;
  height: 50px; /* Explicit height for calculation */
}

.marquee-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
  height: 100%; /* Ensure content fills marquee height */
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 24px;
  display: inline-block;
  animation: marquee-pulse 2s ease-in-out infinite, text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  gap: 30px;
  height: 100%;
}

.marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
  line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: all 0.3s ease;
}

.marquee-text:hover {
  text-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    0 0 40px var(--neon-primary);
  transform: scale(1.05);
  color: #ffffff;
}

.marquee-separator {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 15px;
  text-shadow: 
    0 0 3px var(--neon-primary),
    0 0 6px var(--neon-primary);
}

/* Header Section Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 50px; /* Below marquee */
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(255, 215, 0, 0.1); /* Using gold from primary-color for inset */
  padding: 10px 0;
  min-height: 60px; /* Minimum height for header-top */
}

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

.hamburger-menu {
  display: none; /* Hidden on desktop */
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002; /* Above logo and buttons on mobile */
  margin-right: 20px; /* Space for logo on mobile */
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
  animation: text-glow-flow 3s ease-in-out infinite alternate; /* Neon glow for hamburger */
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

.hamburger-menu.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  text-transform: uppercase;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.logo:hover {
  text-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary);
  transform: scale(1.05);
}

.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 15px;
}

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

.main-nav {
  background: linear-gradient(135deg, #16213e, #0f3460, #0a0a0a); /* Different dark gradient for contrast */
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite reverse; /* Different animation or reversed for contrast */
  box-shadow: 
    0 0 10px var(--neon-secondary), /* Use secondary color for contrast */
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(139, 0, 0, 0.1); /* Using dark red from secondary-color for inset */
  padding: 10px 0;
  display: flex; /* Desktop default: visible, horizontal */
  flex-direction: row;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller desktop screens */
  gap: 25px;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: #f0f0f0;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--neon-primary);
  box-shadow: 0 0 5px var(--neon-primary), 0 0 10px var(--neon-primary);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-primary);
  transform: translateY(-2px);
}

.nav-link:hover::after {
  width: 100%;
}

/* Button Styles */
.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;
  white-space: nowrap; /* Prevent text wrapping on desktop */
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  box-shadow: 
    0 0 15px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 15px rgba(255, 215, 0, 0.4); /* Using gold from primary-color for inset */
}

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

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Footer Styles (Regular) */
.site-footer {
  background-color: #1a1a1a;
  color: #cccccc;
  padding: 40px 0 20px;
  font-size: 14px;
  margin-top: 50px; /* Ensure footer is below main content */
}

.site-footer h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 15px;
  font-weight: bold;
}

.footer-top {
  border-bottom: 1px solid #333333;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

.footer-middle {
  border-bottom: 1px solid #333333;
  padding-bottom: 30px;
  margin-bottom: 30px;
}

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

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

.footer-col {
  flex: 1;
  min-width: 200px;
}

.footer-about {
  grid-column: span 1; /* Ensure it takes one column in grid */
}

.footer-logo {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700; /* Gold color for footer logo */
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word; /* Ensure full text display */
  overflow-wrap: break-word;
}

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

.footer-links a {
  color: #cccccc;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFD700;
}

.payment-methods .payment-icons,
.game-providers-section .game-providers-icons,
.social-media-section .social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px; /* Consistent gap */
  width: 100%;
}

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

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

.footer-legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.footer-legal-links a {
  color: #cccccc;
  transition: color 0.3s ease;
}

.footer-legal-links a:hover {
  color: #FFD700;
}

.copyright {
  margin-top: 20px;
}

/* Responsive Styles (Mobile First Overrides) */
@media (max-width: 768px) {
  body {
    padding-top: 140px; /* Marquee (40px) + Header-top (60px approx) + Mobile Buttons (40px approx) */
  }

  /* Marquee Mobile Adaption */
  .marquee-section {
    height: 40px; /* Smaller height on mobile */
  }
  .marquee-container {
    padding: 0px 5px;
    gap: 8px;
  }
  .marquee-icon {
    width: 30px;
    height: 30px;
  }
  .marquee-icon-emoji {
    font-size: 18px;
  }
  .marquee-text {
    font-size: 13px;
  }
  .marquee-separator {
    font-size: 13px;
    margin: 0 8px;
  }
  .marquee-content {
    gap: 20px;
    animation: marquee-scroll 25s linear infinite;
  }

  /* Header Mobile Adaption */
  .site-header {
    top: 40px; /* Below smaller marquee */
  }
  
  .header-top {
    padding: 10px 0;
    min-height: 60px;
  }

  .header-container {
    padding: 0 15px;
    flex-wrap: nowrap; /* Prevent wrapping */
    justify-content: space-between;
  }
  
  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 1; /* Left side */
    margin-right: 0; /* Adjust spacing */
  }

  .logo {
    order: 2; /* Center */
    flex-grow: 1; /* Take available space */
    text-align: center; /* Center logo */
    font-size: 22px;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    padding: 10px 15px; /* Add padding to container */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, #1a1a2e, #0f3460); /* Dark background */
    border-bottom: 1px solid var(--neon-secondary); /* Subtle border */
    box-shadow: 0 0 5px var(--neon-secondary);
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Account for gap */
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word;
    text-align: center;
  }

  .main-nav {
    display: none; /* Hidden by default on mobile */
    position: fixed;
    top: calc(40px + 60px); /* Marquee height (40px) + header-top height (approx 60px) */
    left: 0;
    width: 70%; /* Slide-in menu width */
    height: calc(100% - 100px); /* Adjust height */
    flex-direction: column;
    background: linear-gradient(180deg, #0a0a0a, #1a1a2e, #16213e);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease;
    overflow-y: auto; /* Scroll if content is long */
    z-index: 1000; /* Above overlay */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite;
  }

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

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 15px;
    gap: 15px;
    max-width: none; /* Remove max-width for mobile container */
    width: 100%; /* Ensure full width */
  }

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

  /* Footer Mobile Adaption */
  .site-footer {
    padding: 30px 0 15px;
  }

  .footer-top .footer-container {
    grid-template-columns: 1fr; /* Single column layout */
  }
  
  .footer-col {
    min-width: unset;
    width: 100%;
    text-align: center; /* Center footer content */
  }

  .footer-logo {
    font-size: 20px;
  }

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

  .footer-bottom {
    padding: 0 15px;
  }

  .footer-legal-links {
    flex-direction: column;
    gap: 8px;
  }
}

/* Body no-scroll class for overlay */
body.no-scroll {
  overflow: hidden;
}