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

body {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark background */
  background-color: #0a0a0a; /* Dark background */
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding-top: var(--header-offset); /* Fixed header offset */
}

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

ul {
  list-style: none;
}

/* Language consistency */
html {
  lang: "vi-VN";
}

/* Neon Dynamic Color Variables & Animations */
:root {
  --primary-color: #26A9E0; /* Base primary color */
  --secondary-color: #FFFFFF; /* Base secondary color */

  /* Derived neon colors for dynamic effects */
  --neon-primary: #00FFFF; /* Electric Cyan */
  --neon-secondary: #FF00FF; /* Vibrant Magenta */
  --neon-accent: #FFFF00; /* Bright Yellow */

  /* Header offsets */
  --header-offset: 155px; /* Desktop: Marquee(45) + Header-top(60) + Main-nav(50) */
}

@media (max-width: 768px) {
  :root {
    --header-offset: 125px; /* Mobile: Marquee(30) + Header-top(50) + Mobile-buttons(45) */
  }
}

/* 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);
  }
  33% {
    border-color: var(--neon-secondary);
    box-shadow: 
      0 0 10px var(--neon-secondary),
      0 0 20px var(--neon-secondary);
  }
  66% {
    border-color: var(--neon-accent);
    box-shadow: 
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent);
  }
}

@keyframes alternate-glow {
  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-accent);
    box-shadow: 
      0 0 10px var(--neon-accent),
      0 0 20px var(--neon-accent);
  }
}

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

/* Marquee Section Styles */
.marquee-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  color: #ffffff;
  overflow: hidden;
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  z-index: 1002; /* Above header */
  height: 45px; /* Desktop estimated height */
}

.marquee-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 20px;
}

.marquee-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  z-index: 2;
  position: relative;
}

.marquee-icon-emoji {
  font-size: 20px;
  display: inline-block;
  animation: marquee-pulse 2s ease-in-out infinite, 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);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes marquee-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  gap: 30px;
}

.marquee-text {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 
    0 0 5px var(--neon-primary),
    0 0 10px var(--neon-primary),
    0 0 15px var(--neon-primary);
  line-height: 1.5;
  display: inline-block;
  vertical-align: middle;
  animation: text-glow-flow 3s ease-in-out infinite alternate;
  cursor: pointer;
  transition: all 0.3s ease;
}

.marquee-text:hover {
  text-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    0 0 40px var(--neon-primary);
  transform: scale(1.05);
  color: #ffffff;
}

.marquee-separator {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 15px;
  text-shadow: 
    0 0 3px var(--neon-primary),
    0 0 6px var(--neon-primary);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header Section Styles (Desktop First) */
.site-header {
  position: fixed;
  top: 45px; /* Below marquee */
  left: 0;
  width: 100%;
  z-index: 1001; /* Below marquee, above content */
}

.header-top {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e);
  border-bottom: 2px solid;
  animation: theme-colors 4s ease-in-out infinite;
  box-shadow: 
    0 0 10px var(--neon-primary),
    0 0 20px var(--neon-primary),
    0 0 30px var(--neon-primary),
    inset 0 0 20px rgba(0, 255, 255, 0.1);
  width: 100%;
  min-height: 60px; /* Desktop estimated height */
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* LOGO no neon glow, use regular color */
  text-decoration: none;
  display: block; 
  line-height: 1; 
  padding: 0; 
  margin: 0; 
  /* LOGO MUST NOT have neon effects */
  text-shadow: none;
  box-shadow: none;
  filter: none;
}

.logo img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 50px;
  /* LOGO MUST NOT have neon effects */
  filter: none;
}

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

.desktop-nav-buttons {
  display: flex; /* Visible on desktop */
  gap: 10px;
  margin-left: auto; /* Push to right */
}

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

.main-nav {
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  border-top: 2px solid;
  border-bottom: 2px solid;
  animation: alternate-glow 4s ease-in-out infinite; /* Different glow for main nav */
  box-shadow: 
    0 0 10px var(--neon-secondary),
    0 0 20px var(--neon-secondary),
    0 0 30px var(--neon-secondary),
    inset 0 0 20px rgba(255, 0, 255, 0.1);
  width: 100%;
  display: flex; /* Visible on desktop */
  min-height: 50px; /* Desktop estimated height */
}

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

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff; /* Regular text color for nav links */
  padding: 5px 0;
  transition: color 0.3s ease;
  text-decoration: none;
  /* Nav links are regular, no neon */
  text-shadow: none;
}

.nav-link:hover {
  color: var(--primary-color); /* Hover effect with primary color */
}

/* Buttons */
.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;
  font-weight: bold;
  font-size: 15px;
  text-shadow: 
    0 0 5px #ffffff,
    0 0 10px var(--neon-primary);
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent button text from wrapping on desktop */
  cursor: pointer;
}

.btn:hover {
  animation-duration: 2s;
  transform: translateY(-2px);
  text-shadow: 
    0 0 8px #ffffff,
    0 0 15px var(--neon-primary),
    0 0 20px var(--neon-primary);
}

