/* style/slot-games.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-btn-bg: #C30808;
    --login-btn-bg: #C30808;
    --register-login-font: #FFFF00;
    --background-color: #FFFFFF;
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
    --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
    --card-border-dark-mode: rgba(255, 255, 255, 0.2);
}

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

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

.page-slot-games__section-title {
    font-size: 2.5em;
    color: var(--text-color-dark-bg);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-slot-games__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    text-align: center;
    background-color: var(--primary-color);
    overflow: hidden;
    border-bottom: 5px solid var(--secondary-color);
}

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

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

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

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

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

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

/* 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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

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

.page-slot-games__btn-primary:hover {
    background-color: darken(var(--register-btn-bg), 10%);
    border-color: darken(var(--register-btn-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);
}

/* Section backgrounds */
.page-slot-games__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
    padding: 60px 0;
}

.page-slot-games__light-bg {
    background-color: var(--background-color);
    color: var(--text-color-light-bg);
    padding: 60px 0;
}

/* Intro Section */
.page-slot-games__intro-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-slot-games__intro-section a:hover {
    color: darken(var(--primary-color), 10%);
}

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

.page-slot-games__feature-card {
    background-color: var(--card-bg-dark-mode);
    border: 1px solid var(--card-border-dark-mode);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark-bg);
}

.page-slot-games__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__feature-icon {
    width: 100%;
    height: auto;
    max-width: 150px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

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

/* How to Play Section */
.page-slot-games__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-slot-games__step-item {
    background-color: #f8f9fa;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-color-light-bg);
}

.page-slot-games__step-item:last-child {
    margin-bottom: 0;
}

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

.page-slot-games__steps-list p {
    font-size: 1em;
    line-height: 1.6;
}

.page-slot-games__how-to-play-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-slot-games__how-to-play-section a:hover {
    color: darken(var(--primary-color), 10%);
}

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

.page-slot-games__promo-card {
    background-color: var(--card-bg-dark-mode);
    border: 1px solid var(--card-border-dark-mode);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color-dark-bg);
}

.page-slot-games__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-slot-games__promo-description {
    font-size: 1em;
    line-height: 1.5;
    padding: 0 15px;
    margin-bottom: 20px;
}

.page-slot-games__promotions-section a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-slot-games__promotions-section a:hover {
    color: lighten(var(--primary-color), 20%);
}

/* Video Section */
.page-slot-games__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin-top: 40px;
    border-radius: 10px;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.page-slot-games__video-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-slot-games__video-section a:hover {
    color: darken(var(--primary-color), 10%);
}

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

.page-slot-games__faq-item {
    background-color: var(--card-bg-dark-mode);
    border: 1px solid var(--card-border-dark-mode);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-dark-bg);
}

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

.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-out, padding 0.3s ease-out;
}

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

.page-slot-games__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.6;
}

.page-slot-games__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-slot-games__faq-answer a:hover {
    color: lighten(var(--primary-color), 20%);
}

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

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

.page-slot-games__cta-section a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-slot-games__cta-section a:hover {
    color: darken(var(--primary-color), 10%);
}

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

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

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

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        min-height: 500px;
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

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

    .page-slot-games__feature-grid,
    .page-slot-games__promo-cards {
        grid-template-columns: 1fr;
    }

    .page-slot-games__feature-card,
    .page-slot-games__promo-card {
        padding: 20px;
    }

    .page-slot-games__feature-icon {
        max-width: 120px;
    }

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

    .page-slot-games__step-item {
        padding: 20px;
    }

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

    .page-slot-games__faq-answer {
        padding: 0 20px;
    }

    .page-slot-games__faq-item.active .page-slot-games__faq-answer {
        padding: 15px 20px;
    }

    .page-slot-games__container {
        padding: 0 15px;
    }

    /* Image, Video, and Container Mobile Responsiveness */
    .page-slot-games img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games video,
    .page-slot-games__video {
        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__cta-buttons,
    .page-slot-games__button-group,
    .page-slot-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-slot-games__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    .page-slot-games__dark-bg, .page-slot-games__light-bg {
        padding: 40px 0;
    }
}

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

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

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

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        font-size: 1em;
        padding: 10px 15px;
    }

    .page-slot-games__feature-title,
    .page-slot-games__promo-title,
    .page-slot-games__step-title {
        font-size: 1.2em;
    }

    .page-slot-games__faq-question {
        font-size: 1em;
    }
}