/* style/game-guides.css */

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

/* Base styles for page-game-guides scope */
.page-game-guides {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-background); /* Body background from shared.css is var(--background-color), this page uses a dark background */
}

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

.page-game-guides__light-bg {
    background-color: var(--color-text-main);
    color: #333333; /* Dark text for light background */
}

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

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Limit height for aesthetic */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 10px;
}

.page-game-guides__hero-content {
    max-width: 900px;
    z-index: 1;
    position: relative;
}

.page-game-guides__main-title {
    color: var(--color-gold);
    font-size: clamp(2rem, 3.5vw, 3.2rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

.page-game-guides__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.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;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

.page-game-guides__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-game-guides__btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-game-guides__center-button {
    margin-left: auto;
    margin-right: auto;
    display: block; /* Ensure it takes full width for centering */
    max-width: 300px;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-game-guides__bottom-cta {
    margin-top: 50px;
    margin-bottom: 50px;
}

.page-game-guides__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-game-guides__video-container {
    width: 100%; /* Important for desktop */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    text-align: center;
}

.page-game-guides__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-game-guides__video-wrapper .page-game-guides__video-link,
.page-game-guides__video-wrapper .page-game-guides__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

.page-game-guides__video-link {
    cursor: pointer;
}

.page-game-guides__video-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-top: 15px;
}

.page-game-guides__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    line-height: 1.7;
    font-size: 1.05rem;
    background-color: var(--color-text-main); /* Light background for content */
    color: #333333; /* Dark text for light background */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-game-guides__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
}

.page-game-guides__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-button-gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-game-guides__text-block {
    margin-bottom: 25px;
    color: #333333;
}

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

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

.page-game-guides__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-game-guides__card-title {
    font-size: 1.5rem;
    color: var(--color-deep-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-game-guides__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
}

.page-game-guides__card-button {
    margin-top: auto; /* Push button to bottom */
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

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

.page-game-guides__game-item {
    background-color: #ffffff;
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-guides__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-game-guides__game-title {
    font-size: 1.4rem;
    color: var(--color-deep-green);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-game-guides__game-description {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 20px;
}

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

.page-game-guides__feature-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-guides__feature-image {
    width: 100%;
    height: 200px;
    object-fit: contain; /* Use contain for icons/logos */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-guides__faq-list {
    margin-top: 40px;
    margin-bottom: 40px;
}

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

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

.page-game-guides__faq-item summary:hover {
    background-color: #f0f0f0;
}

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

.page-game-guides__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    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: 20px 25px;
    font-size: 1rem;
    color: #555555;
    line-height: 1.6;
    border-top: 1px solid var(--color-border);
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-game-guides__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-game-guides__description {
        font-size: 1rem;
    }
    .page-game-guides__section-title {
        font-size: 1.8rem;
    }
    .page-game-guides__content-area {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: 10px 15px 40px;
    }
    .page-game-guides__hero-image {
        max-height: 400px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-game-guides__description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin: 0 auto;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-game-guides__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides__video-container,
    .page-game-guides__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-game-guides video,
    .page-game-guides__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-game-guides__content-area {
        padding: 30px 15px;
    }
    .page-game-guides__section-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    .page-game-guides__section-title::after {
        width: 60px;
        height: 3px;
        margin-top: 10px;
    }
    .page-game-guides__text-block {
        font-size: 0.95rem;
    }
    .page-game-guides__card-grid,
    .page-game-guides__game-list,
    .page-game-guides__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-guides__card,
    .page-game-guides__game-item,
    .page-game-guides__feature-card {
        padding: 20px;
    }
    .page-game-guides__card-image,
    .page-game-guides__game-image,
    .page-game-guides__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-game-guides__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-game-guides__main-title {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }
    .page-game-guides__description {
        font-size: 0.9rem;
    }
    .page-game-guides__section-title {
        font-size: 1.4rem;
    }
    .page-game-guides__hero-image {
        max-height: 250px;
    }
}