/* Footer Section Styles */
.site-footer {
  background-color: #1a1a2e; /* Dark background, no neon */
  color: #c0c0c0;
  padding: 40px 0 20px;
  font-size: 14px;
}

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

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

.footer-col h4 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}

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

.footer-description {
  line-height: 1.8;
  word-wrap: break-word; /* Ensure full text display */
  overflow-wrap: break-word;
  color: #c0c0c0;
}

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

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

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

.payment-icons,
.game-providers-icons,
.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-icons img,
.game-providers-icons img,
.social-media-icons img {
  max-height: 50px; /* Max height for all icons */
  height: auto;
  width: auto;
  object-fit: contain;
}

.payment-methods .payment-icons {
    gap: 5px; /* Smaller gap for payment icons */
}

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

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

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

.game-providers-section h4,
.social-media-section h4 {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 8px;
}

.game-providers-section h4::after,
.social-media-section h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-color);
}


.footer-bottom {
  text-align: center;
  color: #888;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  /* Marquee Mobile */
  .marquee-section {
    height: 30px; /* Mobile estimated height */
    padding: 0;
  }
  .marquee-container {
    gap: 10px;
    padding: 0 5px;
  }
  .marquee-icon {
    width: 20px;
    height: 20px;
  }
  .marquee-icon-emoji {
    font-size: 14px;
  }
  .marquee-text {
    font-size: 12px;
  }
  .marquee-separator {
    font-size: 12px;
    margin: 0 5px;
  }
  .marquee-content {
    gap: 15px;
    animation-duration: 20s; /* Faster scroll on mobile */
  }

  /* Header Mobile */
  .site-header {
    top: 30px; /* Below mobile marquee */
  }

  .header-top {
    min-height: 50px; /* Mobile estimated height */
    padding: 10px 0;
  }
  
  .header-container {
    padding: 10px 15px;
    flex-wrap: nowrap; /* Prevent wrapping in header-top */
    justify-content: flex-start; /* Align hamburger left */
  }

  .hamburger-menu {
    display: flex; /* Show hamburger on mobile */
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    cursor: pointer;
    z-index: 1003; /* Above logo */
    position: relative;
    padding: 2px 0;
    margin-right: 15px; /* Space between hamburger and logo */
    border: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Neon glow for hamburger */
    border-radius: 3px;
    box-shadow: 
      0 0 5px var(--neon-primary),
      0 0 10px var(--neon-primary);
  }

  .hamburger-menu span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 1px;
    transition: all 0.3s ease-in-out;
  }

  /* Hamburger menu active state (X icon) */
  .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);
  }

  .logo {
    flex: 1 !important; /* Take remaining space */
    display: flex !important; /* Use flex to center image/text */
    justify-content: center !important;
    align-items: center !important;
    font-size: 22px; /* Smaller logo text on mobile */
    max-height: 40px; /* Limit logo height */
  }

  .logo img {
    max-height: 40px !important; /* Smaller image logo on mobile */
    object-fit: contain;
  }

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

  .mobile-nav-buttons {
    display: flex !important; /* Show mobile buttons */
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    background-color: #1a1a2e; /* Dark background for button row */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: nowrap; /* Ensure buttons stay in one row */
    min-height: 45px; /* Mobile estimated height */
  }

  .mobile-nav-buttons .btn {
    flex: 1;
    min-width: 0;
    max-width: calc(50% - 5px); /* Account for gap */
    padding: 8px 12px; /* Smaller padding */
    font-size: 13px; /* Smaller font size */
    text-align: center;
    white-space: normal; /* Allow text wrapping for long button text */
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .main-nav {
    display: none; /* Hidden by default on mobile */
    flex-direction: column;
    position: fixed;
    top: 125px; /* Below header-top and mobile-buttons */
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100% - 125px); /* Adjust height for fixed header */
    background-color: #1a1a2e; /* Dark background for mobile menu */
    overflow-y: auto;
    transform: translateX(-100%); /* Slide out to left */
    transition: transform 0.3s ease-in-out;
    z-index: 1000; /* Above overlay */
    border-right: 2px solid;
    animation: theme-colors 4s ease-in-out infinite; /* Neon glow for mobile menu */
    box-shadow: 
      0 0 10px var(--neon-primary),
      0 0 20px var(--neon-primary),
      inset 0 0 20px rgba(0, 255, 255, 0.1);
  }

  .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 15px;
    gap: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: none; /* No max-width on mobile */
  }

  .nav-link {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
  }

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

  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999; /* Below menu */
    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;
  }

  body.no-scroll {
    overflow: hidden;
  }

  /* Footer Mobile */
  .footer-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .footer-middle {
    padding: 20px 15px 30px;
  }
  .footer-bottom {
    padding: 0 15px;
  }

  /* Mobile Content Overflow Prevention */
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@media (max-width: 768px) {
  .page-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-content {
    overflow-x: hidden;
    max-width: 100%;
  }
  body {
    overflow-x: hidden;
  }
}
