/* Dynamic Neon Glow Colors - Multiple Flowing Color Effects (Must be implemented, no fixed colors) */

/* Base dynamic color variables */
:root {
  --primary-color: #1A2B3C;
  --secondary-color: #FFD700;
  --neon-primary: var(--secondary-color); /* Gold/Yellow */
  --neon-secondary: #00FFFF; /* Cyan */
  --neon-accent: #FF00FF; /* Magenta */

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

/* Base neon glow effect */
.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);
}

/* Style 1: Classic Neon Tube Effect (supports dynamic colors) */
.neon-tube {
  border: 2px solid;
  animation: neon-flicker 2s infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* Style 2: Cyberpunk Grid Glow (supports dynamic colors) */
.cyber-grid {
  background: 
    linear-gradient(90deg, transparent 95%, currentColor 100%),
    linear-gradient(180deg, transparent 95%, currentColor 100%);
  background-size: 20px 20px;
  border: 1px solid;
  animation: hue-spin 4s linear infinite;
}

/* Style 3: Pulse Breathing Effect (supports dynamic colors) */
.neon-pulse {
  border: 2px solid;
  animation: pulse-glow 2s ease-in-out infinite alternate, theme-colors 4s ease-in-out infinite;
}

/* Style 4: Rainbow Cycle Gradient (dynamic colors) */
.rainbow-flow {
  border: 2px solid;
  animation: rainbow-border 3s linear infinite;
}

/* Style 5: Hue Rotation (dynamic colors) */
.hue-rotate {
  border: 2px solid;
  filter: hue-rotate(0deg);
  animation: hue-spin 4s linear infinite;
}

/* Style 6: Dual Color Alternating Flash (dynamic colors) */
.alternate-glow {
  border: 2px solid;
  animation: alternate-colors 2s ease-in-out infinite alternate;
}

/* Style 7: Multi-color Flowing Light Strip (dynamic colors) */
.color-stream {
  position: relative;
  border: 2px solid transparent;
  background: linear-gradient(45deg, 
    #ff0000, #ff8000, #ffff00, #00ff00, 
    #00ffff, #0000ff, #8000ff, #ff0080
  );
  background-size: 400% 400%;
  animation: gradient-flow 3s ease infinite;
}

/* Style 8: Random Color Change (dynamic colors) */
.random-colors {
  border: 2px solid;
  animation: random-glow 5s linear infinite;
}

/* Style 9: Website Theme Color Dynamic Change (dynamic colors, recommended) */
.theme-flow {
  border: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
}

/* Style 10: LED Dot Matrix Effect (supports dynamic colors) */
.led-matrix {
  border: 2px solid;
  box-shadow: 
    0 0 5px currentColor,
    0 0 10px currentColor;
  position: relative;
  animation: random-glow 5s linear infinite;
}

.led-matrix::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: 
    radial-gradient(circle at 0% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 0%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 0% 100%, currentColor 2px, transparent 3px),
    radial-gradient(circle at 100% 100%, currentColor 2px, transparent 3px);
  background-size: 20px 20px;
  animation: led-blink 1s steps(2) infinite;
}

/* Dynamic color animation definitions */
@keyframes rainbow-border {
  0% {
    border-color: #ff0000;
    box-shadow: 
      0 0 10px #ff0000,
      0 0 20px #ff0000;
  }
  16.6% {
    border-color: #ff8000;
    box-shadow: 
      0 0 10px #ff8000,
      0 0 20px #ff8000;
  }
  33.3% {
    border-color: #ffff00;
    box-shadow: 
      0 0 10px #ffff00,
      0 0 20px #ffff00;
  }
  50% {
    border-color: #00ff00;
    box-shadow: 
      0 0 10px #00ff00,
      0 0 20px #00ff00;
  }
  66.6% {
    border-color: #0000ff;
    box-shadow: 
      0 0 10px #0000ff,
      0 0 20px #0000ff;
  }
  83.3% {
    border-color: #8000ff;
    box-shadow: 
      0 0 10px #8000ff,
      0 0 20px #8000ff;
  }
  100% {
    border-color: #ff0000;
    box-shadow: 
      0 0 10px #ff0000,
      0 0 20px #ff0000;
  }
}

@keyframes hue-spin {
  0% {
    filter: hue-rotate(0deg);
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary);
  }
  100% {
    filter: hue-rotate(360deg);
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary);
  }
}

