/* style/game-guides.css */

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

.page-game-guides {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-color);
}

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

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

.page-game-guides__light-bg {
    background-color: #0d1e16; /* Slightly lighter background for contrast */
    color: var(--text-main);
}

/* Hero Section */
.page-game-guides__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, relying on body for header offset */
    overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 1;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up over the image bottom for visual flow */
    background: rgba(8, 22, 15, 0.85); /* Semi-transparent background for readability */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 20px;
}

.page-game-guides__description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--glow-color-rgb), 0.4);
}

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

.page-game-guides__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--background-color);
    transform: translateY(-3px);
}

.page-game-guides__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
}

.page-game-guides__text-block {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.page-game-guides__text-block p {
    margin-bottom: 15px;
}

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

/* Intro Section */
.page-game-guides__intro-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-game-guides__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.page-game-guides__feature-item:hover {
    transform: translateY(-10px);
}

.page-game-guides__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
}

.page-game-guides__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-game-guides__feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Principles Section */
.page-game-guides__principles-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-game-guides__image-wrapper {
    width: 100%;
}

.page-game-guides__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-game-guides__list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-game-guides__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

.page-game-guides__list li::before {
    content: '•';
    color: var(--gold-color);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0;
}

/* Game Types Section */
.page-game-guides__game-types-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--divider-color);
}

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

.page-game-guides__game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

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

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

.page-game-guides__game-title {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 20px;
    color: var(--text-main);
}

.page-game-guides__game-title a {
    color: var(--text-main);
    text-decoration: none;
}

.page-game-guides__game-title a:hover {
    color: var(--gold-color);
}

.page-game-guides__game-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0 20px 20px;
    line-height: 1.6;
}

.page-game-guides__read-more-btn {
    display: inline-block;
    background: var(--deep-green);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
}

.page-game-guides__read-more-btn:hover {
    background-color: var(--secondary-color);
}

/* Tips Section */
.page-game-guides__tips-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--divider-color);
}

/* Responsible Gaming Section */
.page-game-guides__responsible-gaming-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__responsible-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-game-guides__responsible-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-game-guides__responsible-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
}

.page-game-guides__responsible-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.page-game-guides__faq-list {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold-color);
}

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

.page-game-guides__faq-answer p {
    margin-top: 10px;
}

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

.page-game-guides__cta-content {
    max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-image-wrapper {
        max-height: 500px;
    }

    .page-game-guides__hero-content {
        margin-top: -100px;
    }
}

@media (max-width: 768px) {
    .page-game-guides__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-game-guides__description {
        font-size: 1rem;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        width: 100% !important;
        max-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__hero-section,
    .page-game-guides__intro-section,
    .page-game-guides__principles-section,
    .page-game-guides__game-types-section,
    .page-game-guides__tips-section,
    .page-game-guides__responsible-gaming-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-bottom {
        padding: 40px 0;
    }

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

    .page-game-guides__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-game-guides__grid-2-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-game-guides__image-wrapper {
        order: -1; /* Image first on mobile */
    }

    /* Mobile image responsiveness */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-game-guides__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-game-guides__hero-content {
        margin-top: -80px;
        padding: 20px 15px;
    }

    .page-game-guides__game-image {
        height: 180px;
    }

    .page-game-guides__faq-item summary {
        font-size: 1rem;
        padding: 15px;
    }

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

@media (max-width: 480px) {
    .page-game-guides__hero-image-wrapper {
        max-height: 300px;
    }

    .page-game-guides__hero-content {
        margin-top: -50px;
    }

    .page-game-guides__main-title {
        font-size: 1.8rem;
    }

    .page-game-guides__description {
        font-size: 0.9rem;
    }

    .page-game-guides__feature-icon {
        width: 80px;
        height: 80px;
    }

    .page-game-guides__feature-title,
    .page-game-guides__responsible-title {
        font-size: 1.3rem;
    }
}