/* Base Styles & Global Variables */
:root {
  --site-primary-color: #0A2463;
  --site-secondary-color: #FFD700;
  --neon-glow-color-1: #FFD700; /* Gold/Yellow from secondary */
  --neon-glow-color-2: #00FFFF; /* Cyan for contrast */
  --neon-glow-color-3: #FF69B4; /* Hot Pink for accent */
  --neon-glow-color-4: #00FF00; /* Lime Green for accent */
  --neon-glow-color-5: #FF4500; /* Orange Red for accent */
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #c0c0c0;
  background-color: #0a0a0a;
}

/* Animations for dynamic colors and effects */
@keyframes theme-colors-border {
  0%, 100% {
    border-color: var(--neon-glow-color-1);
    box-shadow:
      0 0 8px var(--neon-glow-color-1),
      0 0 16px var(--neon-glow-color-1),
      inset 0 0 8px rgba(255, 215, 0, 0.3);
  }
  33% {
    border-color: var(--neon-glow-color-2);
    box-shadow:
      0 0 8px var(--neon-glow-color-2),
      0 0 16px var(--neon-glow-color-2),
      inset 0 0 8px rgba(0, 255, 255, 0.3);
  }
  66% {
    border-color: var(--neon-glow-color-3);
    box-shadow:
      0 0 8px var(--neon-glow-color-3),
      0 0 16px var(--neon-glow-color-3),
      inset 0 0 8px rgba(255, 105, 180, 0.3);
  }
}

@keyframes theme-colors-border-alt {
  0%, 100% {
    border-color: var(--neon-glow-color-3);
    box-shadow:
      0 0 8px var(--neon-glow-color-3),
      0 0 16px var(--neon-glow-color-3),
      inset 0 0 8px rgba(255, 105, 180, 0.3);
  }
  33% {
    border-color: var(--neon-glow-color-4);
    box-shadow:
      0 0 8px var(--neon-glow-color-4),
      0 0 16px var(--neon-glow-color-4),
      inset 0 0 8px rgba(0, 255, 0, 0.3);
  }
  66% {
    border-color: var(--neon-glow-color-5);
    box-shadow:
      0 0 8px var(--neon-glow-color-5),
      0 0 16px var(--neon-glow-color-5),
      inset 0 0 8px rgba(255, 69, 0, 0.3);
  }
}

@keyframes text-glow-flow {
  0% {
    text-shadow:
      0 0 4px var(--neon-glow-color-1),
      0 0 8px var(--neon-glow-color-1),
      0 0 12px var(--neon-glow-color-1);
    color: #ffffff;
  }
  33% {
    text-shadow:
      0 0 4px var(--neon-glow-color-2),
      0 0 8px var(--neon-glow-color-2),
      0 0 12px var(--neon-glow-color-2);
    color: #ffffff;
  }
  66% {
    text-shadow:
      0 0 4px var(--neon-glow-color-3),
      0 0 8px var(--neon-glow-color-3),
      0 0 12px var(--neon-glow-color-3);
    color: #ffffff;
  }
  100% {
    text-shadow:
      0 0 4px var(--neon-glow-color-1),
      0 0 8px var(--neon-glow-color-1),
      0 0 12px var(--neon-glow-color-1);
    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;
  }
}

@keyframes neon-flicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    opacity: 1;
    box-shadow:
      0 0 10px currentColor,
      0 0 20px currentColor,
      0 0 30px currentColor,
      inset 0 0 15px currentColor;
  }
  20%, 24%, 55% {
    opacity: 0.8;
    box-shadow:
      0 0 5px currentColor,
      0 0 10px currentColor,
      0 0 15px currentColor,
      inset 0 0 10px currentColor;
  }
}

/* Header - Desktop First */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.site-header .header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid transparent;
  animation: theme-colors-border 4s ease-in-out infinite;
  padding: 15px 0;
}

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

.site-header .logo {
  color: #ffffff;
  text-decoration: none;
  font-size: 2.2em;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

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

.site-header .btn {
  background: linear-gradient(135deg, var(--neon-glow-color-1), var(--neon-glow-color-3));
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px 25px;
  font-weight: bold;
  font-size: 1.1em;
  border: 2px solid transparent;
  animation: theme-colors-border 4s ease-in-out infinite, pulse-glow 2s ease-in-out infinite alternate;
  text-shadow:
    0 0 5px #ffffff,
    0 0 10px var(--neon-glow-color-1);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.site-header .btn:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
}

.site-header .main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  animation: theme-colors-border-alt 4s ease-in-out infinite;
  width: 100%;
  display: flex;
  padding: 10px 0;
}

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

