/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-register-text: #FFFF00;
    --button-login-text: #FFFF00;
    --body-bg: #121212; /* From shared.css body background */
}

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

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

.page-slot-games__center {
    text-align: center;
}

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

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    box-sizing: border-box;
}

.page-slot-games__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-slot-games__hero-section .page-slot-games__container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--secondary-color);
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Buttons */
.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-slot-games__btn-primary {
    background-color: var(--button-register-bg);
    color: var(--button-register-text);
    border: 2px solid var(--button-register-bg);
}

.page-slot-games__btn-primary:hover {
    background-color: darken(var(--button-register-bg), 10%);
    border-color: darken(var(--button-register-bg), 10%);
}

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

.page-slot-games__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

/* Section Titles and Descriptions */
.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    line-height: 1.3;
}

.page-slot-games__section-description {
    font-size: 1.1em;
    color: var(--text-color-dark-bg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
}

/* Introduction Section */
.page-slot-games__introduction-section {
    padding: 60px 0;
}

.page-slot-games__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-slot-games__text-block {
    flex: 1;
    min-width: 300px;
}

.page-slot-games__text-block p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color-dark-bg);
}

.page-slot-games__image-block {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-slot-games__image-block img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure no extra space below image */
    margin: 0 auto;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
    padding: 60px 0;
}

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

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

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

.page-slot-games__game-card .page-slot-games__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-slot-games__game-card .page-slot-games__card-title a {
    color: var(--secondary-color);
    text-decoration: none;
}

.page-slot-games__game-card .page-slot-games__card-title a:hover {
    color: var(--primary-color);
}

.page-slot-games__game-card .page-slot-games__card-description {
    font-size: 0.95em;
    line-height: 1.6;
    padding: 0 20px;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

/* Benefits Section */
.page-slot-games__benefits-section {
    padding: 60px 0;
}

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

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

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

.page-slot-games__benefit-item p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color-dark-bg);
}

.page-slot-games__cta-buttons.page-slot-games__center {
    margin-top: 50px;
}

/* Promotion Video Section */
.page-slot-games__promotion-video-section {
    padding: 60px 0;
}

.page-slot-games__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.page-slot-games__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
    padding: 60px 0;
}

.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

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

.page-slot-games__step-item p {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-color-dark-bg);
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 60px 0;
}

.page-slot-games__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-slot-games__faq-item {
    background-color: var(--card-bg-dark-mode);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    color: var(--text-color-dark-bg);
}

.page-slot-games__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    color: var(--secondary-color);
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-slot-games__faq-qtext {
    flex-grow: 1;
}

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

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

.page-slot-games__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-color-dark-bg);
}

/* Final CTA Section */
.page-slot-games__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-slot-games__register-button {
    background-color: var(--button-register-bg);
    color: var(--button-register-text);
    border-color: var(--button-register-bg);
}

.page-slot-games__login-button {
    background-color: var(--button-login-bg);
    color: var(--button-login-text);
    border-color: var(--button-login-bg);
}

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

@media (max-width: 768px) {
    .page-slot-games {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-slot-games__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-slot-games__hero-title {
        font-size: 2.2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-slot-games__content-wrapper {
        flex-direction: column;
    }
    .page-slot-games__image-block img,
    .page-slot-games__game-card img,
    .page-slot-games img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__video-section,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper,
    .page-slot-games__hero-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;
        overflow: hidden !important;
    }
    .page-slot-games__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-slot-games__video-wrapper {
        padding-bottom: 75%; /* Adjust for mobile, e.g., 4:3 aspect ratio */
    }
    .page-slot-games__game-card img {
        height: auto;
    }
    .page-slot-games__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-slot-games__faq-answer {
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__hero-title {
        font-size: 1.8em;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
    }
}

/* Ensure content area images meet minimum size */
.page-slot-games__content-area img {
    min-width: 200px;
    min-height: 200px;
}

/* No filter property allowed */
.page-slot-games img {
    filter: none; /* Explicitly set to none to prevent accidental filters */
}