/* Basic Reset & Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-bg: #212529;
    --light-text: #f8f9fa;
    --dark-text: #343a40;
    --border-color: #dee2e6;
    --font-family-base: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --header-height: 80px;
    --topbar-height: 40px;
}

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

body {
    font-family: var(--font-family-base);
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #f4f7f6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-text);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.btn-full {
    width: 100%;
    display: block;
    margin-bottom: 10px;
}

/* Header Styles */
.main-header {
    background-color: var(--dark-bg);
    color: var(--light-text);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-topbar {
    background-color: #1a1d20;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

.topbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-link {
    color: var(--light-text);
    margin-left: 15px;
}

.topbar-separator {
    margin: 0 5px;
    color: #555;
}

.language-selector select {
    background-color: transparent;
    color: var(--light-text);
    border: 1px solid #555;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.language-selector select option {
    color: var(--dark-text);
    background-color: #f4f7f6;
}

.header-main {
    padding: 15px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; /* Adjust based on logo design */
    width: auto;
}

.main-nav .nav-list {
    display: flex;
    gap: 25px;
}

.main-nav .nav-link {
    color: var(--light-text);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

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

.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-bg);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    display: none;
    border-radius: 5px;
    overflow: hidden;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-item {
    color: var(--light-text);
    padding: 12px 16px;
    display: block;
}

.dropdown-item:hover {
    background-color: #333;
    color: var(--primary-color);
}

.user-actions {
    display: flex;
    gap: 10px;
}

.menu-toggle {
    display: none; /* Hidden by default, shown on mobile */
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--light-text);
}

.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 999;
    display: none; /* Hidden by default */
    overflow-y: auto;
}

.mobile-nav {
    background-color: var(--dark-bg);
    width: 70%;
    max-width: 300px;
    height: 100%;
    padding-top: 60px;
    position: absolute;
    right: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
}

.mobile-nav-overlay.active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav-list {
    padding: 20px;
}

.mobile-nav-item {
    margin-bottom: 10px;
}

.mobile-nav-link {
    color: var(--light-text);
    display: block;
    padding: 12px 15px;
    border-radius: 5px;
}

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

.mobile-login-register {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* Marquee Styles */
.marquee-section {
    background-color: #fff3cd; /* Light yellow background */
    color: #856404; /* Dark yellow text */
    padding: 10px 0;
    border-bottom: 1px solid #ffeeba;
    overflow: hidden;
    position: relative;
    font-size: 0.9rem;
}

.marquee-container {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-icon {
    margin-right: 15px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

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

.marquee-content {
    display: inline-block;
    animation: marquee-animation 30s linear infinite; /* Adjust speed as needed */
    padding-right: 100%; /* Ensures content scrolls fully out */
}

.marquee-content a {
    color: #856404;
    text-decoration: none;
    margin-right: 30px;
    transition: color 0.2s ease;
}

.marquee-content a:hover {
    color: #5a4603;
    text-decoration: underline;
}

.marquee-separator {
    margin: 0 15px;
    color: #d1b700;
}

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

/* Footer Styles */
.main-footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 40px 0 20px;
    font-size: 0.9rem;
    border-top: 5px solid var(--primary-color);
}

.footer-top {
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.footer-col h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
}

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

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.8;
}

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

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

.footer-col ul li a {
    color: var(--light-text);
}

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

.social-links {
    margin-top: 15px;
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.payment-icons img {
    height: 30px;
    width: auto;
    filter: grayscale(100%) brightness(150%); /* make icons look consistent on dark bg */
    transition: filter 0.3s ease;
}

.payment-icons img:hover {
    filter: grayscale(0%) brightness(100%);
}

.responsible-gaming {
    font-size: 0.8rem;
    color: #aaa;
}

.responsible-gaming a {
    color: #eee;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.copyright {
    margin-bottom: 5px;
    color: #ccc;
}

.legal-disclaimer {
    font-size: 0.75rem;
    color: #888;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    .user-actions {
        gap: 5px;
    }
    .user-actions .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    .menu-toggle {
        display: block;
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .topbar-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .topbar-right {
        margin-top: 5px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .social-links {
        justify-content: center;
    }
    .payment-icons {
        justify-content: center;
    }
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
