/* style/index-featured-games.css */

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

.page-index-featured-games {
    background-color: var(--dk-win55-background);
    color: var(--dk-win55-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 10px; /* body already handles --header-offset */
}

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

/* Hero Section */
.page-index-featured-games__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 40px;
    overflow: hidden;
}

.page-index-featured-games__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

.page-index-featured-games__hero-content {
    position: relative; /* Relative positioning for content below image */
    text-align: center;
    padding: 40px 20px;
    background-color: var(--dk-win55-background);
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.page-index-featured-games__hero-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--dk-win55-gold);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-index-featured-games__hero-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: var(--dk-win55-text-main);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-index-featured-games__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-index-featured-games__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--dk-win55-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-index-featured-games__section-description {
    font-size: 1.1em;
    color: var(--dk-win55-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-index-featured-games__btn-primary,
.page-index-featured-games__btn-secondary,
.page-index-featured-games__btn-tertiary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-index-featured-games__btn-primary {
    background: var(--dk-win55-button-gradient);
    color: var(--dk-win55-text-main);
    border: 2px solid var(--dk-win55-glow);
    box-shadow: 0 0 15px var(--dk-win55-glow);
}

.page-index-featured-games__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--dk-win55-glow);
}

.page-index-featured-games__btn-secondary {
    background-color: transparent;
    color: var(--dk-win55-gold);
    border: 2px solid var(--dk-win55-gold);
}

.page-index-featured-games__btn-secondary:hover {
    background-color: var(--dk-win55-gold);
    color: var(--dk-win55-background);
    transform: translateY(-3px);
}

.page-index-featured-games__btn-tertiary {
    background-color: var(--dk-win55-deep-green);
    color: var(--dk-win55-text-main);
    border: 1px solid var(--dk-win55-border);
}

.page-index-featured-games__btn-tertiary:hover {
    background-color: var(--dk-win55-primary);
    transform: translateY(-2px);
}

.page-index-featured-games__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    max-width: 300px;
}

/* About Section */
.page-index-featured-games__about-section {
    padding: 60px 0;
    background-color: var(--dk-win55-card-bg);
    margin-bottom: 40px;
}

.page-index-featured-games__about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-index-featured-games__about-text p {
    color: var(--dk-win55-text-secondary);
    margin-bottom: 15px;
}

.page-index-featured-games__about-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    /* No filter allowed */
}

/* Games Section */
.page-index-featured-games__games-section {
    padding: 60px 0;
}

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

.page-index-featured-games__game-card {
    background-color: var(--dk-win55-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-featured-games__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.page-index-featured-games__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    /* No filter allowed */
}

.page-index-featured-games__game-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 200px); /* Adjust height based on image */
}

