/* style/game-guides.css */

:root {
    --b88-primary-color: #11A84E;
    --b88-secondary-color: #22C768;
    --b88-card-bg: #11271B;
    --b88-background: #08160F;
    --b88-text-main: #F2FFF6;
    --b88-text-secondary: #A7D9B8;
    --b88-border-color: #2E7A4E;
    --b88-glow-color: #57E38D;
    --b88-gold-color: #F2C14E;
    --b88-divider-color: #1E3A2A;
    --b88-deep-green: #0A4B2C;
}

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

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

.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 0 60px 0; /* body handles header offset, small top padding for aesthetics */
    overflow: hidden;
    background-color: var(--b88-background);
}

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

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    background: linear-gradient(rgba(8, 22, 15, 0.8), rgba(8, 22, 15, 0.8)); /* Overlay for text readability */
    border-radius: 10px;
    margin-top: 50px;
}

.page-game-guides__main-title {
    font-size: clamp(2em, 4vw, 3.2em);
    color: var(--b88-gold-color);
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

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

.page-game-guides__hero-button,
.page-game-guides__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-game-guides__hero-button:hover,
.page-game-guides__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-game-guides__cta-button--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-game-guides__introduction-section,
.page-game-guides__game-types-section,
.page-game-guides__strategy-section,
.page-game-guides__faq-section,
.page-game-guides__conclusion-section {
    padding: 60px 0;
    border-top: 1px solid var(--b88-divider-color);
}

.page-game-guides__section-title {
    font-size: 2.5em;
    color: var(--b88-gold-color);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

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

.page-game-guides__game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-game-guides__card {
    background-color: var(--b88-card-bg);
    border: 1px solid var(--b88-border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-game-guides__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-game-guides__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid var(--b88-divider-color);
}

.page-game-guides__card-title {
    font-size: 1.5em;
    color: var(--b88-primary-color);
    padding: 20px 20px 10px 20px;
}

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

.page-game-guides__card-button {
    display: block;
    text-align: center;
    background: var(--b88-deep-green);
    color: var(--b88-text-main);
    padding: 12px 20px;
    text-decoration: none;
    font-weight: bold;
    border-top: 1px solid var(--b88-border-color);
    transition: background-color 0.3s ease;
}

.page-game-guides__card-button:hover {
    background-color: var(--b88-primary-color);
}

.page-game-guides__strategy-item {
    background-color: var(--b88-card-bg);
    border: 1px solid var(--b88-border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__strategy-subtitle {
    font-size: 1.8em;
    color: var(--b88-primary-color);
    margin-bottom: 15px;
}

.page-game-guides__strategy-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid var(--b88-border-color);
}

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

.page-game-guides__faq-item {
    background-color: var(--b88-card-bg);
    border: 1px solid var(--b88-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: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--b88-text-main);
    cursor: pointer;
    background-color: var(--b88-deep-green);
    border-bottom: 1px solid var(--b88-divider-color);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

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

.page-game-guides__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--b88-gold-color);
    transition: transform 0.3s ease;
}

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

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

.page-game-guides__conclusion-section {
    text-align: center;
}

.page-game-guides__conclusion-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px auto;
    border: 1px solid var(--b88-border-color);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        margin-top: 30px;
        padding: 30px 15px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
    .page-game-guides__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-game-guides__container {
        padding: 0 15px;
    }
    .page-game-guides__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-game-guides__hero-content {
        margin-top: 20px;
        padding: 25px 15px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
    }
    .page-game-guides__hero-description {
        font-size: 1em;
    }
    .page-game-guides__hero-button,
    .page-game-guides__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-guides__cta-button--large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
    .page-game-guides__introduction-section,
    .page-game-guides__game-types-section,
    .page-game-guides__strategy-section,
    .page-game-guides__faq-section,
    .page-game-guides__conclusion-section {
        padding: 40px 0;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-game-guides__game-cards {
        grid-template-columns: 1fr;
    }
    .page-game-guides__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__card-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-game-guides__strategy-subtitle {
        font-size: 1.5em;
    }
    .page-game-guides__strategy-image,
    .page-game-guides__conclusion-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-game-guides__faq-answer {
        padding: 15px 20px;
    }

    /* Ensure containers for images/buttons/videos are responsive */
    .page-game-guides__section, 
    .page-game-guides__card, 
    .page-game-guides__container, 
    .page-game-guides__game-cards, 
    .page-game-guides__faq-list, 
    .page-game-guides__strategy-item, 
    .page-game-guides__cta-buttons, 
    .page-game-guides__button-group, 
    .page-game-guides__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

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

@media (max-width: 480px) {
    .page-game-guides__hero-content {
        padding: 20px 10px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.4em, 7vw, 2.2em);
    }
    .page-game-guides__hero-description {
        font-size: 0.9em;
    }
    .page-game-guides__section-title {
        font-size: 1.6em;
    }
    .page-game-guides__card-title {
        font-size: 1.3em;
    }
    .page-game-guides__strategy-subtitle {
        font-size: 1.3em;
    }
    .page-game-guides__faq-question {
        font-size: 0.9em;
    }
}