/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --background-color: #000000; /* Body background from shared.css */
    --register-login-font-color: #FFFF00;
    --text-light: #ffffff;
    --text-dark: #333333;
    --card-bg-dark-section: rgba(255, 255, 255, 0.1);
    --card-bg-light-section: #ffffff;
    --border-color: #e0e0e0;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Body background is dark, so use light text */
    background-color: var(--background-color);
}

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

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

.page-slot-games__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 800px;
    padding: 20px;
}

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-slot-games__hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-download,
.page-slot-games__card-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-slot-games__btn-primary {
    background-color: var(--register-color); /* #C30808 */
    color: var(--register-login-font-color); /* #FFFF00 */
    border: 2px solid var(--register-color);
}

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

.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(--primary-color);
}

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

.page-slot-games__btn-download:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* General Section Styling */
.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-slot-games__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-light);
}

.page-slot-games__intro-section,
.page-slot-games__benefits-section,
.page-slot-games__guide-section,
.page-slot-games__cta-bottom {
    padding: 80px 0;
}

.page-slot-games__popular-games,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
    padding: 80px 0;
}

.page-slot-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-slot-games__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-slot-games__light-bg .page-slot-games__section-title,
.page-slot-games__light-bg .page-slot-games__section-subtitle,
.page-slot-games__light-bg .page-slot-games__game-title,
.page-slot-games__light-bg .page-slot-games__game-description,
.page-slot-games__light-bg .page-slot-games__promo-title,
.page-slot-games__light-bg .page-slot-games__promo-description,
.page-slot-games__light-bg .page-slot-games__faq-q-text {
    color: var(--text-dark);
}

/* Popular Games Section */
.page-slot-games__games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-slot-games__game-card {
    background-color: var(--card-bg-light-section);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
}

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

.page-slot-games__game-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-slot-games__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    padding: 0 15px;
    color: var(--text-dark);
}

.page-slot-games__game-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    padding: 0 15px;
}

.page-slot-games__card-button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.page-slot-games__card-button:hover {
    background-color: #005a2d;
}

/* Benefits Section */
.page-slot-games__benefits-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    list-style: none;
    padding: 0;
}

.page-slot-games__benefit-item {
    background-color: var(--card-bg-dark-section);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-slot-games__benefit-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-slot-games__benefit-description {
    font-size: 1em;
    color: var(--text-light);
}

/* Promotions Section */
.page-slot-games__promo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.page-slot-games__promo-card {
    background-color: var(--card-bg-light-section);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding-bottom: 20px;
}

.page-slot-games__promo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 15px;
}

.page-slot-games__promo-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    padding: 0 15px;
    color: var(--text-dark);
}

.page-slot-games__promo-description {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Guide Section */
.page-slot-games__guide-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-slot-games__guide-steps {
    flex: 1;
}

.page-slot-games__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.page-slot-games__step-number {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.page-slot-games__step-title {
    font-size: 1.4em;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.page-slot-games__step-description {
    font-size: 1em;
    color: var(--text-light);
}

.page-slot-games__guide-image {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-slot-games__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--card-bg-light-section);
    color: var(--text-dark);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
    background-color: #f0f0f0;
}

.page-slot-games__faq-q-text {
    margin: 0;
    color: var(--text-dark);
}

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
    transform: rotate(45deg);
}

.page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--card-bg-light-section);
    color: #555;
}

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

/* CTA Bottom Section */
.page-slot-games__cta-bottom {
    text-align: center;
}

.page-slot-games__cta-bottom .page-slot-games__section-title {
    margin-bottom: 20px;
}

.page-slot-games__cta-bottom .page-slot-games__section-subtitle {
    margin-bottom: 30px;
}

.page-slot-games__button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Image Styles */
.page-slot-games img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-title {
        font-size: 3em;
    }

    .page-slot-games__hero-description {
        font-size: 1.2em;
    }

    .page-slot-games__games-grid,
    .page-slot-games__benefits-list,
    .page-slot-games__promo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .page-slot-games__guide-content {
        flex-direction: column;
    }

    .page-slot-games__guide-image {
        max-width: 80%;
        margin-top: 40px;
    }

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

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-slot-games__hero-section {
        height: 450px;
        padding-top: 0; /* Assuming shared.css handles body padding-top */
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-slot-games__hero-cta {
        flex-direction: column !important;
        gap: 10px;
        padding: 0 15px;
    }

    /* 产品展示图区域 */
    .page-slot-games__popular-games {
        padding: 40px 0;
    }
    .page-slot-games__games-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .page-slot-games__game-card {
        padding-bottom: 15px;
    }
    .page-slot-games__game-card img {
        
    }
    .page-slot-games__games-grid,
    .page-slot-games__benefits-list,
    .page-slot-games__promo-grid {
        padding: 0 15px;
    }
    .page-slot-games__popular-games .page-slot-games__container,
    .page-slot-games__promotions-section .page-slot-games__container {
        padding: 0;
    }

    /* 通用图片与容器 */
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover;
    }
    .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;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary,
    .page-slot-games__btn-download,
    .page-slot-games__card-button,
    .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__hero-cta,
    .page-slot-games__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column !important;
    }

    /* 其他内容模块 */
    .page-slot-games__intro-section,
    .page-slot-games__benefits-section,
    .page-slot-games__guide-section,
    .page-slot-games__cta-bottom {
        padding: 40px 0;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-slot-games__section-subtitle {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-slot-games__benefits-list {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .page-slot-games__guide-content {
        flex-direction: column;
    }
    .page-slot-games__guide-image {
        max-width: 100%;
        height: auto;
        margin-top: 30px;
    }
    .page-slot-games__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-slot-games__step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .page-slot-games__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px;
    }
    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 10px 20px;
    }
    .page-slot-games__text-block, .page-slot-games__benefit-description, .page-slot-games__promo-description, .page-slot-games__step-description, .page-slot-games__faq-answer p {
        font-size: 0.9em;
    }
}