/* style/casino.css */

/* Base styles for the page-casino scope */
.page-casino {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFFFFF; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Section padding */
.page-casino__section {
    padding: 60px 0;
    position: relative;
}

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

/* Headings */
.page-casino__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-casino h3 {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-casino p {
    color: #FFFFFF;
    margin-bottom: 15px;
}

/* Buttons */
.page-casino__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
    overflow: hidden; /* Prevent overflow */
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to wrap */
    max-width: 100%; /* Ensure button takes full width if needed */
    box-sizing: border-box;
}

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

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

.page-casino__btn-secondary {
    background-color: transparent;
    color: #FFFFFF; /* White font for secondary action */
    border: 2px solid #017439; /* Green border for secondary action */
}

.page-casino__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

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

/* Hero Section */
.page-casino__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Responsive height */
    min-height: 500px;
    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: rgba(0, 0, 0, 0.7); /* 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.2;
}

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

/* Intro Section */
.page-casino__intro-section {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Games Section */
.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: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-casino__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-casino__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-casino__game-title {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.page-casino__game-title a {
    color: #FFFF00; /* Yellow for game titles */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
    color: #ffcc00;
}

.page-casino__game-description {
    font-size: 0.95em;
    color: #e0e0e0;
    flex-grow: 1; /* Make description take available space */
}

/* Promotions Section */
.page-casino__dark-section {
    background-color: #017439; /* Brand primary color as background */
    color: #FFFFFF;
}

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

.page-casino__promo-image {
    max-width: 500px;
    flex-shrink: 0;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.page-casino__promo-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    max-width: 600px;
}

.page-casino__promo-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 5px solid #FFFF00; /* Yellow accent */
}

.page-casino__promo-list li:last-child {
    margin-bottom: 0;
}

.page-casino__list-title {
    color: #FFFF00;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3em;
}

/* Security Section */
.page-casino__security-section {
    background-color: rgba(255, 255, 255, 0.05);
}

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

.page-casino__security-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.page-casino__security-image {
    max-width: 500px;
    flex-shrink: 0;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Guide Section */
.page-casino__dark-bg {
    background-color: #0a0a0a; /* Use the body background color */
    color: #FFFFFF;
}

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

.page-casino__guide-step {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border-bottom: 5px solid #017439; /* Green accent */
}

.page-casino__step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background-color: #C30808; /* Red for step numbers */
    color: #FFFF00; /* Yellow font */
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-casino__step-title {
    color: #FFFF00; /* Yellow for step titles */
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-casino__step-description {
    color: #e0e0e0;
    font-size: 0.95em;
}

/* FAQ Section */
.page-casino__faq-section {
    background-color: rgba(255, 255, 255, 0.05);
}

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

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

.page-casino__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

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

.page-casino__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for toggle icon */
    transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
    transform: rotate(45deg); /* Rotate for '−' effect */
}

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

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

.page-casino__faq-answer p {
    color: #e0e0e0;
    margin-bottom: 0;
}

/* Final CTA Section */
.page-casino__final-cta-content {
    text-align: center;
}

/* Copyright */
.page-casino__copyright {
    background-color: #017439; /* Brand primary color */
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
    color: #FFFFFF;
    margin-top: 60px;
}

/* Responsive Styles */
@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__promo-content,
    .page-casino__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-casino__promo-image,
    .page-casino__security-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-casino__hero-section {
        height: 60vh;
        min-height: 400px;
        padding-top: 0 !important; /* Ensure no double padding if shared.css adds it to body */
    }

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

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

    /* 通用内容区 padding */
    .page-casino__section {
        padding: 40px 0;
    }

    .page-casino__container {
        padding: 0 15px !important; /* Force padding for mobile */
    }

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

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

    .page-casino h3 {
        font-size: 1.3em;
    }

    .page-casino p {
        font-size: 0.9em;
    }

    /* 按钮与按钮容器 */
    .page-casino__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px !important; /* Add padding to container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__btn-primary,
    .page-casino__btn-secondary {
        padding: 12px 20px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* 产品展示图区域 - Games Grid */
    .page-casino__games-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
        padding: 0 15px !important; /* Add padding to container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-casino__game-card {
        padding: 20px !important;
    }

    .page-casino__game-image {
        height: 180px !important; /* Adjust height for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 通用图片与容器 */
    .page-casino img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-casino__section,
    .page-casino__card,
    .page-casino__container,
    .page-casino__promo-content,
    .page-casino__security-content,
    .page-casino__guide-steps {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-casino__container above, to avoid double padding */
    }

    /* 其他内容模块 (e.g., promo list, guide steps) */
    .page-casino__promo-list {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-casino__promo-list li {
        padding: 15px !important;
    }

    .page-casino__guide-steps {
        grid-template-columns: 1fr !important; /* Single column for guide steps */
        padding: 0 15px !important;
    }

    .page-casino__faq-list {
        padding: 0 15px !important;
    }

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

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

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

    .page-casino__copyright {
        margin-top: 40px;
        padding: 15px 20px;
    }
}