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

/* General Page Styling */
.page-casino {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-text-color, #ffffff); /* Default light text for dark body background */
    background-color: transparent; /* Inherit from body or shared.css */
}

.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: #ffffff; /* White for section titles on dark or brand backgrounds */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-casino__section-description {
    font-size: 1.1em;
    color: #f0f0f0; /* Slightly off-white for descriptions */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-casino__link-inline {
    color: #FFFF00; /* Yellow for inline links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-casino__link-inline:hover {
    color: #C30808;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-play {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure responsiveness */
}

.page-casino__btn-primary {
    background: #C30808; /* Red for primary action (Register/Login) */
    color: #FFFF00; /* Yellow text for contrast */
    border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
    background: transparent;
    color: #FFFF00; /* Yellow text */
    border: 2px solid #FFFF00;
}

.page-casino__btn-secondary:hover {
    background: #FFFF00;
    color: #C30808; /* Red text on yellow background */
}

.page-casino__btn-play {
    background: #017439; /* Brand green for play buttons */
    color: #ffffff;
    border: 2px solid #017439;
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 15px;
}

.page-casino__btn-play:hover {
    background: #005a2e;
    border-color: #005a2e;
}

.page-casino__cta-center {
    text-align: center;
    margin-top: 50px;
}

.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header */
    box-sizing: border-box;
}

.page-casino__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-casino__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-casino__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-casino__hero-title {
    font-size: 3.8em;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-casino__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* Intro Section */
.page-casino__intro-section {
    padding: 80px 0;
}

.page-casino__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

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

.page-casino__feature-item {
    background-color: #ffffff; /* Light background for feature cards */
    color: #333333; /* Dark text for contrast */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-casino__feature-title {
    font-size: 1.8em;
    color: #017439; /* Brand green for feature titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__feature-text {
    font-size: 1em;
    color: #555555;
}

/* Games Section */
.page-casino__games-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light grey background */
    color: #333333;
}

.page-casino__games-section .page-casino__section-title {
    color: #333333; /* Dark title on light background */
}

.page-casino__games-section .page-casino__section-description {
    color: #555555; /* Darker description on light background */
}

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

.page-casino__game-card {
    background-color: #ffffff; /* White card background */
    color: #333333; /* Dark text for contrast */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-casino__game-title {
    font-size: 1.5em;
    color: #017439; /* Brand green for game titles */
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__game-title a {
    color: inherit;
    text-decoration: none;
}

.page-casino__game-title a:hover {
    text-decoration: underline;
}

.page-casino__game-description {
    font-size: 0.95em;
    color: #555555;
    padding: 0 15px;
    flex-grow: 1;
}

/* Video Section */
.page-casino__video-section {
    padding: 80px 0;
    text-align: center;
}

.page-casino__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto 0 auto;
    border-radius: 10px;
}

.page-casino__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-casino__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


/* Guide Section */
.page-casino__guide-section {
    padding: 80px 0;
    background-color: #f5f5f5;
    color: #333333;
}

.page-casino__guide-section .page-casino__section-title {
    color: #333333;
}

.page-casino__guide-section .page-casino__section-description {
    color: #555555;
}

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

.page-casino__step-item {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-casino__step-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__step-text {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Strategy Section */
.page-casino__strategy-section {
    padding: 80px 0;
}

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

.page-casino__tip-item {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-casino__tip-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-casino__tip-text {
    font-size: 1em;
    color: #555555;
}

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

.page-casino__faq-section .page-casino__section-title {
    color: #333333;
}

.page-casino__faq-section .page-casino__section-description {
    color: #555555;
}

.page-casino__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__faq-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 15px;
    overflow: hidden;
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
    background-color: #f0f0f0;
}

.page-casino__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439; /* Brand green for FAQ questions */
    font-weight: bold;
}

.page-casino__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg);
}

.page-casino__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fcfcfc;
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-casino__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #555555;
}

/* Final CTA Section */
.page-casino__cta-final {
    padding: 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.1em;
    }
    .page-casino__section-title {
        font-size: 2em;
    }
    .page-casino__feature-title,
    .page-casino__game-title,
    .page-casino__step-title,
    .page-casino__tip-title {
        font-size: 1.5em;
    }
}

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

    .page-casino__container {
        padding: 0 15px;
    }

    .page-casino__hero-section {
        height: auto;
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-casino__hero-title {
        font-size: 2.5em;
    }

    .page-casino__hero-description {
        font-size: 1em;
    }

    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-play {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-casino__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-casino__section-title {
        font-size: 1.8em;
    }

    .page-casino__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-casino__intro-section,
    .page-casino__games-section,
    .page-casino__video-section,
    .page-casino__guide-section,
    .page-casino__strategy-section,
    .page-casino__faq-section,
    .page-casino__cta-final {
        padding: 50px 0;
    }

    .page-casino__feature-item,
    .page-casino__game-card,
    .page-casino__step-item,
    .page-casino__tip-item,
    .page-casino__faq-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__game-image {
        height: 180px;
    }

    .page-casino__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-casino__video-wrapper {
        margin: 30px auto 0 auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-casino__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}