/* style/game-guides.css */

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

/* Base styles for the page-game-guides scope */
.page-game-guides {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-dark); /* Inherited from body if not set, but explicit for clarity */
}

/* Ensure body padding for fixed header is handled by shared.css */
/* .page-game-guides__video-section should not have var(--header-offset) */

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--background-dark);
}

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

.page-game-guides__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
    /* No filter to change color, only brightness for contrast */
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-main);
}

.page-game-guides__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--gold-color); /* Use gold for prominence */
    margin-bottom: 20px;
    /* No fixed font-size, rely on responsive scaling and line-height */
}

.page-game-guides__hero-description {
    font-size: 1.15em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

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

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

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

.page-game-guides__introduction-section,
.page-game-guides__strategy-section,
.page-game-guides__promotions-section,
.page-game-guides__responsible-gaming-section,
.page-game-guides__cta-section {
    padding: 60px 0;
    background-color: var(--background-dark);
    color: var(--text-main);
}

.page-game-guides__gameplay-section,
.page-game-guides__registration-section,
.page-game-guides__other-games-section,
.page-game-guides__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg); /* Darker background for these sections */
    color: var(--text-main);
}

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

.page-game-guides__sub-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-game-guides__text-block {
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--text-secondary);
}

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

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

.page-game-guides__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

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

/* Image with text block layout */
.page-game-guides__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-game-guides__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-game-guides__content-image {
    flex: 1;
    min-width: 200px; /* Minimum size */
    border-radius: 10px;
    object-fit: cover;
    display: block; /* Ensure no extra space below image */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__text-content {
    flex: 1.5;
}

/* Game Categories */
.page-game-guides__game-categories {
    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);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
}

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

.page-game-guides__card-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-game-guides__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-game-guides__card-title a:hover {
    color: var(--gold-color);
    text-decoration: underline;
}

.page-game-guides__card-description {
    font-size: 0.95em;
    color: var(--text-secondary);
}

/* FAQ Section */
.page-game-guides__faq-list {
    margin-top: 40px;
}

.page-game-guides__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main);
}

.page-game-guides__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    outline: none;
    list-style: none; /* Hide default marker */
}

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

.page-game-guides__faq-question {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main);
    flex-grow: 1;
    text-align: left;
}

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-game-guides__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
}

/* Call to Action Box */
.page-game-guides__cta-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-game-guides__cta-box .page-game-guides__section-title {
    margin-bottom: 25px;
    color: var(--gold-color);
}

.page-game-guides__cta-box .page-game-guides__text-block {
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-secondary);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .page-game-guides__image-text-block {
        flex-direction: column;
    }
    .page-game-guides__image-text-block--reverse {
        flex-direction: column;
    }
    .page-game-guides__text-content {
        margin-top: 20px;
    }
}

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

    .page-game-guides__main-title {
        font-size: 1.8em; /* Adjust for mobile */
        margin-top: 20px;
    }

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

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

    .page-game-guides__introduction-section,
    .page-game-guides__gameplay-section,
    .page-game-guides__strategy-section,
    .page-game-guides__registration-section,
    .page-game-guides__promotions-section,
    .page-game-guides__other-games-section,
    .page-game-guides__responsible-gaming-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        padding: 40px 0;
    }

    .page-game-guides__container {
        padding: 0 15px !important;
    }

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

    .page-game-guides__sub-title {
        font-size: 1.3em;
        margin-top: 25px;
    }

    .page-game-guides__text-block,
    .page-game-guides__list li,
    .page-game-guides__card-description,
    .page-game-guides__faq-answer p {
        font-size: 0.95em;
    }

    .page-game-guides__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All image containers */
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__image-text-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Card containers */
    .page-game-guides__category-card,
    .page-game-guides__faq-item,
    .page-game-guides__cta-box {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-game-guides__game-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-guides__faq-item summary {
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 0 20px 15px;
    }
}