/* style/slot-games.css */

/* Base styles and variables */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --background-dark: #121212;
    --text-light: #ffffff;
    --text-dark: #333333;
    --button-register-login-bg: #C30808;
    --button-register-login-text: #FFFFFF; /* Adjusted for WCAG AA contrast on #C30808 background */
    --section-padding: 60px 20px;
    --container-max-width: 1200px;
}

.page-slot-games {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--background-dark); /* Inherited from shared, but for clarity */
    line-height: 1.6;
}

.page-slot-games__section {
    padding: var(--section-padding);
    text-align: center;
}

.page-slot-games__container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.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__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: var(--secondary-color);
    line-height: 1.2;
}

.page-slot-games__dark-bg .page-slot-games__section-title {
    color: var(--secondary-color);
}

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

.page-slot-games__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-light);
}

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

.page-slot-games__highlight {
    color: var(--button-register-login-text); /* Using yellow for highlight as per specific request */
    font-weight: bold;
}

.page-slot-games__link-inline {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-slot-games__link-inline:hover {
    color: var(--button-register-login-text);
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: var(--primary-color);
    overflow: hidden;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

.page-slot-games__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

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

.page-slot-games__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
    line-height: 1.1;
}

.page-slot-games__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

.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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background-color: var(--button-register-login-bg);
    color: var(--button-register-login-text); /* Adjusted for WCAG AA contrast */
    border: 2px solid var(--button-register-login-bg);
}

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

.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-small {
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 15px;
}

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

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

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

.page-slot-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-slot-games__game-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

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

.page-slot-games__game-card-description {
    font-size: 0.95em;
    padding: 0 15px;
    color: var(--text-light);
}

/* Benefit List */
.page-slot-games__benefit-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-slot-games__benefit-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    color: var(--text-light);
}

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

/* How-To Steps */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-slot-games__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-slot-games__promo-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    color: var(--text-light);
}

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

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

.page-slot-games__tip-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    color: var(--text-light);
}

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

/* FAQ */
.page-slot-games__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-slot-games__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
    color: var(--secondary-color);
}

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--button-register-login-text); /* Using yellow for toggle icon */
}

.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;
    color: var(--text-light);
}

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

.page-slot-games__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
}

/* Final CTA Section */
.page-slot-games__cta-final {
    padding: 80px 20px;
    background-color: var(--primary-color);
}

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

.page-slot-games__cta-content .page-slot-games__section-title {
    font-size: 3em;
    margin-bottom: 25px;
}

.page-slot-games__cta-content .page-slot-games__text-block {
    font-size: 1.2em;
    margin-bottom: 40px;
}

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

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: 500px;
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-slot-games__hero-title {
        font-size: 2.2em;
    }

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-slot-games__section {
        padding: 40px 15px;
    }

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

    .page-slot-games__text-block {
        font-size: 0.95em;
    }

    .page-slot-games__game-grid,
    .page-slot-games__benefit-list,
    .page-slot-games__steps-list,
    .page-slot-games__promo-list,
    .page-slot-games__tips-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-slot-games__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .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__cta-final {
        padding: 60px 15px;
    }

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

    .page-slot-games__cta-content .page-slot-games__text-block {
        font-size: 1em;
    }

    /* Ensure all images are responsive */
    .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__game-card,
    .page-slot-games__benefit-item,
    .page-slot-games__step-item,
    .page-slot-games__promo-item,
    .page-slot-games__tip-item,
    .page-slot-games__faq-item,
    .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;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

/* CSS for color contrast fix if needed */
.page-slot-games__contrast-fix {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #e0e0e0 !important;
}

.page-slot-games__text-contrast-fix {
    color: #333333 !important;
    text-shadow: none !important;
}