.page-index-featured-games__game-title {
    font-size: 1.4em;
    color: var(--dk-win55-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index-featured-games__game-description {
    color: var(--dk-win55-text-secondary);
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Advantages Section */
.page-index-featured-games__advantages-section {
    padding: 60px 0;
    background-color: var(--dk-win55-deep-green);
    margin-bottom: 40px;
}

.page-index-featured-games__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-index-featured-games__advantage-item {
    background-color: var(--dk-win55-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--dk-win55-border);
}

.page-index-featured-games__advantage-title {
    font-size: 1.3em;
    color: var(--dk-win55-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index-featured-games__advantage-description {
    color: var(--dk-win55-text-secondary);
    font-size: 0.95em;
}

.page-index-featured-games__advantages-image {
    width: 100%;
    height: auto;
    max-width: 900px;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    /* No filter allowed */
}

/* How to Join Section */
.page-index-featured-games__how-to-join-section {
    padding: 60px 0;
}

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

.page-index-featured-games__step-item {
    background-color: var(--dk-win55-card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--dk-win55-border);
}

.page-index-featured-games__step-icon {
    width: 60px;
    height: 60px;
    background: var(--dk-win55-button-gradient);
    color: var(--dk-win55-text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin: 0 auto 20px auto;
    box-shadow: 0 0 10px var(--dk-win55-glow);
}

.page-index-featured-games__step-title {
    font-size: 1.3em;
    color: var(--dk-win55-gold);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-index-featured-games__step-description {
    color: var(--dk-win55-text-secondary);
    font-size: 0.95em;
}

.page-index-featured-games__how-to-join-image {
    width: 100%;
    height: auto;
    max-width: 900px;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    /* No filter allowed */
}

/* FAQ Section */
.page-index-featured-games__faq-section {
    padding: 60px 0;
    background-color: var(--dk-win55-card-bg);
    margin-bottom: 40px;
}

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

.page-index-featured-games__faq-item {
    background-color: var(--dk-win55-background);
    border: 1px solid var(--dk-win55-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-index-featured-games__faq-item[open] {
    background-color: var(--dk-win55-deep-green);
}

.page-index-featured-games__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--dk-win55-text-main);
    background-color: var(--dk-win55-card-bg);
    border-bottom: 1px solid transparent; /* default */
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-index-featured-games__faq-item[open] .page-index-featured-games__faq-question {
    background-color: var(--dk-win55-deep-green);
    border-bottom-color: var(--dk-win55-divider);
    color: var(--dk-win55-gold);
}

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

.page-index-featured-games__faq-question:hover {
    background-color: var(--dk-win55-deep-green);
}

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

.page-index-featured-games__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--dk-win55-gold);
}

.page-index-featured-games__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--dk-win55-text-secondary);
}

.page-index-featured-games__faq-answer p {
    margin: 0;
}

/* CTA Bottom Section */
.page-index-featured-games__cta-section-bottom {
    padding: 60px 0 80px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-index-featured-games__hero-content {
        padding: 30px 20px;
    }

    .page-index-featured-games__about-grid {
        grid-template-columns: 1fr;
    }

    .page-index-featured-games__about-image {
        order: -1; /* Image appears above text on smaller screens */
        margin-bottom: 30px;
    }

    .page-index-featured-games__advantages-grid,
    .page-index-featured-games__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-index-featured-games__game-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-index-featured-games {
        font-size: 16px;
        line-height: 1.6;
    }

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

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

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

    .page-index-featured-games__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-featured-games__btn-primary,
    .page-index-featured-games__btn-secondary,
    .page-index-featured-games__btn-tertiary {
        padding: 12px 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }

    .page-index-featured-games__about-section,
    .page-index-featured-games__games-section,
    .page-index-featured-games__advantages-section,
    .page-index-featured-games__how-to-join-section,
    .page-index-featured-games__faq-section,
    .page-index-featured-games__cta-section-bottom {
        padding: 40px 0;
    }

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

    .page-index-featured-games__section-description {
        font-size: 0.95em;
    }

    .page-index-featured-games__game-grid {
        grid-template-columns: 1fr;
    }

    .page-index-featured-games__game-image {
        height: 200px;
    }

    .page-index-featured-games__advantages-grid,
    .page-index-featured-games__steps-grid {
        grid-template-columns: 1fr;
    }

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

    .page-index-featured-games__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Image/Video responsiveness (General) */
    .page-index-featured-games img,
    .page-index-featured-games video,
    .page-index-featured-games__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Containers for images/videos/buttons */
    .page-index-featured-games__section,
    .page-index-featured-games__card,
    .page-index-featured-games__container,
    .page-index-featured-games__video-section,
    .page-index-featured-games__video-container,
    .page-index-featured-games__video-wrapper,
    .page-index-featured-games__cta-buttons,
    .page-index-featured-games__button-group,
    .page-index-featured-games__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Special handling for hero image container to remove extra padding on mobile */
    .page-index-featured-games__hero-section {
        padding: 0 !important;
    }
    .page-index-featured-games__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-index-featured-games__hero-buttons {
        gap: 10px;
    }
}

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

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

    .page-index-featured-games__hero-content {
        padding: 20px 15px;
    }
    .page-index-featured-games__hero-description {
        margin-bottom: 20px;
    }
}