/* style/game-guides.css */

:root {
    --color-primary: #F2C14E;
    --color-secondary: #FFD36B;
    --color-background-dark: #0A0A0A;
    --color-card-bg: #111111;
    --color-text-main: #FFF6D6;
    --color-border: #3A2A12;
    --color-glow: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-game-guides {
    background-color: var(--color-background-dark);
    color: var(--color-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-game-guides h1, .page-game-guides h2, .page-game-guides h3, .page-game-guides h4, .page-game-guides h5, .page-game-guides h6 {
    color: var(--color-text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

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

.page-game-guides__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-game-guides__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

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

.page-game-guides__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: rgba(255, 246, 214, 0.8);
}

.page-game-guides__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--color-card-bg);
    overflow: hidden;
}

.page-game-guides__hero-image-container {
    width: 100%;
    max-width: 1200px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

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

.page-game-guides__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-game-guides__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em);
    margin-bottom: 20px;
    color: var(--color-text-main);
    text-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-game-guides__lead-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 246, 214, 0.9);
}

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

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
    opacity: 0.9;
}

.page-game-guides__btn-secondary {
    background-color: transparent;
    color: var(--color-secondary);
    border: 2px solid var(--color-secondary);
    box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-game-guides__btn-secondary:hover {
    background-color: var(--color-secondary);
    color: var(--color-background-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-game-guides__grid-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    text-align: left;
    margin-top: 40px;
}

.page-game-guides__grid-two-columns--reversed {
    grid-template-areas: "image text";
}

.page-game-guides__grid-two-columns--reversed .page-game-guides__text-block {
    grid-area: text;
}

.page-game-guides__grid-two-columns--reversed .page-game-guides__image-wrapper {
    grid-area: image;
}

.page-game-guides__sub-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.page-game-guides__text-block p {
    margin-bottom: 15px;
    color: rgba(255, 246, 214, 0.85);
}

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

.page-game-guides__list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: rgba(255, 246, 214, 0.85);
}

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

.page-game-guides__image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

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

.page-game-guides__margin-top-large {
    margin-top: 80px;
}

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

.page-game-guides__game-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.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.5em;
    margin: 20px 20px 10px;
    color: var(--color-primary);
}

.page-game-guides__game-description {
    font-size: 0.95em;
    color: rgba(255, 246, 214, 0.7);
    padding: 0 20px;
    flex-grow: 1;
}

.page-game-guides__btn-text-link {
    display: inline-block;
    margin: 20px;
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-game-guides__btn-text-link:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.page-game-guides__section--download .page-game-guides__btn-download {
    margin-top: 20px;
}

.page-game-guides__faq-list {
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

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

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

.page-game-guides__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: rgba(255, 246, 214, 0.75);
    line-height: 1.5;
}

.page-game-guides__faq-answer p {
    margin-bottom: 0;
}

.page-game-guides__section--cta {
    padding: 80px 20px;
    background: var(--button-gradient);
    color: #ffffff;
}

.page-game-guides__section--cta .page-game-guides__container {
    background-color: var(--color-card-bg);
    border-radius: 15px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.page-game-guides__section-title--cta {
    color: var(--color-text-main);
    margin-bottom: 25px;
}

.page-game-guides__section-title--cta::after {
    background: var(--color-secondary);
}

.page-game-guides__section-description--cta {
    color: rgba(255, 246, 214, 0.95);
    margin-bottom: 40px;
}

.page-game-guides__btn-large {
    padding: 16px 40px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__container {
        padding: 0 15px;
    }
    .page-game-guides__section {
        padding: 40px 15px;
    }
    .page-game-guides__hero-image-container {
        max-width: 90%;
    }
    .page-game-guides__grid-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-game-guides__grid-two-columns--reversed {
        grid-template-areas: unset;
    }
    .page-game-guides__grid-two-columns--reversed .page-game-guides__text-block,
    .page-game-guides__grid-two-columns--reversed .page-game-guides__image-wrapper {
        grid-area: unset;
    }
}

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

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

    .page-game-guides__hero-image-container {
        border-radius: 8px;
        margin-bottom: 20px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain; /* Hero mobile: contain, not cover */
        aspect-ratio: unset; /* Remove fixed aspect ratio */
        max-height: none;
    }

    .page-game-guides__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-game-guides__lead-text {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__btn-primary,
    .page-game-guides__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__section {
        padding: 30px 15px;
    }

    .page-game-guides__section-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-game-guides__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-game-guides__sub-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-game-guides__text-block p,
    .page-game-guides__list li {
        font-size: 0.95em;
    }

    .page-game-guides__image-wrapper {
        border-radius: 8px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-game-guides__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-game-guides__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-game-guides__game-card {
        border-radius: 8px;
        height: auto; /* Allow height to adjust */
    }

    .page-game-guides__game-image {
        height: 180px; /* Adjust height for mobile */
    }

    .page-game-guides__game-title {
        font-size: 1.3em;
        margin: 15px 15px 8px;
    }

    .page-game-guides__game-description {
        font-size: 0.9em;
        padding: 0 15px;
    }

    .page-game-guides__btn-text-link {
        margin: 15px;
    }

    .page-game-guides__faq-item {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .page-game-guides__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }

    .page-game-guides__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95em;
    }

    .page-game-guides__section--cta {
        padding: 50px 15px;
    }

    .page-game-guides__section--cta .page-game-guides__container {
        padding: 30px;
        border-radius: 10px;
    }

    .page-game-guides__section-title--cta {
        font-size: 1.8em;
    }

    .page-game-guides__section-description--cta {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-game-guides__btn-large {
        padding: 14px 30px;
        font-size: 1.1em;
    }
    .page-game-guides__margin-top-large {
        margin-top: 50px;
    }
}