:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;

  --neon-primary: var(--primary-color);
  --neon-secondary: #FF6600; /* Orange */
  --neon-accent: #FF00FF; /* Magenta */

  --header-top-height-desktop: 60px;
  --main-nav-height-desktop: 50px;
  --mobile-header-top-height: 60px;
  --mobile-button-wrapper-height: 70px;
  --total-header-height-desktop: calc(var(--header-top-height-desktop) + var(--main-nav-height-desktop));
  --total-header-height-mobile: calc(var(--mobile-header-top-height) + var(--mobile-button-wrapper-height));
}

/* Base Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #0a0a0a;
  color: #f0f0f0;
  padding-top: var(--total-header-height-desktop); /* Desktop default */
}

/* Animations for dynamic colors and glows */
@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(255, 215, 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, 102, 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(255, 0, 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;
  }
}

/* Header Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
}

.header-top {
  min-height: var(--header-top-height-desktop);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid var(--neon-primary);
  animation: theme-colors 4s ease-in-out infinite;
}

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

.logo {
  font-size: 2em;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  text-transform: uppercase; /* Ensures uppercase for the logo */
}

.hamburger-menu {
  display: none; /* Hidden on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
  animation: theme-colors 4s ease-in-out infinite;
  border-radius: 3px;
  box-shadow: 0 0 5px var(--neon-primary);
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #ffffff;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px #ffffff;
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

.desktop-nav-buttons {
  display: flex;
  gap: 15px;
  margin-left: auto;
}

.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 var(--neon-primary);
  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 button text from wrapping */
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.main-nav {
  min-height: var(--main-nav-height-desktop);
  display: flex; /* Desktop default: flex */
  flex-direction: row; /* Desktop default: row */
  position: static; /* Desktop default: static */
  align-items: center;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid var(--neon-secondary);
  border-bottom: 2px solid var(--neon-secondary);
  animation: theme-colors 4s ease-in-out infinite;
}

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

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
}

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

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

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

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

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

/* Footer Styles */
.site-footer {
  background-color: var(--secondary-color);
  color: #cccccc;
  padding: 40px 20px 20px;
  font-size: 0.9em;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.footer-logo {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--neon-primary);
  text-decoration: none;
  display: block;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

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

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

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

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

.footer-middle-sections {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-providers-section h4, .social-media-section h4 {
  color: #ffffff;
  font-size: 1.1em;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  color: #999999;
}

/* Mobile Styles */
@media (max-width: 768px) {
  body {
    padding-top: var(--total-header-height-mobile); /* Mobile override */
  }

  .header-container {
    padding: 10px 15px;
    max-width: none;
    width: 100%;
    justify-content: space-between; /* Hamburger left, Logo center, empty space right */
  }

  .hamburger-menu {
    display: block; /* Visible on mobile */
    order: 1;
  }

  .logo {
    order: 2;
    flex-grow: 1; /* Allows logo to take available space and center */
    text-align: center;
    font-size: 1.5em;
  }

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

  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column; /* Vertical layout for mobile menu */
    position: fixed;
    top: var(--total-header-height-mobile); /* Position below fixed header + buttons */
    left: 0;
    width: 80%;
    height: calc(100% - var(--total-header-height-mobile)); /* Adjust height */
    background: linear-gradient(180deg, #1a1a2e, #0f3460);
    border-right: 2px solid var(--neon-accent);
    animation: theme-colors 4s ease-in-out infinite;
    transform: translateX(-100%); /* Start off-screen */
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    z-index: 999;
  }

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

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

  .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 {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  }

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

  .mobile-nav-buttons-wrapper {
    display: flex; /* Visible on mobile */
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    border-bottom: 2px solid var(--neon-primary);
    animation: theme-colors 4s ease-in-out infinite;
    box-sizing: border-box;
  }

  .mobile-nav-buttons-wrapper .btn {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
  }

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

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

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

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

  .footer-description {
    text-align: left;
  }
}
