/* style/game-guides.css */

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

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

.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;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-bottom: 40px; /* Space for content below image */
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
    filter: brightness(0.7); /* Darken image slightly for text readability */
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up over the image, but not covering it */
    background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
    border-radius: 15px;
    border: 1px solid var(--hb888-border);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    padding-bottom: 40px;
}

.page-game-guides__main-title {
    color: var(--hb888-gold);
    font-size: clamp(2em, 4vw, 3.5em);
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-game-guides__cta-button {
    display: inline-block;
    background: var(--hb888-button-gradient);
    color: var(--hb888-text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--hb888-glow);
}

/* Section Titles */
.page-game-guides__section-title {
    color: var(--hb888-gold);
    font-size: 2.5em;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

/* Content Blocks */
.page-game-guides__content-block {
    background-color: var(--hb888-card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--hb888-border);
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-game-guides__content-block p {
    color: var(--hb888-text-main);
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* Game Guide Cards */
.page-game-guides__game-types-section {
    padding: 60px 0;
}

.page-game-guides__game-guide-card {
    display: flex;
    background-color: var(--hb888-card-bg);
    border-radius: 15px;
    border: 1px solid var(--hb888-border);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-game-guides__game-guide-card:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image position */
}

.page-game-guides__game-guide-card:hover {
    transform: translateY(-5px);
}

.page-game-guides__card-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
}

.page-game-guides__card-content {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.page-game-guides__card-title {
    font-size: 1.8em;
    color: var(--hb888-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-game-guides__card-title a:hover {
    color: var(--hb888-glow);
}

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

.page-game-guides__card-link {
    display: inline-block;
    color: var(--hb888-primary-color);
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--hb888-primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-game-guides__card-link:hover {
    background-color: var(--hb888-primary-color);
    color: var(--hb888-text-main);
    box-shadow: 0 2px 10px rgba(17, 168, 78, 0.5);
}

/* App Download Section */
.page-game-guides__app-download-section {
    padding: 60px 0;
    background-color: var(--hb888-deep-green);
}

.page-game-guides__download-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 40px;
    background-color: transparent; /* Override card-bg */
    border: none;
    box-shadow: none;
}

.page-game-guides__text-column {
    flex: 1;
    min-width: 300px;
}

.page-game-guides__app-image {
    width: 40%;
    max-width: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Ensure minimum size */
}

.page-game-guides__btn-primary {
    background: var(--hb888-button-gradient);
    color: var(--hb888-text-main);
    margin-right: 15px;
    margin-bottom: 15px;
}

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

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

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

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

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

.page-game-guides__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    color: var(--hb888-text-main);
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-item summary:hover {
    background-color: rgba(var(--hb888-primary-color), 0.1);
}

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

.page-game-guides__faq-qtext {
    flex-grow: 1;
    color: var(--hb888-gold);
}

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

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

/* Call to Action Section */
.page-game-guides__call-to-action-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--hb888-deep-green);
}

.page-game-guides__call-to-action-section .page-game-guides__description {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    color: var(--hb888-text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__game-guide-card {
        flex-direction: column;
    }
    .page-game-guides__game-guide-card:nth-child(even) {
        flex-direction: column; /* Reset alternation for smaller screens */
    }
    .page-game-guides__card-image,
    .page-game-guides__card-content {
        width: 100%;
    }
    .page-game-guides__hero-content {
        margin-top: -100px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-game-guides__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__hero-image {
        max-height: 400px; /* Adjust hero image height for mobile */
    }
    .page-game-guides__hero-content {
        margin-top: -80px;
        padding: 15px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-game-guides__description {
        font-size: 0.95em;
    }
    .page-game-guides__section-title {
        font-size: 1.8em;
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .page-game-guides__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-game-guides__card-title {
        font-size: 1.5em;
    }
    .page-game-guides__card-content {
        padding: 20px;
    }
    .page-game-guides__download-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-game-guides__text-column,
    .page-game-guides__app-image {
        width: 100%;
        max-width: 100%;
    }
    .page-game-guides__app-image {
        order: -1; /* Image above text on mobile */
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Ensure vertical stacking for multiple buttons */
    }
    .page-game-guides__faq-item summary {
        font-size: 1em;
        padding: 15px;
    }
    .page-game-guides__faq-answer {
        padding: 0 15px 15px;
    }
    /* Ensure all content containers are responsive */
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__content-block,
    .page-game-guides__game-guide-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides__hero-section,
    .page-game-guides__introduction-section,
    .page-game-guides__game-types-section,
    .page-game-guides__app-download-section,
    .page-game-guides__rules-tips-section,
    .page-game-guides__faq-section,
    .page-game-guides__call-to-action-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-game-guides__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-content {
        margin-top: -60px;
    }
    .page-game-guides__main-title {
        font-size: 1.5em;
    }
    .page-game-guides__description {
        font-size: 0.9em;
    }
    .page-game-guides__section-title {
        font-size: 1.5em;
    }
    .page-game-guides__cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
    .page-game-guides__card-title {
        font-size: 1.3em;
    }
    .page-game-guides__card-content {
        padding: 15px;
    }
    .page-game-guides__app-image {
        max-width: 90%;
    }
}