/* style/slot-games.css */

/* Custom Colors */
:root {
    --page-slot-games-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-slot-games-card-bg: #11271B;
    --page-slot-games-background: #08160F;
    --page-slot-games-text-main: #F2FFF6;
    --page-slot-games-text-secondary: #A7D9B8;
    --page-slot-games-border: #2E7A4E;
    --page-slot-games-glow: #57E38D;
    --page-slot-games-gold: #F2C14E;
    --page-slot-games-divider: #1E3A2A;
    --page-slot-games-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-slot-games {
    color: var(--page-slot-games-text-main); /* Default text color for dark background */
    background-color: var(--page-slot-games-background);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-slot-games__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: 700;
    color: var(--page-slot-games-text-main);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-slot-games__section-intro {
    font-size: 1.1em;
    color: var(--page-slot-games-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-slot-games__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    font-weight: 900;
    line-height: 1.2;
    color: var(--page-slot-games-gold);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-slot-games__description {
    font-size: 1.2em;
    color: var(--page-slot-games-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-slot-games__card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--page-slot-games-text-main);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-slot-games__card {
    background-color: var(--page-slot-games-card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-slot-games-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--page-slot-games-glow);
}

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--page-slot-games-button-gradient);
    color: var(--page-slot-games-text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--page-slot-games-glow);
}

.page-slot-games__btn-secondary {
    background-color: transparent;
    color: var(--page-slot-games-text-main);
    border: 2px solid var(--page-slot-games-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-slot-games__btn-secondary:hover {
    background-color: rgba(46, 122, 78, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 10px var(--page-slot-games-glow);
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    min-height: 600px;
    overflow: hidden;
    background-color: var(--page-slot-games-deep-green);
}

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

.page-slot-games__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(8, 22, 15, 0.7); /* Semi-transparent dark background */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--page-slot-games-border);
}

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

/* About Section */
.page-slot-games__about-section {
    padding: 80px 0;
    background-color: var(--page-slot-games-card-bg);
}

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

.page-slot-games__feature-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__feature-icon {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--page-slot-games-border);
}

/* Popular Games Section */
.page-slot-games__popular-games {
    padding: 80px 0;
    background-color: var(--page-slot-games-background);
}

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

.page-slot-games__game-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--page-slot-games-border);
}

/* How to Play Section */
.page-slot-games__how-to-play {
    padding: 80px 0;
    background-color: var(--page-slot-games-card-bg);
}

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

.page-slot-games__step-item {
    background-color: var(--page-slot-games-deep-green);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-slot-games-border);
}

.page-slot-games__step-number {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--page-slot-games-gold);
    margin-bottom: 15px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.6);
}

.page-slot-games__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-slot-games__promotions {
    padding: 80px 0;
    background-color: var(--page-slot-games-background);
}

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

.page-slot-games__promo-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-slot-games__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--page-slot-games-border);
}

/* App Section */
.page-slot-games__app-section {
    padding: 80px 0;
    background-color: var(--page-slot-games-card-bg);
}

.page-slot-games__app-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.page-slot-games__app-text {
    flex: 1;
    min-width: 300px;
}

.page-slot-games__app-benefits-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
    color: var(--page-slot-games-text-secondary);
}

.page-slot-games__app-benefits-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-slot-games__app-benefits-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--page-slot-games-glow);
}

.page-slot-games__video-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding-bottom: 45%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--page-slot-games-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    width: 100%; /* Ensure desktop width is 100% within its flex container */
    max-width: 100%;
}

.page-slot-games__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* FAQ Section */
.page-slot-games__faq-section {
    padding: 80px 0;
    background-color: var(--page-slot-games-background);
}

.page-slot-games__faq-list {
    margin-top: 50px;
}

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

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.2em;
    color: var(--page-slot-games-text-main);
    background-color: var(--page-slot-games-deep-green);
    border-bottom: 1px solid var(--page-slot-games-divider);
    list-style: none; /* For details/summary */
}

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

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

.page-slot-games__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--page-slot-games-gold);
}

.page-slot-games__faq-answer {
    padding: 20px 25px;
    color: var(--page-slot-games-text-secondary);
    font-size: 1.05em;
    border-top: 1px solid var(--page-slot-games-divider);
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
    border-bottom: none;
}

/* Fallback for div-based FAQ (if used) */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
    max-height: 2000px; /* Ample height for content */
    transition: max-height 0.5s ease-in-out;
}

.page-slot-games__faq-item:not(.active) .page-slot-games__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* Final CTA Section */
.page-slot-games__final-cta {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-slot-games-card-bg);
}

.page-slot-games__final-cta .page-slot-games__description {
    margin-bottom: 40px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-slot-games__hero-content {
        padding: 15px;
    }
    .page-slot-games__main-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }
    .page-slot-games__description {
        font-size: 1.1em;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.8em, 3.5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-slot-games__container {
        padding: 0 15px;
    }

    .page-slot-games__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important;
        min-height: 450px;
    }

    .page-slot-games__hero-content {
        padding: 15px;
    }

    .page-slot-games__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

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

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }

    .page-slot-games__btn-primary,
    .page-slot-games__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-slot-games__about-section,
    .page-slot-games__popular-games,
    .page-slot-games__how-to-play,
    .page-slot-games__promotions,
    .page-slot-games__app-section,
    .page-slot-games__faq-section,
    .page-slot-games__final-cta {
        padding: 50px 0;
    }

    .page-slot-games__section-title {
        font-size: clamp(1.6em, 5vw, 2em);
    }

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

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

    .page-slot-games__feature-icon,
    .page-slot-games__game-image,
    .page-slot-games__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-slot-games__app-layout {
        flex-direction: column;
        gap: 30px;
    }

    .page-slot-games__video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-slot-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all containing elements for images/videos/buttons are responsive */
    .page-slot-games__section,
    .page-slot-games__card,
    .page-slot-games__container,
    .page-slot-games__cta-buttons,
    .page-slot-games__app-layout,
    .page-slot-games__video-container,
    .page-slot-games__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Override specific padding for sections that might have it */
    .page-slot-games__about-section .page-slot-games__container,
    .page-slot-games__popular-games .page-slot-games__container,
    .page-slot-games__how-to-play .page-slot-games__container,
    .page-slot-games__promotions .page-slot-games__container,
    .page-slot-games__app-section .page-slot-games__container,
    .page-slot-games__faq-section .page-slot-games__container,
    .page-slot-games__final-cta .page-slot-games__container {
        padding-left: 0;
        padding-right: 0;
    }

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

    .page-slot-games__faq-question,
    .page-slot-games__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-slot-games__description {
        font-size: 0.95em;
    }
    .page-slot-games__section-title {
        font-size: clamp(1.4em, 6vw, 1.8em);
    }
    .page-slot-games__feature-card,
    .page-slot-games__game-card,
    .page-slot-games__promo-card,
    .page-slot-games__step-item {
        padding: 15px;
    }
    .page-slot-games__step-number {
        font-size: 2em;
    }
}