/* style/index-game-features.css */

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

/* Base styles for page-index-game-features */
.page-index-game-features {
    font-family: Arial, sans-serif;
    color: var(--max79-text-main); /* Default text color for dark background */
    background-color: var(--max79-background); /* Body background from shared.css */
}

/* Headings */
.page-index-game-features h1,
.page-index-game-features h2,
.page-index-game-features h3,
.page-index-game-features h4,
.page-index-game-features h5,
.page-index-game-features h6 {
    color: var(--max79-text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.page-index-game-features__hero-title {
    font-weight: 700;
    line-height: 1.1;
    max-width: 900px;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* H1 with clamp */
}

.page-index-game-features__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 30px;
    text-align: center;
    color: var(--max79-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-index-game-features__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--max79-secondary);
}

/* Paragraphs and Lists */
.page-index-game-features p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--max79-text-secondary);
}

.page-index-game-features__text-block {
    color: var(--max79-text-secondary);
}

.page-index-game-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-index-game-features li {
    margin-bottom: 10px;
    color: var(--max79-text-secondary);
}

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

.page-index-game-features__btn-primary {
    background: var(--max79-button-gradient);
    color: var(--max79-text-main);
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index-game-features__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-index-game-features__btn-secondary {
    background: transparent;
    color: var(--max79-secondary);
    border: 2px solid var(--max79-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-index-game-features__btn-secondary:hover {
    background-color: rgba(34, 199, 104, 0.1);
    color: var(--max79-text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index-game-features__cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-index-game-features__card-btn {
    margin-top: auto; /* Push button to bottom of card */
}

/* Sections and Containers */
.page-index-game-features__section {
    padding: 60px 0;
    position: relative;
}

.page-index-game-features__dark-section {
    background-color: var(--max79-background);
}

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

.page-index-game-features__text-center {
    text-align: center;
}

/* Hero Section */
.page-index-game-features__hero-section {
    padding: 0; /* Remove default padding as image and content are separate */
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding for visual separation */
}

.page-index-game-features__hero-image-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text content */
}

.page-index-game-features__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px;
    max-height: 675px;
}

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

.page-index-game-features__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--max79-text-secondary);
}

/* Cards */
.page-index-game-features__card {
    background-color: var(--max79-card-bg);
    border: 1px solid var(--max79-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    box-sizing: border-box;
}

.page-index-game-features__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-index-game-features__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-index-game-features__card-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--max79-gold);
    text-decoration: none;
}

.page-index-game-features__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-index-game-features__card-title a:hover {
    text-decoration: underline;
}

.page-index-game-features__card-description {
    font-size: 0.95rem;
    color: var(--max79-text-secondary);
    flex-grow: 1;
}

/* Game Grid */
.page-index-game-features__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Tech Grid */
.page-index-game-features__tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-index-game-features__tech-item .page-index-game-features__card-image {
    height: 180px;
}

/* Promotion List */
.page-index-game-features__promotion-list,
.page-index-game-features__support-list,
.page-index-game-features__why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0;
    list-style: none;
}

/* FAQ Section */
.page-index-game-features__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-index-game-features__faq-item {
    background-color: var(--max79-card-bg);
    border: 1px solid var(--max79-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-index-game-features__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--max79-text-main);
    cursor: pointer;
    background-color: rgba(17, 168, 78, 0.1);
    border-bottom: 1px solid var(--max79-divider);
    transition: background-color 0.3s ease;
}

.page-index-game-features__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

.page-index-game-features__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--max79-gold);
}

.page-index-game-features__faq-item[open] .page-index-game-features__faq-toggle {
    transform: rotate(45deg);
}

.page-index-game-features__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--max79-text-secondary);
}

.page-index-game-features__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-game-features__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-game-features__hero-image {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-index-game-features__section {
        padding: 40px 0;
    }

    .page-index-game-features__hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .page-index-game-features__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-index-game-features__sub-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .page-index-game-features__hero-description,
    .page-index-game-features p,
    .page-index-game-features li,
    .page-index-game-features__card-description,
    .page-index-game-features__faq-answer {
        font-size: 15px;
        line-height: 1.5;
    }

    .page-index-game-features__btn-primary,
    .page-index-game-features__btn-secondary {
        padding: 10px 20px;
        font-size: 0.95rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-index-game-features__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-index-game-features__container {
        padding: 0 15px;
    }

    .page-index-game-features__hero-image {
        max-height: 400px;
    }

    /* Image Responsive */
    .page-index-game-features img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-index-game-features__section,
    .page-index-game-features__card,
    .page-index-game-features__container,
    .page-index-game-features__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
    /* Specific override for hero-section to avoid double padding */
    .page-index-game-features__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 10px !important;
    }
    .page-index-game-features__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-index-game-features__card-image {
        height: auto;
        min-height: 200px; /* Ensure minimum size */
    }

    .page-index-game-features__game-grid,
    .page-index-game-features__tech-grid,
    .page-index-game-features__promotion-list,
    .page-index-game-features__support-list,
    .page-index-game-features__why-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-game-features__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-index-game-features__faq-answer {
        padding: 10px 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-index-game-features__hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }

    .page-index-game-features__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-index-game-features__hero-description {
        font-size: 14px;
    }

    .page-index-game-features__card-title {
        font-size: 1.2rem;
    }

    .page-index-game-features__card-description {
        font-size: 0.9rem;
    }
}