/* style/game-guides.css */

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

.page-game-guides {
    background-color: var(--page-game-guides-background-color);
    color: var(--page-game-guides-text-main);
    font-family: 'Arial', sans-serif;
}

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

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Minimal top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
    background-color: var(--page-game-guides-deep-green-color);
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Enforce min image size */
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: 30px;
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--page-game-guides-text-main);
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-game-guides__intro-text {
    font-size: 1.2rem;
    color: var(--page-game-guides-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* General Section Styling */
.page-game-guides__section {
    padding: 60px 0;
    background-color: var(--page-game-guides-background-color);
    border-bottom: 1px solid var(--page-game-guides-divider-color);
}

.page-game-guides__section:last-of-type {
    border-bottom: none;
}

.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--page-game-guides-primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(34, 199, 104, 0.3);
}

.page-game-guides__sub-title {
    font-size: 1.8rem;
    color: var(--page-game-guides-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-guides__paragraph {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--page-game-guides-text-secondary);
    margin-bottom: 20px;
}

.page-game-guides__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-game-guides__list-item {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--page-game-guides-text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-game-guides__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--page-game-guides-primary-color);
}

.page-game-guides__image-content {
    width: 100%;
    height: auto;
    max-width: 1000px; /* Recommended content image size */
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-height: 200px; /* Enforce min image size */
    object-fit: cover;
}

/* Call to Action Buttons */
.page-game-guides__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-game-guides__btn-primary {
    background: var(--page-game-guides-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-game-guides__btn-secondary {
    background: transparent;
    color: var(--page-game-guides-primary-color);
    border: 2px solid var(--page-game-guides-primary-color);
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--page-game-guides-primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-game-guides__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-game-guides__cta-bottom {
    text-align: center;
    background-color: var(--page-game-guides-deep-green-color);
    padding: 80px 0;
}

.page-game-guides__cta-bottom .page-game-guides__section-title {
    color: var(--page-game-guides-gold-color);
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-game-guides__cta-bottom .page-game-guides__paragraph {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-game-guides__faq-section {
    background-color: var(--page-game-guides-card-bg);
}

.page-game-guides__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-game-guides__faq-item {
    background-color: var(--page-game-guides-background-color);
    border: 1px solid var(--page-game-guides-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-game-guides-text-main);
    cursor: pointer;
    background-color: var(--page-game-guides-deep-green-color);
    border-bottom: 1px solid var(--page-game-guides-border-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
    display: none;
}

.page-game-guides__faq-question:hover {
    background-color: var(--page-game-guides-primary-color);
}

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--page-game-guides-gold-color);
    transition: transform 0.3s ease;
}

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

.page-game-guides__faq-answer {
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--page-game-guides-text-secondary);
    border-top: 1px solid var(--page-game-guides-divider-color);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-answer {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Links within content */
.page-game-guides a {
    color: var(--page-game-guides-gold-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-game-guides a:hover {
    color: var(--page-game-guides-glow-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

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

    .page-game-guides__sub-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }

    .page-game-guides__hero-content {
        padding: 20px 15px;
        margin-top: 20px;
    }

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

    .page-game-guides__intro-text {
        font-size: 1rem;
    }

    .page-game-guides__section {
        padding: 40px 0;
    }

    .page-game-guides__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-game-guides__sub-title {
        font-size: 1.4rem;
    }

    .page-game-guides__paragraph,
    .page-game-guides__list-item,
    .page-game-guides__faq-question,
    .page-game-guides__faq-answer {
        font-size: 15px;
    }

    .page-game-guides__cta-button {
        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-game-guides__button-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Image responsive force */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* FAQ items on mobile */
    .page-game-guides__faq-question {
        padding: 15px;
    }

    .page-game-guides__faq-answer {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-content {
        padding: 15px 10px;
    }

    .page-game-guides__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-game-guides__section-title {
        font-size: 1.6rem;
    }

    .page-game-guides__cta-button {
        font-size: 1rem;
        padding: 12px 20px;
    }
}