/* style/game-guides.css */

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

/* Base styles for the page content, ensuring contrast with body background */
.page-game-guides {
    background-color: var(--background-color); /* Dark background */
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Ensure text on light sections is dark */
.page-game-guides__light-bg {
    background-color: #ffffff; /* Default white background for light sections */
    color: #333333; /* Dark text for light background */
}

.page-game-guides__dark-bg {
    background-color: var(--background-color);
    color: var(--text-main);
}

.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; /* Image above, content below */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 80px; /* More padding at the bottom */
    text-align: center;
    overflow: hidden;
    background-color: var(--background-color); /* Ensure dark background */
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for the image */
    overflow: hidden;
    position: relative;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Ensure it doesn't stretch too much */
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    margin-top: 40px; /* Add some space below the image */
    background: var(--card-bg); /* Use card background for the content box */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__main-title {
    color: var(--gold-color);
    font-size: clamp(2em, 4vw, 3.2em); /* H1 font size constraint */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-game-guides__description {
    color: var(--text-main);
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for dark button */
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(17, 168, 78, 0.6);
}

.page-game-guides__btn-secondary {
    background: #ffffff;
    color: var(--primary-color); /* Primary color text for light button */
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-game-guides__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(17, 168, 78, 0.3);
}

/* Section Titles */
.page-game-guides__section-title {
    color: var(--gold-color);
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-game-guides__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section (dark or light) */
}

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

.page-game-guides__category-card {
    background-color: var(--card-bg); /* Dark card background */
    color: var(--text-main); /* Light text for dark card */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-game-guides__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-game-guides__card-title {
    font-size: 1.4em;
    margin: 20px 20px 10px;
    color: var(--gold-color);
    text-shadow: 0 0 5px rgba(87, 227, 141, 0.2);
}

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

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

.page-game-guides__card-description {
    font-size: 0.95em;
    margin: 0 20px 20px;
    flex-grow: 1;
    color: var(--text-secondary);
}

.page-game-guides__card-link {
    display: inline-block;
    margin: 0 20px 20px;
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-game-guides__card-link:hover {
    background-color: var(--secondary-color);
}

/* Tips Section */
.page-game-guides__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-game-guides__tip-item {
    background-color: #ffffff; /* Light background for tips */
    color: #333333; /* Dark text for light background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--primary-color);
}

.page-game-guides__tip-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-game-guides__tip-description {
    font-size: 1em;
    color: #555555;
}

/* Promotions Section */
.page-game-guides__promotions-section {
    text-align: center;
    padding: 80px 20px;
}

.page-game-guides__promotion-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    min-height: 200px;
}

/* FAQ Section */
.page-game-guides__faq-section {
    padding-bottom: 80px;
}

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

.page-game-guides__faq-item {
    background-color: #ffffff; /* Light background for FAQ items */
    color: #333333; /* Dark text for light background */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-game-guides__faq-item summary {
    list-style: none; /* Remove default marker */
}

.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--card-bg); /* Dark background for question summary */
    color: var(--text-main); /* Light text for question */
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
}

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

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--primary-color);
}

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    content: '−';
}

.page-game-guides__faq-answer {
    padding: 15px 25px 20px;
    background-color: #f9f9f9; /* Lighter background for answer */
    color: #555555;
    font-size: 1em;
    border-top: 1px solid #eee;
}

.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;
}

/* CTA Section */
.page-game-guides__cta-section {
    text-align: center;
    padding: 80px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        margin-top: 30px;
        padding: 30px 20px;
    }

    .page-game-guides__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }

    .page-game-guides__section-title {
        font-size: clamp(1.6em, 4.5vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-game-guides__container {
        padding: 0 15px;
    }

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

    .page-game-guides__hero-image-wrapper,
    .page-game-guides__category-card,
    .page-game-guides__promotion-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-game-guides__hero-image {
        max-height: 400px; /* Adjust hero image height for mobile */
    }

    /* Videos - if any, placeholder for future use */
    .page-game-guides video,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-game-guides__video-section,
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-game-guides__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

    /* Buttons */
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary,
    .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;
        padding-right: 15px;
    }

    .page-game-guides__category-grid,
    .page-game-guides__tips-grid {
        grid-template-columns: 1fr;
    }

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

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

    .page-game-guides__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
        padding-top: 40px;
    }

    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

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

    .page-game-guides__introduction-section,
    .page-game-guides__categories-section,
    .page-game-guides__tips-section,
    .page-game-guides__promotions-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
}

/* Ensure content area images are not too small in CSS */
.page-game-guides__category-card img,
.page-game-guides__promotion-image {
    min-width: 200px;
    min-height: 200px;
}