:root {
  --primary-color: #8B0000; /* Dark Red */
  --secondary-color: #FFD700; /* Gold */
  --neon-primary: var(--primary-color);
  --neon-secondary: var(--secondary-color);
  --neon-accent: #00FFFF; /* Cyan for contrast */
  --neon-header-glow: #FFFF00; /* Yellow for header top */
  --neon-nav-glow: #FF00FF; /* Magenta for nav */
  --dark-bg-1: #0a0a0a;
  --dark-bg-2: #1a1a2e;
  --dark-bg-3: #16213e;
}

/* Base Neon Glow Effects */
.neon-glow {
  box-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor,
    0 0 15px currentColor,
    0 0 20px currentColor,
    inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Dynamic Color Animations */
@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(139, 0, 0, 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, 215, 0, 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(0, 255, 255, 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 neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.8; }
}

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

/* General Body Styling for Fixed Header */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #111;
  color: #eee;
  line-height: 1.6;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  min-height: 80px; /* Base height, content adaptive */
  display: flex;
  flex-direction: column;
  color: #fff;
}

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

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

.logo {
  font-family: 'Cyberpunk', sans-serif; /* Placeholder font */
  font-size: 28px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  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);
  transition: all 0.3s ease;
  display: block;
}

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

.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;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 
    0 0 15px currentColor,
    0 0 30px currentColor,
    inset 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Main Navigation (Desktop) */
.main-nav {
  background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
  border-top: 2px solid var(--neon-nav-glow);
  border-bottom: 2px solid var(--neon-nav-glow);
  box-shadow: 
    0 0 10px var(--neon-nav-glow),
    0 0 20px var(--neon-nav-glow),
    inset 0 0 10px rgba(255, 0, 255, 0.1);
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
  position: static;
}

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

.nav-link {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--neon-nav-glow);
  text-shadow: 
    0 0 8px var(--neon-nav-glow),
    0 0 15px var(--neon-nav-glow);
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--dark-bg-1);
  color: #ccc;
  padding: 40px 0 20px;
  font-size: 14px;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
}

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

.footer-top,
.footer-middle,
.footer-bottom {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.footer-bottom {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

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

.footer-top .footer-container {
  grid-template-columns: 2fr repeat(3, 1fr); /* First column wider */
}

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

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

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

.footer-logo {
  font-family: 'Cyberpunk', sans-serif; /* Placeholder font */
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
}

.footer-description {
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  /* Ensure full display, no ellipsis or line-clamp */
  display: block;
  max-height: none;
  overflow: visible;
}

.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;
  filter: grayscale(100%) brightness(150%); /* Subtle effect */
  transition: filter 0.3s ease;
}

.payment-icons img:hover,
.game-providers-icons img:hover,
.social-media-icons img:hover {
  filter: grayscale(0%) brightness(100%);
}

.footer-middle .footer-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.copyright {
  text-align: center;
  margin-top: 20px;
  color: #888;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .header-container,
  .nav-container,
  .footer-container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 140px; /* Adjust based on header-top + mobile-nav-buttons height */
  }

  .site-header {
    flex-direction: column;
  }

  .header-top {
    padding: 10px 0;
    border-bottom: none;
    box-shadow: none;
  }

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

  .logo {
    font-size: 24px;
    flex: 1;
    text-align: center;
    margin: 0;
  }

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

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1001;
    order: -1; /* Place it at the start of flex container */
    color: var(--neon-header-glow);
    box-shadow: 
      0 0 5px currentColor,
      0 0 10px currentColor;
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  .hamburger-menu .bar {
    width: 100%;
    height: 3px;
    background-color: var(--neon-header-glow);
    border-radius: 10px;
    transition: all 0.3s ease;
  }

  .hamburger-menu.active {
    box-shadow: 
      0 0 8px var(--neon-header-glow),
      0 0 15px var(--neon-header-glow);
  }

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

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

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(180deg, var(--dark-bg-2), var(--dark-bg-3));
    border-right: 2px solid var(--neon-nav-glow);
    box-shadow: 
      0 0 15px var(--neon-nav-glow),
      0 0 30px var(--neon-nav-glow);
    transform: translateX(-100%); /* Off-screen by default */
    transition: transform 0.3s ease-out;
    z-index: 1000; /* Ensure it's above overlay */
    overflow-y: auto;
    padding-top: 20px;
  }

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

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

  .main-nav .nav-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
  }

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

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

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

  .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid var(--neon-header-glow);
    box-shadow: 
      0 0 5px var(--neon-header-glow),
      0 0 10px var(--neon-header-glow),
      inset 0 0 5px rgba(255, 255, 0, 0.1);
  }

  .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    max-width: calc(50% - 5px); /* Allow two buttons per row, adjust gap */
    min-width: 120px;
    padding: 10px 15px;
    font-size: 14px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .footer-top .footer-container {
    grid-template-columns: 1fr;
  }

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

  .footer-col:first-child {
    grid-column: span 2; /* Logo and description span full width */
  }

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

  .copyright {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-top .footer-container {
    grid-template-columns: 1fr;
  }
  .footer-col:first-child {
    grid-column: span 1;
  }
  .mobile-nav-buttons .btn {
    max-width: 100%; /* Single button per row */
  }
}
