/* Global Styles */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-color-light: #f0f0f0;
  --text-color-dark: #333;
  --button-hover-dark: #e0b300;
  --button-hover-light: #ffe066;
}

body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding-top: 110px; /* Space for fixed header on desktop */
  color: var(--text-color-dark);
  background-color: #f8f8f8;
}

/* Header Styles */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  min-height: 110px; /* Ensure content adaptation */
  background-color: transparent; /* Handled by header-top and main-nav */
  display: flex;
  flex-direction: column; /* Default desktop layout */
}

.header-top {
  background-color: var(--primary-color); /* Dark blue/grey */
  width: 100%;
  padding: 10px 0;
}

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

.logo {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color); /* Gold */
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

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

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-login {
  background-color: #5cb85c; /* A distinct green for login */
  color: var(--text-color-light);
}

.btn-login:hover {
  background-color: #4cae4c;
  transform: translateY(-2px);
}

.btn-register {
  background-color: var(--secondary-color); /* Gold for register */
  color: var(--primary-color);
}

.btn-register:hover {
  background-color: var(--button-hover-dark);
  transform: translateY(-2px);
}

.main-nav {
  background-color: var(--secondary-color); /* Gold */
  width: 100%;
  padding: 10px 0;
  display: flex; /* Desktop default: show nav */
  flex-direction: row; /* Desktop default: horizontal */
  justify-content: center; /* Center menu items */
  align-items: center;
}

.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; /* Allow menu items to wrap if too many */
  gap: 20px;
}

.nav-link {
  color: var(--primary-color); /* Dark text on gold background */
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

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

/* Hamburger Menu (Hidden on Desktop) */
.hamburger-menu {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu::before, .hamburger-menu::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color); /* Gold bars */
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu::before {
  top: 0;
}

.hamburger-menu::after {
  bottom: 0;
}

.hamburger-menu.active::before {
  transform: rotate(45deg);
  top: 10px;
  background-color: var(--secondary-color);
}

.hamburger-menu.active::after {
  transform: rotate(-45deg);
  bottom: 10px;
  background-color: var(--secondary-color);
}

.hamburger-menu.active span {
  opacity: 0;
}

.hamburger-menu span {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  transition: opacity 0.3s ease;
}

.mobile-buttons-area {
  display: none; /* Hidden by default on desktop */
}

.mobile-menu-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

/* Footer Styles */
.site-footer {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  padding: 40px 0 20px;
  font-size: 14px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 20px;
  gap: 30px;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
}

.footer-column h3 {
  color: var(--secondary-color);
  font-size: 18px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 5px;
}

.footer-column p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-column a {
  color: var(--text-color-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

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

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 768px) {
  body {
    padding-top: 110px; /* Adjust padding for mobile fixed header (header-top + mobile-buttons-area) */
  }

  .site-header {
    flex-direction: column;
    min-height: auto; /* Allow height to adjust dynamically */
  }

  .header-top {
    padding: 10px 0;
  }

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

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

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

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

  .mobile-buttons-area {
    display: flex; /* Show mobile buttons area */
    background-color: #2D3748; /* Darker shade for mobile buttons area */
    padding: 10px 15px;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-buttons-area .btn {
    flex: 1;
    max-width: 150px;
    font-size: 14px;
    padding: 8px 15px;
  }

  .main-nav {
    display: none; /* Hide navigation menu by default on mobile */
    flex-direction: column; /* Vertical menu on mobile */
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    height: 100%;
    background-color: var(--primary-color); /* Dark background for mobile menu */
    padding-top: 120px; /* Space for hamburger and logo in mobile menu */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transform: translateX(-100%); /* Slide out of view */
    transition: transform 0.3s ease;
    align-items: flex-start; /* Align menu items to the left */
  }

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

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

  .nav-link {
    color: var(--text-color-light); /* Light text on dark background */
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    min-width: unset;
    width: 100%;
    margin-bottom: 30px;
  }

  .footer-nav ul {
    padding: 0;
  }

  .footer-nav li {
    margin-bottom: 10px;
  }
}
/* Payment Methods 图标容器样式 */
.payment-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 5px;
}

.payment-icons img,
.payment-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Game Providers 图标容器样式 */
.game-providers-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.game-providers-icons img,
.game-provider-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}

/* Social Media 图标容器样式 */
.social-media-icons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}

.social-media-icons img,
.social-media-icon {
  max-height: 50px;
  height: auto;
  width: auto;
  display: block;
}
