/* style/casino.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base styles */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: var(--secondary-color, #FFFFFF); /* Assuming shared.css sets --secondary-color to light */
}

.page-casino__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-casino__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-casino__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #26A9E0; /* Primary brand color for hero background */
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-casino__hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px;
    box-sizing: border-box;
    flex: 1 1 auto;
}

.page-casino__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-casino__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-casino__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-casino__btn-primary {
    background: #EA7C07; /* Login button color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

.page-casino__btn-primary:hover {
    background: #d66f06;
    border-color: #d66f06;
}

.page-casino__btn-secondary {
    background: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #FFFFFF;
}

.page-casino__btn-secondary:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
}

.page-casino__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.page-casino__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2; /* Subtle background image */
}

/* Dark section styles */
.page-casino__dark-section {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 60px 0;
}

.page-casino__dark-section .page-casino__section-title,
.page-casino__dark-section .page-casino__section-intro,
.page-casino__dark-section .page-casino__text-block,
.page-casino__dark-section .page-casino__feature-title,
.page-casino__dark-section .page-casino__feature-description,
.page-casino__dark-section .page-casino__promo-title,
.page-casino__dark-section .page-casino__promo-description {
    color: #FFFFFF;
}

.page-casino__dark-section .page-casino__btn-secondary {
    background: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #FFFFFF;
}

.page-casino__dark-section .page-casino__btn-secondary:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
}

/* About Section */
.page-casino__about-section {
    padding: 80px 0;
}

.page-casino__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino__feature-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 5px; /* Added for image style */
}

.page-casino__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
}

.page-casino__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Games Overview */
.page-casino__games-overview {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-casino__game-category {
    margin-bottom: 60px;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-casino__game-title {
    font-size: 2em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
}

.page-casino__game-content {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-casino__game-content--reverse {
    flex-direction: row-reverse;
}

.page-casino__game-image {
    flex: 1 1 400px;
    max-width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 200px; /* Ensure minimum size */
}

.page-casino__game-description {
    flex: 1 1 400px;
    font-size: 1.1em;
    color: #333333;
}

.page-casino__game-category .page-casino__btn-primary {
    margin-top: 20px;
    align-self: flex-start; /* Align button to start in flex container */
}

/* Promo Section */
.page-casino__promo-section {
    padding: 80px 0;
}

.page-casino__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino__promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__promo-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-casino__promo-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-casino__promo-section .page-casino__cta-buttons {
    margin-top: 40px;
}

/* Video Section */
.page-casino__video-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 50px;
}

.page-casino__video-wrapper .page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-casino__video-link {
    display: block; /* Make the entire video area clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensure link is above video controls if needed */
    cursor: pointer;
}

/* Access Guide */
.page-casino__access-guide {
    padding: 80px 0;
}

.page-casino__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-casino__guide-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__guide-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-casino__guide-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

.page-casino__guide-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
}

/* Responsible Gaming */
.page-casino__responsible-gaming {
    padding: 80px 0;
}

.page-casino__text-block {
    max-width: 800px;
    margin: 30px auto;
    font-size: 1.1em;
    text-align: center;
    color: #f0f0f0;
}

.page-casino__responsible-gaming .page-casino__btn-secondary {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Payment & Support */
.page-casino__payment-support {
    padding: 80px 0;
    background-color: #f8f8f8;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.page-casino__payment-methods,
.page-casino__customer-support {
    flex: 1 1 45%;
    min-width: 300px;
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.page-casino__payment-methods .page-casino__section-title,
.page-casino__customer-support .page-casino__section-title {
    padding-top: 0;
    margin-bottom: 15px;
    font-size: 2em;
    color: #26A9E0;
}

.page-casino__payment-methods .page-casino__section-intro,
.page-casino__customer-support .page-casino__section-intro {
    margin-bottom: 30px;
    color: #555555;
}

.page-casino__payment-list,
.page-casino__support-channels {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-casino__payment-list li,
.page-casino__support-channels li {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333333;
}

.page-casino__payment-methods .page-casino__btn-primary,
.page-casino__customer-support .page-casino__btn-primary {
    margin-top: 20px;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #f0f0f0;
}

.page-casino__faq-list {
    max-width: 800px;
    margin: 50px auto 0 auto;
}

.page-casino__faq-item {
    background: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    user-select: none;
}

.page-casino__faq-item[open] .page-casino__faq-question {
    border-bottom: 1px solid transparent; /* Remove border when open */
}

.page-casino__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    width: 20px; /* Fixed width for consistent alignment */
    text-align: center;
}

.page-casino__faq-item[open] .page-casino__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-casino__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #555555;
    text-align: left;
}

.page-casino__faq-answer p {
    margin: 0;
}

/* For details tag, hide default marker */
.page-casino__faq-item summary {
    list-style: none;
}
.page-casino__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__game-content,
    .page-casino__game-content--reverse {
        flex-direction: column;
    }
    .page-casino__game-image {
        max-width: 100%;
    }
    .page-casino__game-category .page-casino__btn-primary {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__container {
        padding: 0 15px;
    }

    .page-casino__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-casino__hero-content {
        padding: 20px;
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
}