/* style/slot-games.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark-card: rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-slot-games__hero-content {
    z-index: 1;
    max-width: 800px;
}

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

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

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

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

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

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    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;
    text-align: center;
}

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

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

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

.page-slot-games__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

.page-slot-games__about-section,
.page-slot-games__how-to-play-section,
.page-slot-games__faq-section {
    padding: 80px 0;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.page-slot-games__promotions-section,
.page-slot-games__game-types-section,
.page-slot-games__mobile-section,
.page-slot-games__cta-final {
    padding: 80px 0;
    color: var(--text-light);
    background-color: var(--primary-color);
}

.page-slot-games__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

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

.page-slot-games__feature-item,
.page-slot-games__game-card,
.page-slot-games__promo-card {
    background-color: var(--background-dark-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-slot-games__feature-item {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-slot-games__feature-icon,
.page-slot-games__game-image,
.page-slot-games__promo-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__feature-title,
.page-slot-games__game-title,
.page-slot-games__promo-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-slot-games__feature-description,
.page-slot-games__game-description,
.page-slot-games__promo-description {
    font-size: 1em;
    color: inherit;
}

.page-slot-games__step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    max-width: 800px;
    margin: 50px auto;
}

.page-slot-games__step-item {
    background-color: var(--background-light);
    border: 1px solid #eee;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    color: var(--text-dark);
}

.page-slot-games__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 15px;
}

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

.page-slot-games__step-description {
    font-size: 1em;
    line-height: 1.6;
}

.page-slot-games__mobile-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-slot-games__mobile-content {
    flex: 1;
    min-width: 300px;
}

.page-slot-games__download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-slot-games__mobile-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-slot-games__mobile-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    min-height: 200px;
}

.page-slot-games__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-slot-games__faq-item {
    background-color: var(--background-light);
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    color: var(--text-dark);
}

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

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

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    color: var(--primary-color);
}

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

.page-slot-games__cta-final {
    padding: 100px 0;
    text-align: center;
}

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

.page-slot-games__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-slot-games__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-slot-games__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.3em;
}

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

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-slot-games__hero-title {
        font-size: 2em;
    }
    .page-slot-games__hero-description {
        font-size: 1em;
    }
    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-slot-games__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-slot-games__text-block {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-slot-games__about-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__promotions-section,
    .page-slot-games__game-types-section,
    .page-slot-games__mobile-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final {
        padding: 40px 0;
    }
    .page-slot-games__container {
        padding: 0 15px;
    }
    .page-slot-games__features-grid,
    .page-slot-games__game-grid,
    .page-slot-games__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-slot-games__feature-icon,
    .page-slot-games__game-image,
    .page-slot-games__promo-image,
    .page-slot-games__mobile-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        display: block !important;
    }
    .page-slot-games__feature-item,
    .page-slot-games__game-card,
    .page-slot-games__promo-card {
        padding: 20px;
    }
    .page-slot-games__mobile-flex {
        flex-direction: column;
        gap: 30px;
    }
    .page-slot-games__download-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-slot-games__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-slot-games__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }
    .page-slot-games__cta-title {
        font-size: 1.8em;
    }
    .page-slot-games__cta-description {
        font-size: 1em;
    }
    .page-slot-games__btn-primary--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    /* Ensure all image containers are constrained */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__hero-image-wrapper,
    .page-slot-games__mobile-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-slot-games__download-buttons, .page-slot-games__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-slot-games__download-buttons a, .page-slot-games__cta-buttons a {
        width: 100%;
    }
}