/* style/casino.css */

/* --- Base Styles --- */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color); /* Dynamically set based on body background */
    background-color: var(--background-color-page); /* Custom background for the page */
}

.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: var(--text-main-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-casino__section-text {
    font-size: 1.1em;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-casino__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #333333; /* Dark text for bright button */
    border: 2px solid #F2B544; /* Border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__btn-secondary {
    background-color: transparent;
    color: #FFF5E1; /* Text Main */
    border: 2px solid #F2B544; /* Border color */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFD86A; /* Gold hover effect */
}

.page-casino__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    width: 100%; /* For responsiveness */
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    overflow: hidden; /* For responsiveness */
}

.page-casino__cta-buttons--center {
    justify-content: center;
}

/* --- Hero Section --- */
.page-casino__hero-section {
    position: relative;
    text-align: center;
    color: #FFF5E1; /* Text Main */
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relying on body padding-top */
    padding-bottom: 60px; /* Adjusted padding to accommodate content below */
    background-color: var(--background-color-page); /* Ensures consistent background */
}

.page-casino__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height for hero image */
}

.page-casino__hero-content {
    max-width: 900px;
    margin: 40px auto 0 auto; /* Adjusted margin to place content below image */
    padding: 0 20px;
    box-sizing: border-box;
}

.page-casino__hero-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 900;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main */
    line-height: 1.2;
}

.page-casino__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
}

/* --- Introduction Section --- */
.page-casino__introduction-section {
    padding: 80px 0;
    background-color: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Text Main */
}

.page-casino__introduction-section .page-casino__section-title,
.page-casino__introduction-section .page-casino__section-text {
    color: #FFF5E1; /* Text Main */
}

/* --- Why Choose Section --- */
.page-casino__why-choose-section {
    padding: 80px 0;
    background-color: var(--background-color-page); /* Default page background */
}

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

.page-casino__feature-card {
    background-color: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Border color */
}

.page-casino__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold for titles */
    font-weight: bold;
}

.page-casino__feature-description {
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
}

/* --- Games Showcase Section --- */
.page-casino__games-showcase-section {
    padding: 80px 0;
    background-color: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Text Main */
}

.page-casino__games-showcase-section .page-casino__section-title,
.page-casino__games-showcase-section .page-casino__section-text {
    color: #FFF5E1; /* Text Main */
}

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

.page-casino__game-card {
    background-color: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Border color */
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-casino__game-card:hover {
    transform: translateY(-5px);
}

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

.page-casino__game-title {
    font-size: 1.4em;
    margin: 15px 15px 5px 15px;
    color: #FFD86A; /* Gold for titles */
    font-weight: bold;
}

.page-casino__game-description {
    font-size: 0.95em;
    padding: 0 15px 20px 15px;
    color: #FFF5E1; /* Text Main */
    flex-grow: 1;
}

/* --- Login Guide Section --- */
.page-casino__login-guide-section {
    padding: 80px 0;
    background-color: var(--background-color-page); /* Default page background */
}

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

.page-casino__step-card {
    background-color: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Border color */
}

.page-casino__step-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold for titles */
    font-weight: bold;
}

.page-casino__step-description {
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
}

/* --- Promotions Section --- */
.page-casino__promotions-section {
    padding: 80px 0;
    background-color: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Text Main */
}

.page-casino__promotions-section .page-casino__section-title,
.page-casino__promotions-section .page-casino__section-text {
    color: #FFF5E1; /* Text Main */
}

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

.page-casino__promo-card {
    background-color: #D32F2F; /* Card BG */
    color: #FFF5E1; /* Text Main */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Border color */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-casino__promo-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold for titles */
    font-weight: bold;
}

.page-casino__promo-description {
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- Support Section --- */
.page-casino__support-section {
    padding: 80px 0;
    background-color: var(--background-color-page); /* Default page background */
}

.page-casino__support-details {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
    align-items: center;
    justify-content: center;
}

.page-casino__support-item {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    color: var(--text-main-color);
}

.page-casino__support-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__support-subtitle {
    font-size: 1.5em;
    margin-top: 20px;
    margin-bottom: 15px;
    color: #C91F17; /* Main brand color */
    font-weight: bold;
}

.page-casino__support-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-casino__support-list li {
    margin-bottom: 8px;
    font-size: 1.1em;
    position: relative;
    padding-left: 25px;
}

.page-casino__support-list li::before {
    content: "•";
    color: #FFD86A; /* Gold bullet */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-casino__support-description {
    font-size: 1em;
    margin-bottom: 20px;
}

/* --- FAQ Section --- */
.page-casino__faq-section {
    padding: 80px 0;
    background-color: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Text Main */
}

.page-casino__faq-section .page-casino__section-title {
    color: #FFF5E1; /* Text Main */
}

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

.page-casino__faq-item {
    background-color: #D32F2F; /* Card BG */
    border: 1px solid #F2B544; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD86A; /* Gold for question */
    cursor: pointer;
    list-style: none; /* Hide default marker for summary */
}

.page-casino__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-casino__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: #FFD86A; /* Gold for toggle */
}

