/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

.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: 30px;
    font-weight: bold;
    line-height: 1.2;
}

.page-casino__section-description,
.page-casino__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: center;
    color: #f0f0f0; /* Slightly off-white for readability */
}

.page-casino__text-block {
    text-align: left; /* Adjust for more natural reading flow in content sections */
}

.page-casino__text-block strong.page-casino__highlight {
    color: #26A9E0;
    font-weight: bold;
}

/* Buttons */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__btn-play,
.page-casino__btn-read-more,
.page-casino__btn-view-promo {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

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

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

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

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

.page-casino__btn-play,
.page-casino__btn-read-more,
.page-casino__btn-view-promo {
    background-color: #EA7C07; /* Login color for action buttons */
    color: #ffffff;
    border: 2px solid #EA7C07;
    padding: 10px 20px;
    font-size: 0.95em;
}

.page-casino__btn-play:hover,
.page-casino__btn-read-more:hover,
.page-casino__btn-view-promo:hover {
    background-color: #c96706;
    border-color: #c96706;
}

.page-casino__inline-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-casino__inline-link:hover {
    color: #1a7fb3;
}

/* Image base styles */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.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: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

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

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

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

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

/* Introduction Section */
.page-casino__introduction-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Ensure dark background for this section */
    color: #ffffff;
}

/* Games Section */
.page-casino__games-section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
}

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

.page-casino__game-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 20px;
}

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

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

.page-casino__game-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-casino__game-description {
    font-size: 0.95em;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 15px;
}

.page-casino__btn-play {
    margin: 0 auto;
    display: block;
    width: fit-content;
}

/* Access Guide Section */
.page-casino__access-guide-section {
    padding: 60px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-casino__guide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-casino__guide-item {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__guide-item:first-child {
    grid-column: span 2; /* First item spans full width on desktop */
}

.page-casino__guide-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
}

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

.page-casino__guide-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-casino__guide-description {
    font-size: 0.95em;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

/* Promotions Section */
.page-casino__promotions-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.page-casino__promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.page-casino__promo-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: left;
    padding-bottom: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promo-card:first-child {
    grid-column: span 2; /* First promo card spans full width on desktop */
}

.page-casino__promo-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin-bottom: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.page-casino__promo-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    padding: 0 25px;
}

.page-casino__promo-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-casino__promo-description {
    font-size: 0.95em;
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
    padding: 0 25px;
}

.page-casino__btn-view-promo {
    margin: 0 25px;
    display: block;
    width: fit-content;
}

/* Register/Login Section */
.page-casino__register-login-section {
    padding: 60px 0;
    background-color: #0a0a0a;
    color: #ffffff;
    text-align: center;
}

.page-casino__register-login-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-casino__faq-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: #26A9E0; /* Primary brand color for question background */
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
    font-size: 1em;
    line-height: 1.7;
    background-color: #3a3a3a; /* Darker background for answer */
}

.page-casino__faq-answer p {
    margin: 0;
    padding-bottom: 20px; /* Padding for content inside answer */
}

.page-casino__faq-item.active .page-casino__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 20px 25px; /* Padding for expanded state */
}

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

    .page-casino__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .page-casino__section-description,
    .page-casino__text-block {
        font-size: 1em;
        margin-bottom: 15px;
        text-align: left;
    }

    /* HERO 主图区域 */
    .page-casino__hero-section {
        min-height: 400px;
        padding-top: 0 !important; /* Ensure no double padding from shared */
    }

    .page-casino__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-casino__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-casino__hero-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* 按钮与按钮容器 */
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino__btn-play,
    .page-casino__btn-read-more,
    .page-casino__btn-view-promo {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 15px !important; /* Adjust padding for mobile buttons */
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-casino__cta-buttons,
    .page-casino__button-group,
    .page-casino__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .page-casino__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* 产品展示图区域 */
    .page-casino__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

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

    .page-casino__game-title {
        font-size: 1.3em;
    }

    /* 通用图片与容器 */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-casino__introduction-section,
    .page-casino__games-section,
    .page-casino__access-guide-section,
    .page-casino__promotions-section,
    .page-casino__register-login-section,
    .page-casino__faq-section,
    .page-casino__game-card,
    .page-casino__guide-item,
    .page-casino__promo-card,
    .page-casino__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Other content modules - Access Guide Section Mobile */
    .page-casino__access-guide-section {
        padding: 40px 0 !important;
    }

    .page-casino__guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-casino__guide-item:first-child {
        grid-column: span 1;
    }

    .page-casino__guide-image {
        height: 200px;
    }

    .page-casino__guide-title {
        font-size: 1.2em;
    }

    /* Other content modules - Promotions Section Mobile */
    .page-casino__promotions-section {
        padding: 40px 0 !important;
    }

    .page-casino__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-casino__promo-card:first-child {
        grid-column: span 1;
    }

    .page-casino__promo-image {
        height: 200px;
    }

    .page-casino__promo-title {
        font-size: 1.2em;
    }

    /* Other content modules - Register/Login Section Mobile */
    .page-casino__register-login-section {
        padding: 40px 0 !important;
    }

    .page-casino__register-login-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Other content modules - FAQ Section Mobile */
    .page-casino__faq-section {
        padding: 40px 0 !important;
    }

    .page-casino__faq-question {
        padding: 15px 20px !important;
        font-size: 1em !important;
    }

    .page-casino__faq-answer {
        padding: 0 20px !important;
    }

    .page-casino__faq-item.active .page-casino__faq-answer {
        padding: 15px 20px !important;
    }
}

/* @media (max-width: 1024px) - Tablet adjustments if needed, but 768px is primary mobile focus */
@media (max-width: 1024px) {
    .page-casino__hero-title {
        font-size: 3em;
    }
    .page-casino__hero-description {
        font-size: 1.2em;
    }
    .page-casino__section-title {
        font-size: 2.2em;
    }
    .page-casino__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-casino__guide-grid,
    .page-casino__promo-grid {
        grid-template-columns: 1fr;
    }
    .page-casino__guide-item:first-child,
    .page-casino__promo-card:first-child {
        grid-column: span 1;
    }
}