/* style/gameplay-guides.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-gameplay-guides {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

.page-gameplay-guides__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #8B0000, #FFD700); /* Blend brand colors */
    overflow: hidden; /* Prevent image overflow */
}

.page-gameplay-guides__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    z-index: 2; /* Ensure content is above image */
}

.page-gameplay-guides__hero-title {
    font-size: 3.5em;
    color: #ffffff; /* White title for contrast */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-gameplay-guides__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-gameplay-guides__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.2; /* Subtle background image */
}

.page-gameplay-guides__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-gameplay-guides__section {
    padding: 60px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background for sections */
    color: #f0f0f0;
}

.page-gameplay-guides__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-gameplay-guides__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-gameplay-guides__sub-title {
    font-size: 1.8em;
    color: #FFD700; /* Gold brand color for sub-titles */
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-gameplay-guides__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-gameplay-guides__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-gameplay-guides__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Reset for desktop */
}

.page-gameplay-guides__image-wrapper {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-gameplay-guides__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-gameplay-guides__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-gameplay-guides__list li {
    margin-bottom: 10px;
}

/* Buttons */
.page-gameplay-guides__btn-primary,
.page-gameplay-guides__btn-secondary,
.page-gameplay-guides__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.page-gameplay-guides__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #121212; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

.page-gameplay-guides__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    color: #121212;
}

.page-gameplay-guides__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text for dark background */
    border: 2px solid #FFD700;
}

.page-gameplay-guides__btn-secondary:hover {
    background-color: #FFD700;
    color: #121212;
}

.page-gameplay-guides__btn-link {
    background-color: #8B0000; /* Dark Red */
    color: #ffffff; /* White text for dark red background */
    border: 2px solid #8B0000;
    padding: 8px 15px;
    font-size: 1em;
    margin-top: 15px;
}

.page-gameplay-guides__btn-link:hover {
    background-color: #a00000;
    border-color: #a00000;
    color: #ffffff;
}

.page-gameplay-guides__cta-section {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(45deg, #8B0000, #FFD700);
}

.page-gameplay-guides__cta-section .page-gameplay-guides__section-title {
    color: #ffffff;
}

.page-gameplay-guides__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* FAQ styles */
.page-gameplay-guides__faq-list {
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gameplay-guides__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-gameplay-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-gameplay-guides__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.page-gameplay-guides__faq-title {
    font-size: 1.3em;
    color: #FFD700;
    margin: 0;
}

.page-gameplay-guides__faq-toggle {
    font-size: 1.8em;
    color: #ffffff;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-gameplay-guides__faq-item.active .page-gameplay-guides__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-gameplay-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-gameplay-guides__faq-item.active .page-gameplay-guides__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px; /* Expanded padding */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-gameplay-guides__hero-title {
        font-size: 2.8em;
    }

    .page-gameplay-guides__section-title {
        font-size: 2em;
    }

    .page-gameplay-guides__sub-title {
        font-size: 1.5em;
    }

    .page-gameplay-guides__content-grid {
        grid-template-columns: 1fr; /* Stack columns */
    }

    .page-gameplay-guides__content-grid--reverse {
        grid-template-columns: 1fr; /* Stack columns */
    }

    .page-gameplay-guides__content-grid .page-gameplay-guides__image-wrapper {
        order: -1; /* Image first on mobile for reverse grid */
    }
}

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

    .page-gameplay-guides__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
        padding-bottom: 40px;
    }

    .page-gameplay-guides__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-gameplay-guides__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

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

    .page-gameplay-guides__container {
        padding: 0 15px; /* Add horizontal padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-gameplay-guides__sub-title {
        font-size: 1.3em;
    }

    /* Mobile image responsiveness */
    .page-gameplay-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-gameplay-guides__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile button responsiveness */
    .page-gameplay-guides__btn-primary,
    .page-gameplay-guides__btn-secondary,
    .page-gameplay-guides__btn-link,
    .page-gameplay-guides a[class*="button"],
    .page-gameplay-guides a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important; /* Ensure padding for smaller screens */
        padding-right: 15px !important;
        margin-bottom: 10px; /* Space between stacked buttons */
    }

    .page-gameplay-guides__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-gameplay-guides__faq-question {
        padding: 15px 0;
    }

    .page-gameplay-guides__faq-title {
        font-size: 1.1em;
    }

    .page-gameplay-guides__faq-answer {
        padding: 0 10px; /* Adjust padding for mobile */
    }

    .page-gameplay-guides__faq-item.active .page-gameplay-guides__faq-answer {
        padding: 10px; /* Adjust padding for mobile */
    }
}

@media (max-width: 480px) {
    .page-gameplay-guides__hero-title {
        font-size: 1.8em;
    }
    .page-gameplay-guides__section-title {
        font-size: 1.5em;
    }
}

/* Contrast Fixes (based on body background #121212 - dark) */
.page-gameplay-guides__dark-bg {
    color: #f0f0f0; /* Light text for dark background */
}