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

/* General styles for the casino page content */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark #0a0a0a, so text should be light */
    background-color: transparent; /* Inherit from shared.css or body */
}

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

.page-casino__section-padding {
    padding: 80px 0;
}

.page-casino__section-title {
    font-size: 2.8em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-casino__section-title--white {
    color: #ffffff;
}

.page-casino__section-text {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-casino__section-text--white {
    color: #ffffff;
}

.page-casino__text-center {
    text-align: center;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

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

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

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

.page-casino__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.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: all 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: #26A9E0; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-casino__btn-secondary {
    background: transparent;
    color: #26A9E0; /* Brand primary color */
    border: 2px solid #26A9E0;
}

.page-casino__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
}

.page-casino__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

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

/* About Section */
.page-casino__about-section {
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #f0f0f0;
}

/* Games Section */
.page-casino__games-section {
    background-color: #1a1a1a; /* Darker background */
    color: #ffffff;
}

.page-casino__dark-bg {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-casino__light-bg {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

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

.page-casino__game-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-casino__game-card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-casino__game-card-description {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
    padding: 0 15px;
    flex-grow: 1; /* Make description take available space */
}

.page-casino__game-card .page-casino__btn-primary {
    margin: 0 auto;
    width: fit-content;
}

/* Promotions Section */
.page-casino__promotions-section {
    background-color: #0d0d0d;
    color: #f0f0f0;
}

.page-casino__promo-card {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-casino__promo-card--reverse {
    flex-direction: row-reverse;
}

.page-casino__promo-image {
    width: 50%;
    height: 350px;
    object-fit: cover;
}

.page-casino__promo-content {
    width: 50%;
    padding: 40px;
    text-align: left;
}

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

.page-casino__promo-description {
    font-size: 1.1em;
    color: #cccccc;
    margin-bottom: 25px;
}

/* Why Choose Us Section */
.page-casino__why-choose-us-section {
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-casino__feature-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__feature-icon {
    width: 250px; /* Enforce min 200px */
    height: 187px; /* Maintain aspect ratio for 400x300 */
    object-fit: contain; /* Ensure full icon is visible */
    margin-bottom: 20px;
}

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

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

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

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

.page-casino__faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-casino__faq-item summary {
    list-style: none; /* Remove default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-casino__faq-item summary::-webkit-details-marker {
    display: none; /* Hide Chrome's default marker */
}

.page-casino__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #ffffff;
}

.page-casino__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.1em;
    color: #cccccc;
}

/* CTA Banner */
.page-casino__cta-banner {
    background-color: #26A9E0; /* Brand primary color as background */
    color: #ffffff;
    text-align: center;
}

.page-casino__cta-content {
    padding: 40px 20px;
}

.page-casino__cta-content .page-casino__section-title {
    color: #ffffff;
}

.page-casino__cta-content .page-casino__section-text {
    color: #f0f0f0;
}

/* Copyright Section */
.page-casino__copyright-section {
    background-color: #000000; /* Pure black for footer */
    padding: 30px 0;
    text-align: center;
}

.page-casino__copyright-text {
    font-size: 0.9em;
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
    .page-casino__promo-card,
    .page-casino__promo-card--reverse {
        flex-direction: column;
    }
    .page-casino__promo-image,
    .page-casino__promo-content {
        width: 100%;
    }
    .page-casino__promo-content {
        text-align: center;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-casino {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-casino__container {
        padding: 0 15px;
    }
    .page-casino__section-padding {
        padding: 60px 0;
    }
    .page-casino__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-casino__hero-title {
        font-size: 2.2em;
    }
    .page-casino__hero-description {
        font-size: 1em;
    }
    .page-casino__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
    }
    .page-casino__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-casino__game-grid,
    .page-casino__features-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__promo-image {
        height: 250px;
    }
    .page-casino__promo-content {
        padding: 20px;
    }
    .page-casino__promo-title {
        font-size: 1.5em;
    }
    .page-casino__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-casino__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Images responsive requirements */
    .page-casino img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-casino__section, /* Generic section for safety */
    .page-casino__card, /* Generic card for safety */
    .page-casino__container, 
    .page-casino__game-card,
    .page-casino__promo-card,
    .page-casino__feature-item,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    /* Specific overrides for containers that already have padding */
    .page-casino__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    /* Ensure .page-casino__hero-section doesn't get extra padding from generic rule */
    .page-casino__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* Video responsive (if any) */
    .page-casino video,
    .page-casino__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-casino__video-section,
    .page-casino__video-container,
    .page-casino__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
}

/* Ensure content area images do not get smaller than 200px from CSS rules */
.page-casino__game-card-image,
.page-casino__promo-image,
.page-casino__feature-icon {
    min-width: 200px;
    min-height: 200px;
    /* The HTML width/height attributes for these are already >= 200px */
    /* CSS max-width: 100%; height: auto; will handle responsiveness without going below 200px if original is larger */
}
/* No CSS filter properties for images */
/* .page-casino img { filter: none; } */