/* Basic Reset & Typography */
:root {
    --primary-color: #e44d26; /* A common vibrant orange/red for casino sites */
    --secondary-color: #f7931e;
    --dark-bg: #1a1a1a;
    --light-text: #ffffff;
    --gray-text: #cccccc;
    --border-color: #333333;
    --font-family-primary: 'Roboto', sans-serif;
    --font-family-secondary: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family-primary);
    color: var(--light-text);
    background-color: #0d0d0d;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-secondary);
    color: var(--light-text);
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

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

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: var(--light-text);
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success {
    color: var(--light-text);
    background-color: #28a745; /* Green for signup */
    border-color: #28a745;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

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

.btn-outline-light:hover {
    color: var(--dark-bg);
    background-color: var(--light-text);
    border-color: var(--light-text);
}

/* Header Specific Styles */
.main-header {
    background-color: var(--dark-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-top-bar {
    background-color: #0a0a0a;
    padding: 8px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-color);
}

.header-top-bar .top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-bar .contact-info span {
    margin-right: 20px;
}

.header-top-bar .contact-info i {
    margin-right: 5px;
    color: var(--primary-color);
}

.header-top-bar .social-links a {
    color: var(--light-text);
    margin-left: 15px;
    font-size: 1rem;
}

.navbar {
    padding: 1rem 0;
    background-color: var(--dark-bg) !important; /* Override Bootstrap default */
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text) !important;
}

.navbar-brand .logo-img {
    height: 40px; /* Adjust logo height */
    margin-right: 10px;
}

.navbar-nav .nav-link {
    color: var(--light-text) !important;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
    color: var(--primary-color) !important;
}

.dropdown-menu {
    background-color: #222;
    border: 1px solid var(--border-color);
}

.dropdown-item {
    color: var(--light-text);
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Marquee Section Styles */
.marquee-section {
    background-color: #333;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-color);
}

.marquee-container {
    display: flex;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.marquee-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

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

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    padding-left: 100%; /* Start off-screen */
}

.marquee-content:hover {
    animation-play-state: paused;
}

.marquee-item {
    color: var(--light-text);
    margin-right: 50px;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-block;
}

.marquee-item:hover {
    color: var(--secondary-color);
}

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

/* Footer Specific Styles */
.main-footer {
    background-color: var(--dark-bg);
    padding: 50px 0 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 30px;
}

.footer-widget {
    margin-bottom: 20px;
}

.footer-widget h5, .footer-widget h6 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-widget p {
    color: var(--gray-text);
    line-height: 1.8;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-logo .logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-text);
}

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

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

.footer-widget ul li a {
    color: var(--gray-text);
}

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

.footer-widget .social-icons a {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-right: 15px;
    transition: color 0.3s ease;
}

.footer-widget .social-icons a:hover {
    color: var(--primary-color);
}

.footer-widget .contact-info p {
    margin-bottom: 10px;
}

.footer-widget .contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

.payment-methods {
    margin-top: 20px;
}

.payment-methods .payment-icon {
    height: 30px;
    margin-right: 10px;
    filter: grayscale(100%) brightness(150%); /* Make icons fit dark theme better */
}

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

.responsible-gaming {
    margin-bottom: 20px;
}

.responsible-gaming h6 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.responsible-gaming p {
    color: var(--gray-text);
    max-width: 800px;
    margin: 0 auto 15px;
}

.responsible-gaming .age-restriction,
.responsible-gaming .responsible-gaming-logo {
    height: 40px;
    margin: 0 10px;
    vertical-align: middle;
}

.copyright-info {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 20px;
}

.copyright-info p {
    color: var(--gray-text);
    margin-bottom: 10px;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-legal-links li a {
    color: var(--gray-text);
    font-size: 0.85rem;
}

.footer-legal-links li a:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments (using Bootstrap-like grid classes for structure) */
@media (max-width: 991px) {
    .navbar-expand-lg .navbar-collapse {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 10px;
    }
    .navbar-nav {
        margin-bottom: 15px;
    }
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .header-actions .btn, .language-selector {
        width: 100%;
    }
    .dropdown-menu-end {
        left: 0 !important;
        right: auto !important;
    }
    .footer-widgets .col-lg-4, .col-lg-2 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }
    .footer-logo, .social-icons {
        justify-content: center;
    }
    .footer-widget h5, .footer-widget h6 {
        text-align: center;
    }
    .footer-widget ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .footer-widget ul li {
        flex: 0 0 auto;
    }
    .footer-widget .contact-info p {
        text-align: center;
    }
    .footer-widget .contact-info i {
        margin-right: 5px;
    }
}

@media (max-width: 767px) {
    .header-top-bar .top-bar-content {
        flex-direction: column;
        gap: 10px;
    }
    .header-top-bar .contact-info span {
        margin-right: 10px;
    }
    .marquee-icon {
        display: none; /* Hide icon on small screens */
    }
    .marquee-content {
        animation-duration: 20s; /* Faster scroll on smaller screens */
    }
}

/* Sticky Navbar Styles */
.sticky-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(26, 26, 26, 0.95) !important; /* Slightly transparent */
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}
/* Optional: Hide on scroll down, show on scroll up */
.navbar-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
}
/* 移动端内容区防溢出（系统追加，请勿删除） */
@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;
  }
}
