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

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

    /* Contrast-safe colors for light/dark backgrounds */
    --text-on-dark: #F2FFF6; /* Use text-main for dark backgrounds */
    --text-on-light: #11271B; /* Dark text for light backgrounds */
}

/* Base styles for the page content */
.page-index-game-overview {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-on-dark); /* Default text color for the entire main content, assuming body is dark */
    background-color: var(--background-color); /* Specific background for this page's main content */
}

.page-index-game-overview__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    color: var(--text-on-dark);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-index-game-overview__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-index-game-overview__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
    display: block;
}

.page-index-game-overview__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    margin-top: 50px; /* Push content down over the image */
}

.page-index-game-overview__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-index-game-overview__hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

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

.page-index-game-overview__btn-primary,
.page-index-game-overview__btn-secondary,
.page-index-game-overview__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-index-game-overview__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* Contrast with gradient */
    border: none;
}

.page-index-game-overview__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index-game-overview__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
}

.page-index-game-overview__btn-secondary:hover {
    background: var(--gold-color);
    color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index-game-overview__btn-tertiary {
    background: var(--deep-green);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.page-index-game-overview__btn-tertiary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* General Section Styles */
.page-index-game-overview__game-categories,
.page-index-game-overview__advantages-section,
.page-index-game-overview__faq-section {
    padding: 80px 20px;
    text-align: center;
    color: var(--text-on-dark);
    box-sizing: border-box;
}

.page-index-game-overview__dark-section {
    background-color: var(--background-color);
    color: var(--text-on-dark);
}

.page-index-game-overview__light-bg {
    background-color: var(--card-bg); /* Using card-bg for a slightly lighter dark background */
    color: var(--text-on-dark);
}

.page-index-game-overview__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-index-game-overview__section-description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-secondary);
}

/* Game Category Grid */
.page-index-game-overview__category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-index-game-overview__category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-index-game-overview__category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-index-game-overview__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-index-game-overview__category-card .page-index-game-overview__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 20px 20px 10px 20px;
    color: var(--text-main);
}

.page-index-game-overview__category-card .page-index-game-overview__card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-index-game-overview__category-card .page-index-game-overview__card-title a:hover {
    color: var(--gold-color);
}

.page-index-game-overview__card-text {
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-index-game-overview__category-card .page-index-game-overview__btn-tertiary {
    margin: 0 20px 20px 20px;
    align-self: flex-start;
}


/* Advantages Section */
.page-index-game-overview__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.page-index-game-overview__advantage-item {
    background-color: var(--deep-green);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-index-game-overview__advantage-item:hover {
    transform: translateY(-5px);
}

.page-index-game-overview__advantage-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain; /* Ensure full icon is visible */
}

.page-index-game-overview__advantage-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-main);
}

.page-index-game-overview__advantage-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* CTA Section */
.page-index-game-overview__cta-section {
    background-color: var(--deep-green);
    border-radius: 15px;
    padding: 50px 30px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-index-game-overview__cta-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--gold-color);
}

.page-index-game-overview__cta-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

/* FAQ Section */
.page-index-game-overview__faq-section {
    background-color: var(--background-color);
    color: var(--text-on-dark);
}

.page-index-game-overview__faq-list {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.page-index-game-overview__faq-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.page-index-game-overview__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    user-select: none;
}

.page-index-game-overview__faq-item[open] .page-index-game-overview__faq-question {
    border-bottom: 1px solid var(--border-color);
}

.page-index-game-overview__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-index-game-overview__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 20px;
    text-align: center;
    color: var(--gold-color);
}

.page-index-game-overview__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    background-color: var(--card-bg);
}

.page-index-game-overview__faq-answer p {
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-index-game-overview__hero-content {
        max-width: 700px;
    }

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

    .page-index-game-overview__hero-description {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    /* Mobile image/video/button responsive rules */
    .page-index-game-overview img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-index-game-overview__category-card .page-index-game-overview__card-image {
        height: 200px; /* Adjust card image height for mobile */
    }

    .page-index-game-overview__advantage-icon {
        width: 200px !important;
        height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
        object-fit: contain !important;
    }

    .page-index-game-overview__section,
    .page-index-game-overview__card,
    .page-index-game-overview__container,
    .page-index-game-overview__game-categories,
    .page-index-game-overview__advantages-section,
    .page-index-game-overview__faq-section,
    .page-index-game-overview__cta-section,
    .page-index-game-overview__category-card,
    .page-index-game-overview__advantage-item,
    .page-index-game-overview__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    
    /* Buttons */
    .page-index-game-overview__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-index-game-overview__btn-primary,
    .page-index-game-overview__btn-secondary,
    .page-index-game-overview__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-index-game-overview__hero-section {
        padding-bottom: 40px;
    }

    .page-index-game-overview__hero-content {
        margin-top: 20px;
    }

    .page-index-game-overview__main-title {
        font-size: 2rem;
    }

    .page-index-game-overview__hero-description {
        font-size: 1rem;
    }

    .page-index-game-overview__section-title {
        font-size: 1.8rem;
    }

    .page-index-game-overview__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-index-game-overview__category-grid,
    .page-index-game-overview__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-index-game-overview__category-card,
    .page-index-game-overview__advantage-item {
        padding: 20px;
    }
    
    .page-index-game-overview__category-card .page-index-game-overview__card-title {
        font-size: 1.3rem;
    }

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

    .page-index-game-overview__cta-section {
        padding: 40px 20px;
    }

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

    .page-index-game-overview__faq-answer {
        font-size: 0.95rem;
        padding: 15px;
    }
}