@keyframes alternate-colors {
  0% {
    border-color: var(--neon-primary);
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary);
  }
  100% {
    border-color: var(--neon-secondary);
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary);
  }
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
    box-shadow: 
      0 0 10px #ff0000,
      0 0 20px #ff8000;
  }
  50% {
    background-position: 100% 50%;
    box-shadow: 
      0 0 10px #00ffff,
      0 0 20px #0000ff;
  }
  100% {
    background-position: 0% 50%;
    box-shadow: 
      0 0 10px #ff0000,
      0 0 20px #ff8000;
  }
}

@keyframes random-glow {
  0% {
    border-color: var(--neon-primary);
    box-shadow: 0 0 20px var(--neon-primary);
  }
  20% {
    border-color: var(--neon-secondary);
    box-shadow: 0 0 20px var(--neon-secondary);
  }
  40% {
    border-color: var(--neon-accent);
    box-shadow: 0 0 20px var(--neon-accent);
  }
  60% {
    border-color: var(--neon-primary);
    box-shadow: 0 0 20px var(--neon-primary);
  }
  80% {
    border-color: var(--neon-secondary);
    box-shadow: 0 0 20px var(--neon-secondary);
  }
  100% {
    border-color: var(--neon-accent);
    box-shadow: 0 0 20px var(--neon-accent);
  }
}

@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); /* Based on --secondary-color */
  }
  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(0, 255, 255, 0.3); /* Based on --neon-secondary */
  }
  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); /* Based on --neon-accent */
  }
}

/* Original animation definitions (for compatibility) */
@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;
  }
}

@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 led-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.3; }
}

/* Dynamic neon text glow */
.neon-text-dynamic {
  animation: text-glow-flow 3s ease-in-out infinite alternate;
}

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

/* Combine effects: dynamic border + dynamic text */
.dynamic-combo {
  border: 2px solid;
  animation: 
    rainbow-border 4s linear infinite,
    text-glow-flow 3s ease-in-out infinite alternate;
}

/* Responsive color intensity */
@media (max-width: 768px) {
  .rainbow-flow,
  .hue-rotate,
  .alternate-glow,
  .color-stream,
  .random-colors,
  .theme-flow {
    box-shadow: 
      0 0 5px currentColor,
      0 0 10px currentColor !important;
  }
}

/* --- Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg-1); /* Dark background for the whole page */
    color: #f0f0f0;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

/* --- Header Styles --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 80px; /* Minimum height for header */
    display: flex; /* Flex container for header-top and main-nav */
    flex-direction: column; /* Stack header-top and main-nav vertically */
}

/* Header Top Area - Desktop */
.header-top {
    background: linear-gradient(135deg, var(--dark-bg-1), var(--dark-bg-2));
    border-bottom: 2px solid; /* For dynamic border effect */
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
    padding: 10px 0;
    width: 100%;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px; /* Padding for logo and buttons from container edge */
}

.logo {
    font-size: 2.5em;
    font-weight: bold;
    text-transform: uppercase;
    color: #ffffff; /* Base color for neon text */
    white-space: nowrap;
    animation: text-glow-flow 3s ease-in-out infinite alternate; /* Dynamic text glow */
}

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

/* Main Navigation Area - Desktop */
.main-nav {
    background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
    border-top: 2px solid; /* For dynamic border effect */
    border-bottom: 2px solid; /* For dynamic border effect */
    animation: theme-colors 4s ease-in-out infinite reverse; /* Dynamic border color, reverse animation for contrast */
    padding: 10px 0;
    width: 100%;
    display: flex; /* Desktop default: flex to show menu */
    flex-direction: row; /* Desktop default: row for horizontal menu */
    position: static; /* Desktop default: static */
}

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

.nav-link {
    color: #f0f0f0;
    font-size: 1.1em;
    padding: 8px 15px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--neon-primary);
    text-shadow: 0 0 5px var(--neon-primary);
}

/* Hamburger Menu - Hidden on Desktop */
.hamburger-menu {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    z-index: 1001; /* Above other elements */
    padding: 0;
    position: relative;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic glow for hamburger */
    border-radius: 3px;
    box-shadow: 0 0 5px currentColor, 0 0 10px currentColor;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #f0f0f0;
    border-radius: 2px;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* Mobile Navigation Buttons - Hidden on Desktop */
.mobile-nav-buttons {
    display: none;
}

/* Mobile Menu Overlay - Hidden on Desktop */
.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: 998; /* Below menu, above content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Buttons */
.btn {
    position: relative;
    background: linear-gradient(135deg, var(--neon-primary), var(--neon-accent)); /* Use primary and accent for buttons */
    padding: 12px 25px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Dynamic color for button border/glow */
    text-shadow: 
      0 0 5px #ffffff,
      0 0 10px var(--neon-primary);
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 1em;
    white-space: nowrap;
}

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

/* Main Content Padding (to prevent fixed header from obscuring content) */
/* This class should be applied to the body or a main content wrapper */
/* The actual height will be calculated by JS for precise padding. */
.main-content-padding {
    padding-top: 150px; /* Placeholder, will be adjusted by JS */
}

/* --- Footer Styles --- */
.site-footer {
    background-color: var(--dark-bg-2); /* Dark background for footer */
    color: #cccccc;
    padding: 40px 20px 20px;
    font-size: 0.9em;
    line-height: 1.8;
}

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

.footer-col h4 {
    color: #f0f0f0;
    font-size: 1.2em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--neon-primary); /* Use a theme color for underline */
}

