/* style/game-guides.css */

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

.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--page-game-guides-text-main); /* Text color for dark background */
    background-color: var(--page-game-guides-bg); /* Matches body 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;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding for first section */
    text-align: center;
    overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

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

.page-game-guides__hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.page-game-guides__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--page-game-guides-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.page-game-guides__hero-description {
    font-size: 1.15rem;
    color: var(--page-game-guides-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Section Styles */
.page-game-guides__intro-section,
.page-game-guides__basic-guide-section,
.page-game-guides__advanced-strategy-section,
.page-game-guides__top-games-section,
.page-game-guides__tips-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--page-game-guides-divider);
}

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

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

.page-game-guides__section-title--light {
    color: var(--page-game-guides-text-main);
}

.page-game-guides__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--page-game-guides-gold);
    border-radius: 2px;
}

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

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

/* Guide Steps */
.page-game-guides__guide-step {
    background-color: var(--page-game-guides-card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-game-guides-border);
}

.page-game-guides__step-title {
    font-size: 1.7rem;
    color: var(--page-game-guides-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-guides__step-description {
    color: var(--page-game-guides-text-secondary);
    font-size: 1rem;
}

/* Strategy Items */
.page-game-guides__strategy-item {
    background-color: var(--page-game-guides-card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-game-guides-border);
}

.page-game-guides__strategy-title {
    font-size: 1.7rem;
    color: var(--page-game-guides-primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-guides__strategy-description {
    color: var(--page-game-guides-text-secondary);
    font-size: 1rem;
}

.page-game-guides__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 40px 0;
    object-fit: cover;
}

/* Game List */
.page-game-guides__game-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-game-guides__game-item {
    background-color: var(--page-game-guides-card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--page-game-guides-border);
}

.page-game-guides__game-name {
    font-size: 1.5rem;
    color: var(--page-game-guides-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-guides__game-description {
    color: var(--page-game-guides-text-secondary);
    font-size: 0.95rem;
}

.page-game-guides__all-games-cta {
    text-align: center;
    margin-top: 20px;
}

/* Tips Section */
.page-game-guides__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-game-guides__tip-item {
    background-color: var(--page-game-guides-card-bg);
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    color: var(--page-game-guides-text-secondary);
    font-size: 1rem;
    border-left: 5px solid var(--page-game-guides-primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-game-guides__tip-item strong {
    color: var(--page-game-guides-text-main);
}

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

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

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

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--page-game-guides-text-main);
    cursor: pointer;
    background-color: rgba(17, 168, 78, 0.1);
    transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
    background-color: rgba(17, 168, 78, 0.2);
}

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

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

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

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

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

.page-game-guides__faq-answer a {
    color: var(--page-game-guides-gold);
    text-decoration: none;
}

.page-game-guides__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Section */
.page-game-guides__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--page-game-guides-deep-green);
}

.page-game-guides__cta-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-game-guides__cta-content {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    text-align: left;
}

.page-game-guides__cta-content .page-game-guides__section-title {
    text-align: left;
}

.page-game-guides__cta-content .page-game-guides__section-title::after {
    left: 0;
    transform: translateX(0);
}

.page-game-guides__cta-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-guides__cta-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--page-game-guides-button-gradient);
    color: var(--page-game-guides-text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Reverse gradient on hover */
}

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

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

.page-game-guides__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    border-radius: 30px;
}

.page-game-guides__btn-cta-large {
    font-size: 1.2rem;
    padding: 18px 35px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-game-guides__hero-section {
        padding: 40px 20px;
    }

    .page-game-guides__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

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

    .page-game-guides__intro-section,
    .page-game-guides__basic-guide-section,
    .page-game-guides__advanced-strategy-section,
    .page-game-guides__top-games-section,
    .page-game-guides__tips-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        padding: 60px 0;
    }

    .page-game-guides__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }

    .page-game-guides__cta-container {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .page-game-guides__cta-content {
        text-align: center;
    }

    .page-game-guides__cta-content .page-game-guides__section-title {
        text-align: center;
    }

    .page-game-guides__cta-content .page-game-guides__section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-game-guides__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__hero-section {
        padding: 20px 15px;
        padding-top: 10px !important;
    }

    .page-game-guides__hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .page-game-guides__hero-description {
        font-size: 0.95rem;
    }

    .page-game-guides__hero-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__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;
    }

    .page-game-guides__intro-section,
    .page-game-guides__basic-guide-section,
    .page-game-guides__advanced-strategy-section,
    .page-game-guides__top-games-section,
    .page-game-guides__tips-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-section {
        padding: 40px 0;
    }

    .page-game-guides__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

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

    .page-game-guides__guide-step,
    .page-game-guides__strategy-item,
    .page-game-guides__game-item {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-game-guides__step-title,
    .page-game-guides__strategy-title,
    .page-game-guides__game-name {
        font-size: 1.4rem;
    }

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

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

    .page-game-guides__cta-content .page-game-guides__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-game-guides__image-full-width,
    .page-game-guides__cta-image,
    .page-game-guides__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-game-guides__hero-image-wrapper,
    .page-game-guides__cta-image-wrapper,
    .page-game-guides__video-section,
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper,
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-game-guides__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
    .page-game-guides__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-cta-buttons {
        flex-direction: column;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
}