/* Color Variables based on website scheme #007bff and #ffc107 */
:root {
  --primary-color: #007bff; /* Base primary */
  --secondary-color: #ffc107; /* Base secondary */
  --neon-primary: #00ffff; /* Cyan - derived from primary, high saturation */
  --neon-secondary: #ff00ff; /* Magenta - derived from secondary, high saturation */
  --neon-accent: #ffff00; /* Yellow - derived from secondary, high saturation */

  /* Dark backgrounds */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;

  /* Text colors */
  --text-color-light: #ffffff;
  --text-color-dark: #cccccc;
  --text-color-footer-link: #999999;
}

/* Base styles for the Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex; /* Make site-header a flex container */
  flex-direction: column; /* Stack children vertically */
  min-height: 80px; /* Minimum height, content adapts */
  /* Neon glow for the entire header */
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 15px rgba(0, 255, 255, 0.1);
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border/shadow color */
}

/* Header Top Area - Logo and Buttons */
.header-top {
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
  padding: 15px 0;
  width: 100%;
  /* Separate glow for header-top to distinguish */
  border-bottom: 2px solid var(--neon-accent);
  box-shadow: 
    0 0 5px var(--neon-accent),
    0 0 10px var(--neon-accent);
}

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

.logo {
  font-family: 'Cyberpunk', 'Orbitron', sans-serif; /* Placeholder font */
  font-size: 2.5em;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-color-light); /* Base color for dynamic text-shadow */
  white-space: nowrap;
  /* Dynamic Neon Text Glow */
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

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

/* Main Navigation Area */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  padding: 10px 0;
  width: 100%;
  display: flex; /* Desktop: flex */
  flex-direction: row; /* Desktop: row */
  justify-content: center;
  /* Separate glow for main-nav */
  border-top: 2px solid var(--neon-secondary);
  box-shadow: 
    0 0 5px var(--neon-secondary),
    0 0 10px var(--neon-secondary);
}

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

.nav-link {
  color: var(--text-color-dark);
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--neon-primary);
}

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

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

/* Buttons */
.btn {
  position: relative;
  padding: 12px 25px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  border: 2px solid; /* For dynamic border color */
  animation: theme-colors 4s ease-in-out infinite; /* Dynamic border/shadow color */
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
}

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

/* Hamburger Menu */
.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  z-index: 1001;
  /* Neon glow for hamburger */
  box-shadow: 
    0 0 5px var(--neon-accent),
    0 0 10px var(--neon-accent);
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

.hamburger-menu .bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--neon-accent);
  transition: all 0.3s ease-in-out;
}

.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 Buttons Area */
.mobile-buttons-area {
  display: none; /* Hidden on desktop */
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2)); /* Consistent dark background */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 0 5px var(--neon-accent),
    0 0 10px var(--neon-accent);
}

.mobile-buttons-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  padding: 0 15px; /* Mobile padding */
}

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

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

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

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

.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 {
  color: var(--text-color-footer-link);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--neon-primary);
}

.footer-logo {
  font-family: 'Cyberpunk', 'Orbitron', sans-serif; /* Consistent font for footer logo */
  font-size: 2em;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 15px;
  display: block;
}

.footer-description {
  color: var(--text-color-footer-link);
  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; /* Increased gap for better spacing */
  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 {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 0 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 30px;
}

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

.game-providers-section:last-child, .social-media-section:last-child {
  margin-bottom: 0;
}

.footer-bottom-copyright {
  background-color: #0a0a0a;
  padding: 15px 0;
}

.footer-bottom-copyright .footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 10px;
}

.copyright-text {
  margin: 0;
  color: #777777;
  font-size: 0.85em;
}

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

.footer-legal-nav a {
  color: #777777;
  text-decoration: none;
  font-size: 0.85em;
  transition: color 0.3s ease;
}

.footer-legal-nav a:hover {
  color: var(--neon-primary);
}

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

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

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

/* Responsive Styles */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column; /* Stack header elements vertically */
    padding-bottom: 0; /* Remove padding from main nav on mobile */
  }

  /* Header Top Mobile */
  .header-top {
    padding: 10px 0;
  }
  .header-container {
    padding: 0 15px; /* Smaller padding for mobile */
    justify-content: space-between;
  }
  .hamburger-menu {
    display: block; /* Show hamburger on mobile */
    order: 0; /* Leftmost */
  }
  .logo {
    order: 1; /* Center */
    flex-grow: 1; /* Allow logo to take available space */
    text-align: center; /* Center logo text */
    font-size: 2em;
  }
  .desktop-nav-buttons {
    display: none; /* Hide desktop buttons */
  }

  /* Mobile Buttons Area */
  .mobile-buttons-area {
    display: block; /* Show on mobile */
    padding: 10px 0;
  }
  .mobile-buttons-container {
    flex-wrap: wrap; /* Allow buttons to wrap */
  }
  .mobile-buttons-container .btn {
    flex: 1 1 auto; /* Make buttons grow and wrap */
    min-width: 120px; /* Minimum width for buttons */
    padding: 10px 15px;
    font-size: 0.9em;
  }

  /* Main Navigation Mobile */
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Stack links vertically */
    position: fixed; /* Fixed for slide-in menu */
    top: 0; /* Start from top */
    left: 0;
    width: 250px; /* Width of the mobile menu */
    height: 100%;
    transform: translateX(-100%); /* Slide out to the left */
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-3)); /* Darker background for menu */
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 999; /* Above overlay */
    border: none; /* Remove desktop borders */
    justify-content: flex-start; /* Align menu items to top */
    padding-top: 20px; /* Padding from top for content */
  }

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

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

  .nav-link {
    width: 100%; /* Full width links */
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator for links */
  }
  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    background-color: var(--neon-accent); /* Use accent color for mobile hover */
  }

  /* Footer Mobile */
  .footer-top-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    padding: 0 15px;
  }
  .footer-bottom-copyright .footer-container {
    flex-direction: column;
    text-align: center;
    padding: 0 15px;
  }
  .footer-legal-nav {
    justify-content: center;
  }
  .footer-col {
    margin-bottom: 20px;
  }
  .footer-col:last-child {
    margin-bottom: 0;
  }
  .footer-col h4 {
    text-align: center;
  }
  .footer-col ul {
    text-align: center;
  }
  .footer-logo {
    text-align: center;
  }
  .footer-description {
    text-align: center;
  }
  .footer-middle-sections {
    padding: 0 15px;
  }
  .game-providers-section h4, .social-media-section h4 {
    text-align: center;
  }
  .game-providers-icons, .social-media-icons {
    justify-content: center;
  }
}

/* Ensure main content area is not hidden by fixed header */
body {
  padding-top: 0; /* Will be set by JS dynamically */
}