.footer-logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--neon-primary); /* Use theme color for footer logo */
    margin-bottom: 15px;
    display: block;
}

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

.footer-nav li a {
    display: block;
    padding: 5px 0;
    color: #cccccc;
    transition: color 0.3s ease;
}

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

.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 for all icon sections */
    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;
    filter: brightness(0.8) contrast(1.2); /* Slightly dim and contrast for dark background */
    transition: filter 0.3s ease;
}

.payment-methods .payment-icons img:hover,
.game-providers-section .game-providers-icons img:hover,
.social-media-section .social-media-icons img:hover {
    filter: brightness(1) contrast(1.5) drop-shadow(0 0 5px var(--neon-primary));
}

.footer-middle-sections {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.game-providers-section h4,
.social-media-section h4 {
    color: #f0f0f0;
    font-size: 1.2em;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 5px;
}

.game-providers-section h4::after,
.social-media-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--neon-secondary); /* Use a theme color for underline */
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .header-container, .nav-container {
        padding: 0 15px;
    }
    .logo {
        font-size: 2em;
    }
    .nav-link {
        font-size: 1em;
        padding: 8px 10px;
    }
    .footer-top-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-col:nth-child(1) { order: 1; }
    .footer-col:nth-child(2) { order: 2; }
    .footer-col:nth-child(3) { order: 3; }
    .footer-col:nth-child(4) { order: 4; }
}

@media (max-width: 768px) {
    .site-header {
        min-height: auto; /* Allow height to adjust */
    }

    /* Header Top Area - Mobile */
    .header-top {
        padding: 15px 0;
    }

    .header-container {
        padding: 0 15px;
        width: 100%;
        max-width: none; /* Crucial for mobile full width */
        justify-content: space-between; /* Hamburger left, logo middle */
        position: relative;
    }

    .hamburger-menu {
        display: flex; /* Show hamburger menu on mobile */
        order: 1; /* Position left */
        margin-right: auto; /* Push logo to center */
    }

    .logo {
        order: 2; /* Center logo */
        flex-grow: 1; /* Allow logo to take available space */
        text-align: center; /* Center text within its flex item */
        font-size: 2.2em; /* Adjust font size for mobile */
    }

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

    /* Mobile Navigation Buttons - Visible on Mobile */
    .mobile-nav-buttons {
        display: flex; /* Show mobile buttons */
        justify-content: center;
        gap: 10px;
        padding: 10px 15px;
        background: linear-gradient(135deg, var(--dark-bg-2), var(--dark-bg-3));
        border-top: 2px solid;
        animation: theme-colors 4s ease-in-out infinite reverse; /* Match main-nav glow */
        width: 100%;
        flex-wrap: wrap; /* Allow buttons to wrap */
    }

    /* Main Navigation Area - Mobile */
    .main-nav {
        display: none; /* Hidden by default on mobile */
        position: fixed;
        top: 0; /* Will be adjusted by JS to be below header */
        left: 0;
        width: 70%; /* Mobile menu width */
        height: 100%;
        background-color: var(--dark-bg-3); /* Solid dark background for mobile menu */
        flex-direction: column; /* Vertical menu items */
        padding-top: 100px; /* Space for logo/buttons at the top of the menu */
        transform: translateX(-100%); /* Hide menu off-screen */
        transition: transform 0.3s ease;
        z-index: 999; /* Below overlay, above content */
        border-right: 2px solid;
        animation: theme-colors 4s ease-in-out infinite; /* Dynamic border color */
    }

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

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

    .nav-link {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 1.2em;
    }

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

    .footer-top-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }

    /* Adjust main content padding for mobile header + buttons */
    .main-content-padding {
        padding-top: 200px; /* Increased placeholder for mobile */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8em;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .mobile-nav-buttons {
        gap: 8px;
    }
    .main-content-padding {
        padding-top: 180px; /* Adjusted for smaller screens */
    }
}