/* style/game-guides.css */

/* Base styles and variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --bg-light: #FFFFFF;
    --bg-dark-section: #26A9E0; /* Using primary color for dark section background */
    --button-login: #EA7C07;
    --border-color: #e0e0e0;
}

/* Page container */
.page-game-guides {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light background */
    background-color: var(--bg-light); /* Assuming body is light */
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-game-guides__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-game-guides__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
    color: var(--text-light);
}

.page-game-guides__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-game-guides__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

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

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

.page-game-guides__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-game-guides__section-title--light {
    color: var(--text-light);
}

.page-game-guides__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

.page-game-guides__text-block--light {
    color: var(--text-light);
}

.page-game-guides__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-game-guides__text-block--light a {
    color: var(--secondary-color);
}

.page-game-guides__text-block a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary,
.page-game-guides__btn-read-more {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-game-guides__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-game-guides__btn-primary:hover {
    background-color: #1e87b7; /* Manual darken */
    border-color: #1e87b7; /* Manual darken */
}

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

.page-game-guides__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-game-guides__btn-read-more {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1em;
}

.page-game-guides__btn-read-more:hover {
    background-color: #1e87b7; /* Manual darken */
    border-color: #1e87b7; /* Manual darken */
}

/* Image styles */
.page-game-guides img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__image-content {
    /* Specific styles for content images, if needed */
    width: 100%; /* Ensure content images fill their container */
    max-width: 800px; /* Example max-width for content images */
    height: auto;
}

/* Game Type Guides Section */
.page-game-guides__game-guide-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-guides__game-guide-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Advanced Tips Section */
.page-game-guides__tip-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-game-guides__tip-item {
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-game-guides__tip-item strong {
    color: var(--primary-color);
}

/* FAQ Section */
.page-game-guides__faq {
    background-color: #f5f5f5;
}

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

.page-game-guides__faq-item {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: var(--primary-color); /* Question background */
    color: var(--text-light); /* Question text color */
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: #1e87b7; /* Manual darken */
}

.page-game-guides__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: var(--text-light);
}

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-game-guides__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-dark); /* Answer text color */
    background-color: var(--bg-light); /* Answer background */
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0; /* Adjust padding to look better */
}

.page-game-guides__faq-answer p {
    margin: 0;
}

.page-game-guides__faq-answer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-game-guides__faq-answer a:hover {
    text-decoration: underline;
}

/* Bottom CTA Section */
.page-game-guides__cta-bottom {
    padding: 80px 0;
}

.page-game-guides__cta-bottom .page-game-guides__container {
    background-color: var(--bg-dark-section);
    border-radius: 15px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-game-guides__cta-bottom .page-game-guides__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-game-guides__dark-section .page-game-guides__btn-secondary {
    background-color: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

.page-game-guides__dark-section .page-game-guides__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-title {
        font-size: 3em;
    }
    .page-game-guides__hero-description {
        font-size: 1.1em;
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__game-guide-title {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    /* Ensure content area is constrained */
    .page-game-guides__container,
    .page-game-guides__hero-content,
    .page-game-guides__faq-list {
        padding: 0 15px; /* Add padding to prevent content touching edges */
    }

    /* Fixed header offset for mobile hero section */
    .page-game-guides__hero-section {
        height: 500px; /* Adjust height for mobile */
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }

    .page-game-guides__hero-title {
        font-size: 2.5em;
    }

    .page-game-guides__hero-description {
        font-size: 1em;
    }

    .page-game-guides__hero-cta-buttons,
    .page-game-guides__cta-bottom .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .page-game-guides__btn-read-more,
    .page-game-guides a[class*="button"],
    .page-game-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; /* Ensure text doesn't touch button edges */
        padding-right: 15px;
    }

    /* Image responsive adaptation */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers that hold images, videos, buttons for mobile */
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__game-guide-item,
    .page-game-guides__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* FAQ item padding adjustment for mobile */
    .page-game-guides__faq-question {
        padding: 15px;
        font-size: 1em;
    }
    .page-game-guides__faq-answer {
        padding: 0 15px;
    }
    .page-game-guides__faq-item.active .page-game-guides__faq-answer {
        padding: 15px;
        padding-top: 0;
    }

    /* Content area image minimum size check:
       All images in content area must not display smaller than 200px.
       Since max-width: 100% and width: 100% are applied,
       if the parent container is >= 200px, the image will be too.
       Ensure parent containers are wide enough.
    */
    .page-game-guides__image-content {
        min-width: 200px;
        min-height: 150px; /* Adjust as per aspect ratio, but ensure > 200px in one dimension */
    }
    
    /* Ensure sections have some horizontal padding to prevent content from touching screen edges */
    .page-game-guides__section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides__cta-bottom .page-game-guides__container {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-title {
        font-size: 2em;
    }
    .page-game-guides__hero-description {
        font-size: 0.9em;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
    }
    .page-game-guides__game-guide-title {
        font-size: 1.5em;
    }
}

/* Color contrast enforcement (already integrated into styles above) */
.page-game-guides__dark-section {
    background: var(--bg-dark-section); /* Primary color */
    color: var(--text-light); /* White text */
}

.page-game-guides__dark-section .page-game-guides__text-block {
    color: var(--text-light);
}

.page-game-guides__dark-section .page-game-guides__text-block a {
    color: var(--secondary-color);
}