/* style/slot-games.css */

/* Base Styles */
.page-slot-games {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Rely on body background from shared.css */
}

.page-slot-games__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-slot-games__section {
    padding: 60px 0;
    text-align: center;
}

.page-slot-games__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff;
}

.page-slot-games__light-bg {
    background-color: #ffffff; /* Auxiliary color for light sections */
    color: #333333; /* Dark text for light background */
}

.page-slot-games__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
    line-height: 1.2;
    letter-spacing: -0.5px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__text-block {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherit color from parent section */
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-link {
    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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808; /* Border matches primary button */
}

.page-slot-games__btn-secondary:hover {
    background-color: #C30808;
    color: #ffffff;
}

.page-slot-games__btn-link {
    background-color: transparent;
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 1px solid #FFFF00;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-slot-games__btn-link:hover {
    background-color: #FFFF00;
    color: #017439;
}

.page-slot-games__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Assumed shared.css handles body padding-top */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__hero-content {
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
    color: #ffffff;
}

.page-slot-games__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #FFFF00; /* Highlighted title */
}

.page-slot-games__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Section */
.page-slot-games__why-choose {
    background-color: #ffffff;
    color: #333333;
}

.page-slot-games__why-choose .page-slot-games__section-title {
    color: #017439;
}

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

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

.page-slot-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 150px; /* Adjusted for feature icon style */
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
    object-fit: contain; /* Ensure full image is visible */
}

.page-slot-games__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-slot-games__feature-description {
    font-size: 1em;
    color: #555555;
}

/* Game Types Section */
.page-slot-games__game-types .page-slot-games__section-title {
    color: #FFFF00; /* Highlighted title */
}

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

.page-slot-games__type-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: #ffffff;
}

.page-slot-games__type-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
    object-fit: cover;
}

.page-slot-games__type-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-slot-games__type-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* How to Play Section */
.page-slot-games__how-to-play {
    background-color: #ffffff;
    color: #333333;
}

.page-slot-games__how-to-play .page-slot-games__section-title {
    color: #017439;
}

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

.page-slot-games__step-item {
    background-color: #f5f5f5;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-slot-games__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #017439;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}

.page-slot-games__step-description {
    font-size: 1em;
    color: #555555;
}

/* Promotions Section */
.page-slot-games__promotions .page-slot-games__section-title {
    color: #FFFF00;
}

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

.page-slot-games__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: left;
    color: #ffffff;
    overflow: hidden;
}

.page-slot-games__promo-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
}

.page-slot-games__promo-content {
    padding: 25px;
}

.page-slot-games__promo-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-slot-games__promo-description {
    font-size: 1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* FAQ Section */
.page-slot-games__faq-section {
    background-color: #ffffff;
    color: #333333;
}

.page-slot-games__faq-section .page-slot-games__section-title {
    color: #017439;
}

.page-slot-games__faq-list {
    max-width: 800px;
    margin: 50px auto 0 auto;
    text-align: left;
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-slot-games__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-slot-games__faq-item summary {
    list-style: none; /* Hide default marker for Firefox */
}

.page-slot-games__faq-item summary::marker {
    display: none; /* Hide default marker for other browsers */
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #017439;
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    padding-top: 10px;
    transition: max-height 0.5s ease-in, padding 0.3s ease-in;
}

/* Final CTA Section */
.page-slot-games__final-cta .page-slot-games__section-title {
    color: #FFFF00;
}

.page-slot-games__cta-content {
    max-width: 800px;
}

/* Images minimum size enforcement */
.page-slot-games img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* default for content images */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__section-title {
        font-size: 2em;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-slot-games__description {
        font-size: 1.1em;
    }
    .page-slot-games__features-grid,
    .page-slot-games__types-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Fixed header spacing */
        padding-bottom: 30px !important;
    }
    .page-slot-games__hero-image-wrapper {
        margin-bottom: 20px !important;
    }
    .page-slot-games__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-slot-games__hero-content {
        margin-bottom: 30px !important;
        padding: 0 15px !important;
    }
    .page-slot-games__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em) !important;
        letter-spacing: -0.5px !important;
    }
    .page-slot-games__description {
        font-size: 1em !important;
    }

    /* 产品展示图区域 (通用卡片布局) */
    .page-slot-games__features-grid,
    .page-slot-games__types-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr !important; /* Stack cards vertically */
        gap: 20px !important;
        margin-top: 30px !important;
    }
    .page-slot-games__feature-item,
    .page-slot-games__type-card,
    .page-slot-games__step-item,
    .page-slot-games__promo-card {
        padding: 20px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-slot-games__feature-icon,
    .page-slot-games__type-image,
    .page-slot-games__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* 通用图片与容器 */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container {
        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-slot-games__text-block {
        margin-bottom: 20px !important;
    }

    /* 按钮与按钮容器 */
    .page-slot-games__cta-button,
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games a[class*="button"],
    .page-slot-games 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;
        padding-right: 15px !important;
    }
    .page-slot-games__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }

    /* 其他内容模块 (FAQ, sections) */
    .page-slot-games__section {
        padding: 40px 0 !important;
    }
    .page-slot-games__section-title {
        font-size: 1.8em !important;
        margin-bottom: 15px !important;
    }
    .page-slot-games__faq-question {
        font-size: 1.1em !important;
        padding: 15px 20px !important;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px !important;
    }
}