.page-casino__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #FFF5E1; /* Text Main */
}

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

/* --- Conclusion Section --- */
.page-casino__conclusion-section {
    padding: 80px 0;
    background-color: var(--background-color-page); /* Default page background */
}

/* --- Global Image Styles --- */
.page-casino img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Enforce minimum size if not explicitly set by layout */
    min-width: 200px;
    min-height: 200px;
}

/* --- Color Contrast Variables --- */
:root {
    --background-color-page: #f5f5f5; /* Default light background for sections */
    --text-main-color: #333333; /* Default dark text for light backgrounds */
    --card-bg-color: #D32F2F; /* Custom specified card background */
    --page-bg-color: #B71C1C; /* Custom specified page background for certain sections */
}

/* Intelligent Color Contrast Logic */
/* Assuming shared.css defines body background. If body is dark, these vars would be overridden */
/* For this page, sections alternate between default page background and custom page-bg-color */

/* Override for dark sections */
.page-casino__dark-section {
    background-color: var(--page-bg-color); /* #B71C1C */
    color: #FFF5E1; /* Text Main for dark background */
}

.page-casino__dark-section .page-casino__section-title,
.page-casino__dark-section .page-casino__section-text,
.page-casino__dark-section .page-casino__feature-description {
    color: #FFF5E1;
}

/* --- Responsive Styles --- */

/* Mobile & Tablet (max-width: 1024px) - General adjustments */
@media (max-width: 1024px) {
    .page-casino__container {
        padding: 0 15px;
    }

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

    .page-casino__section-text {
        font-size: 1em;
    }

    .page-casino__hero-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }

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

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

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        padding: 10px 20px;
    }

    .page-casino__features-grid,
    .page-casino__games-grid,
    .page-casino__guide-steps,
    .page-casino__promotions-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-casino__support-details {
        flex-direction: column;
        gap: 20px;
    }

    .page-casino__support-item {
        min-width: unset;
        max-width: 100%;
    }
}


/* Mobile (max-width: 768px) - Critical adjustments */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-casino__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px !important;
    }

    .page-casino__hero-image {
        max-height: 400px !important;
    }

    .page-casino__hero-content {
        margin-top: 20px !important;
        padding: 0 15px !important;
    }

    .page-casino__hero-title {
        font-size: clamp(1.6em, 7vw, 2.2em) !important;
        margin-bottom: 15px !important;
    }

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

    /* 产品展示图区域 */
    .page-casino__games-showcase-section,
    .page-casino__products-section { /* Added generic products section for safety */
        padding: 40px 0 !important;
    }

    .page-casino__games-grid {
        grid-template-columns: 1fr !important; /* Stack cards vertically */
        gap: 20px !important;
    }

    .page-casino__game-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }

    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__features-grid,
    .page-casino__games-grid,
    .page-casino__guide-steps,
    .page-casino__promotions-grid,
    .page-casino__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* 按钮与按钮容器 */
    .page-casino__cta-button,
    .page-casino__btn-primary,
    .page-casino__btn-secondary,
    .page-casino a[class*="button"],
    .page-casino a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      padding-left: 15px !important; /* Add padding to buttons themselves */
      padding-right: 15px !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; /* Allow buttons to wrap */
      gap: 15px !important; /* Adjust gap for mobile */
      flex-direction: column !important; /* Stack buttons vertically */
    }
    
    /* 其他内容模块 */
    .page-casino__introduction-section,
    .page-casino__why-choose-section,
    .page-casino__login-guide-section,
    .page-casino__promotions-section,
    .page-casino__support-section,
    .page-casino__faq-section,
    .page-casino__conclusion-section {
        padding: 40px 0 !important;
    }

    .page-casino__section-title {
        font-size: 1.8em !important;
        margin-bottom: 25px !important;
    }

    .page-casino__feature-card,
    .page-casino__step-card,
    .page-casino__promo-card {
        padding: 25px !important;
    }
}