/* style/slot-games.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --background-dark: #0D0E12;
    --card-bg: #17191F;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
}

.page-slot-games {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for dark body background */
    background-color: var(--background-dark);
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-slot-games__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-description {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-slot-games__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-slot-games__btn-primary,
.page-slot-games__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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-slot-games__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
}

.page-slot-games__btn-center {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Section Titles and Text */
.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-slot-games__intro-section .page-slot-games__section-title,
.page-slot-games__providers-section .page-slot-games__section-title,
.page-slot-games__features-section .page-slot-games__section-title,
.page-slot-games__responsible-gaming-section .page-slot-games__section-title {
    color: #333333; /* Dark text for light background */
}

.page-slot-games__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
}

.page-slot-games__intro-section,
.page-slot-games__providers-section,
.page-slot-games__features-section,
.page-slot-games__responsible-gaming-section {
    background-color: #ffffff; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-slot-games__dark-section {
    background-color: var(--background-dark);
    color: var(--text-main);
    padding: 60px 0;
}

/* Grid Cards */
.page-slot-games__grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-slot-games__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    padding: 15px 20px 10px;
    margin: 0;
}

.page-slot-games__card-description {
    font-size: 0.95em;
    color: var(--text-main);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Provider List */
.page-slot-games__provider-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.page-slot-games__provider-list li {
    background-color: #f5f5f5;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #333333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-slot-games__list-item-text {
    display: block;
}

/* How-to-play List */
.page-slot-games__step-list {
    list-style: decimal;
    padding-left: 25px;
    margin: 30px 0;
}

.page-slot-games__step-list li {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-slot-games__step-list li a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-slot-games__step-list li a:hover {
    text-decoration: underline;
}

/* Features Section */
.page-slot-games__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-slot-games__feature-item {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-slot-games__feature-icon {
    width: 100%; /* Ensure images are responsive */
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-slot-games__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-slot-games__feature-description {
    font-size: 0.95em;
    line-height: 1.6;
}

/* Promotions Section */
.page-slot-games__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-slot-games__promo-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__promo-list li strong {
    color: var(--secondary-color);
}

/* FAQ Section */
.page-slot-games__faq-list {
    margin-top: 30px;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: var(--card-bg);
    position: relative;
    list-style: none; /* For details/summary */
}

.page-slot-games__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-slot-games__faq-item summary::marker {
    display: none;
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--text-main);
}

.page-slot-games__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding: 0 25px 20px;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question .page-slot-games__faq-toggle {
    content: '−';
}

/* Responsive Design */

/* General responsive for images and containers */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-slot-games__section,
.page-slot-games__card,
.page-slot-games__container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* Prevent horizontal scroll from content */
}

@media (max-width: 1024px) {
    .page-slot-games__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-slot-games__section-title {
        font-size: 2em;
    }

    .page-slot-games__hero-content {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    /* 1. HERO 主图区域 */
    .page-slot-games__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        min-height: 400px;
        padding-bottom: 30px;
    }

    .page-slot-games__hero-content {
        padding: 15px;
        max-width: 100%;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important;
        margin-bottom: 10px;
    }

    .page-slot-games__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    /* 2. 产品展示图区域 (Grid Cards) */
    .page-slot-games__grid-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    /* 3. 通用图片与容器 */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 4. 按钮与按钮容器 */
    .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;
        padding-right: 15px;
    }

    .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;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex behavior */
        flex-direction: column; /* Stack buttons vertically */
    }

    /* 5. 其他内容模块 */
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-slot-games__text-block,
    .page-slot-games__provider-list li,
    .page-slot-games__step-list li,
    .page-slot-games__feature-description,
    .page-slot-games__promo-list li,
    .page-slot-games__faq-question {
        font-size: 0.95em;
    }

    .page-slot-games__provider-list,
    .page-slot-games__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    .page-slot-games__card-image {
        height: 180px;
    }

    .page-slot-games__intro-section,
    .page-slot-games__providers-section,
    .page-slot-games__features-section,
    .page-slot-games__responsible-gaming-section,
    .page-slot-games__dark-section {
        padding: 40px 0;
    }
    
    .page-slot-games__faq-question {
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px;
    }
}

/* Ensure color contrast for light background sections */
.page-slot-games__light-bg .page-slot-games__text-block,
.page-slot-games__light-bg .page-slot-games__provider-list li,
.page-slot-games__light-bg .page-slot-games__feature-item,
.page-slot-games__light-bg .page-slot-games__feature-description {
    color: #333333; /* Enforce dark text on light background */
}

.page-slot-games__light-bg .page-slot-games__feature-title {
    color: var(--primary-color);
}