/* style/slot-games.css */

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

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

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

.page-slot-games__section-title {
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    color: var(--kwin-gold);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-slot-games__text-block {
    font-size: 16px;
    line-height: 1.7;
    color: var(--kwin-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-slot-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body already handles padding-top */
    overflow: hidden;
    background: var(--kwin-deep-green);
}

.page-slot-games__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.page-slot-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly dim the image for text readability */
}

.page-slot-games__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-slot-games__main-title {
    font-size: clamp(32px, 4.5vw, 64px); /* Use clamp for H1 */
    font-weight: 900;
    color: var(--kwin-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__description {
    font-size: 18px;
    color: var(--kwin-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.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: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-slot-games__btn-primary {
    background: var(--kwin-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-slot-games__btn-secondary:hover {
    background: var(--kwin-primary);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Intro Section */
.page-slot-games__intro-section {
    padding: 80px 0;
    background-color: var(--kwin-background);
}

/* Features Section */
.page-slot-games__features-section {
    padding: 80px 0;
    background-color: var(--kwin-card-bg);
    border-top: 1px solid var(--kwin-divider);
    border-bottom: 1px solid var(--kwin-divider);
}

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

.page-slot-games__feature-card {
    background-color: var(--kwin-deep-green);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--kwin-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.page-slot-games__feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-slot-games__feature-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--kwin-gold);
    margin-bottom: 15px;
}

.page-slot-games__feature-description {
    font-size: 15px;
    color: var(--kwin-text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

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

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

.page-slot-games__step-card {
    background-color: var(--kwin-deep-green);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--kwin-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.page-slot-games__step-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--kwin-gold);
    margin-bottom: 15px;
}

.page-slot-games__step-description {
    font-size: 15px;
    color: var(--kwin-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-slot-games__step-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    object-fit: cover;
}

.page-slot-games__btn-small {
    padding: 10px 20px;
    font-size: 16px;
    margin-top: auto;
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
    padding: 80px 0;
    background-color: var(--kwin-card-bg);
    border-top: 1px solid var(--kwin-divider);
    border-bottom: 1px solid var(--kwin-divider);
}

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

.page-slot-games__game-card {
    background-color: var(--kwin-deep-green);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--kwin-border);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

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

.page-slot-games__game-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-slot-games__game-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--kwin-gold);
    margin-bottom: 10px;
}

.page-slot-games__game-description {
    font-size: 14px;
    color: var(--kwin-text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-slot-games__view-all-cta {
    text-align: center;
    margin-top: 50px;
}

/* Bonuses Section */
.page-slot-games__bonuses-section {
    padding: 80px 0;
    background-color: var(--kwin-background);
}

.page-slot-games__bonuses-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: center;
}

.page-slot-games__bonus-item {
    font-size: 18px;
    color: var(--kwin-text-main);
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-slot-games__bonus-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--kwin-glow);
    font-size: 20px;
    line-height: 1;
}

/* Mobile Section */
.page-slot-games__mobile-section {
    padding: 80px 0;
    background-color: var(--kwin-card-bg);
    border-top: 1px solid var(--kwin-divider);
}

.page-slot-games__mobile-content {
    text-align: center;
    margin-bottom: 40px;
}

.page-slot-games__mobile-image-wrapper {
    text-align: center;
}

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

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

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

.page-slot-games__faq-item {
    background-color: var(--kwin-deep-green);
    border: 1px solid var(--kwin-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--kwin-text-main);
}

.page-slot-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--kwin-deep-green);
    color: var(--kwin-gold);
    user-select: none;
    position: relative;
    list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-toggle {
    font-size: 24px;
    line-height: 1;
    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 20px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--kwin-text-secondary);
}

/* Final CTA Section */
.page-slot-games__cta-final-section {
    padding: 80px 0;
    background-color: var(--kwin-deep-green);
    text-align: center;
    border-top: 1px solid var(--kwin-divider);
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-slot-games__mobile-section .page-slot-games__container {
        display: flex;
        align-items: center;
        gap: 50px;
    }

    .page-slot-games__mobile-content {
        flex: 1;
        text-align: left;
        margin-bottom: 0;
    }

    .page-slot-games__mobile-image-wrapper {
        flex: 1;
        text-align: right;
    }
}

@media (max-width: 768px) {
    .page-slot-games__hero-section {
        padding: 10px 0 40px 0;
    }

    .page-slot-games__main-title {
        font-size: clamp(28px, 8vw, 48px);
    }

    .page-slot-games__description {
        font-size: 16px;
        padding: 0 10px;
    }

    .page-slot-games__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

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

    .page-slot-games__section-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 30px;
    }

    .page-slot-games__text-block {
        font-size: 15px;
    }

    .page-slot-games__intro-section,
    .page-slot-games__features-section,
    .page-slot-games__how-to-play-section,
    .page-slot-games__popular-games-section,
    .page-slot-games__bonuses-section,
    .page-slot-games__mobile-section,
    .page-slot-games__faq-section,
    .page-slot-games__cta-final-section {
        padding: 50px 0;
    }

    .page-slot-games__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image, video, and container adaptations */
    .page-slot-games img {
        max-width: 100% !important;
        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;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-slot-games__video-section {
        padding-top: 10px !important;
    }

    .page-slot-games__game-image {
        height: 150px; /* Adjust height for smaller screens */
    }

    .page-slot-games__faq-question {
        font-size: 16px;
        padding: 15px;
    }

    .page-slot-games__faq-answer {
        font-size: 14px;
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-slot-games__features-grid,
    .page-slot-games__steps-grid,
    .page-slot-games__games-grid {
        grid-template-columns: 1fr;
    }
}