.site-header .nav-link {
  color: #c0c0c0;
  text-decoration: none;
  padding: 10px 15px;
  font-size: 1em;
  font-weight: 500;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  white-space: nowrap;
}

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

.site-header .hamburger-menu,
.site-header .mobile-nav-buttons,
.site-header .mobile-menu-overlay {
  display: none;
}

/* Footer Styles */
.site-footer {
  background-color: #1a1a2e;
  color: #c0c0c0;
  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: 2fr repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #3a3a4e;
}

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

.site-footer .footer-description {
  line-height: 1.7;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 1.2em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

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

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

.site-footer .footer-nav a {
  color: #c0c0c0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer .footer-nav a:hover {
  color: var(--site-secondary-color);
}

.site-footer .payment-methods,
.site-footer .game-providers-section,
.site-footer .social-media-section {
  margin-top: 30px;
}

.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: 10px;
  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;
  filter: grayscale(80%) brightness(1.2);
  transition: filter 0.3s ease;
}

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

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

/* Responsive Styles - Mobile First Overrides */
@media (max-width: 768px) {
  body {
    padding-top: calc(80px + 60px); /* Header-top height + mobile-nav-buttons height */
  }

  .site-header .header-top {
    padding: 10px 0;
    border-bottom: none;
    animation: none; /* Disable complex animations for mobile performance */
    box-shadow: none;
  }

  .site-header .header-container {
    width: 100%;
    max-width: none;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .site-header .logo {
    flex-grow: 1;
    text-align: center;
    font-size: 1.8em;
  }

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

  .site-header .hamburger-menu {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
    color: var(--neon-glow-color-1);
    animation: text-glow-flow 3s ease-in-out infinite alternate;
    text-shadow:
      0 0 5px var(--neon-glow-color-1),
      0 0 10px var(--neon-glow-color-1);
  }

  .hamburger-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: currentColor;
    position: relative;
    transition: background-color 0.3s ease;
  }
  .hamburger-icon::before,
  .hamburger-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    position: absolute;
    transition: transform 0.3s ease;
  }
  .hamburger-icon::before { top: -7px; }
  .hamburger-icon::after { top: 7px; }

  .hamburger-menu.active .hamburger-icon { background-color: transparent; }
  .hamburger-menu.active .hamburger-icon::before { transform: translateY(7px) rotate(45deg); }
  .hamburger-menu.active .hamburger-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .site-header .mobile-nav-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
    border-top: 1px solid #3a3a4e;
    border-bottom: 1px solid #3a3a4e;
  }

  .site-header .mobile-nav-buttons .btn {
    flex: 1 1 auto;
    max-width: calc(50% - 5px); /* Allows two buttons per row */
    box-sizing: border-box;
    padding: 10px 15px;
    font-size: 0.9em;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    animation: theme-colors-border 4s ease-in-out infinite, pulse-glow 2s ease-in-out infinite alternate;
  }
  .site-header .mobile-nav-buttons .btn:first-child:nth-last-child(1) {
    max-width: 100%; /* If only one button, make it full width */
  }

  .site-header .main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100vh;
    background-color: #1a1a2e;
    padding-top: 80px; /* Space for fixed header-top */
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
    border-right: 2px solid var(--neon-glow-color-1);
    box-shadow:
      5px 0 15px rgba(0, 0, 0, 0.5),
      5px 0 20px var(--neon-glow-color-1);
  }

  .site-header .main-nav.active {
    display: flex;
    transform: translateX(0);
  }

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

  .site-header .nav-link {
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid #3a3a4e;
    text-align: left;
    color: #c0c0c0;
  }

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

  .site-header .mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
  }

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

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

  .site-footer .footer-nav li {
    display: inline-block;
    margin: 0 10px 8px 0;
  }
  .site-footer .footer-nav ul {
    text-align: center;
  }

  .site-footer .footer-logo {
    text-align: center;
  }
  .site-footer .footer-description {
    text-align: center;
  }

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