/* style/game-guides.css */

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

/* Base styles for the page content */
.page-game-guides {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text on dark body background */
    background-color: var(--background-dark); /* Ensure background is dark for light text */
    line-height: 1.6;
}

.page-game-guides__section {
    padding: 60px 0;
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--divider-color);
}

.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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    max-width: 100%; /* Ensure image doesn't overflow its container */
}

.page-game-guides__hero-content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly with image for visual flow */
    background-color: rgba(17, 39, 27, 0.9); /* Card BG with transparency */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-game-guides__main-title {
    color: var(--text-main);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 100%; /* Ensure H1 doesn't overflow */
    margin-bottom: 15px;
    font-size: clamp(2rem, 5vw, 3rem);
}

.page-game-guides__subtitle {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
}

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

.page-game-guides__cta-buttons--centered {
  margin-top: 40px;
}

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

.page-game-guides__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-game-guides__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-game-guides__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* General Content Styles */
.page-game-guides__section-title {
    color: var(--gold-color);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

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

.page-game-guides__text-block a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-game-guides__text-block a:hover {
    text-decoration: underline;
}

/* Game Types Grid */
.page-game-guides__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-game-guides__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

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

.page-game-guides__card-image {
    width: 100%;
    height: 225px;
    object-fit: cover;
    display: block;
    max-width: 100%;
}

.page-game-guides__card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

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

.page-game-guides__card-title a:hover {
    text-decoration: underline;
}

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

.page-game-guides__card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    align-self: flex-start;
}

.page-game-guides__card-link:hover {
    text-decoration: underline;
}

/* Strategies Section */
.page-game-guides__strategy-item {
    background-color: var(--card-bg);
    border-left: 5px solid var(--primary-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__strategy-title {
    color: var(--gold-color);
    font-size: 1.6em;
    margin-bottom: 15px;
}

/* FAQ Section */
.page-game-guides__faq {
    background-color: var(--background-dark);
}

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

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.1em;
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

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

.page-game-guides__faq-question:hover {
    background-color: var(--deep-green);
}

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

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

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

/* Conclusion Section */
.page-game-guides__conclusion {
    text-align: center;
    background-color: var(--deep-green);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    .page-game-guides__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    }
    .page-game-guides__grid-layout {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-game-guides {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-game-guides__hero-section {
        padding-top: 10px !important;
    }
    .page-game-guides__hero-image-wrapper {
        max-height: 400px;
    }
    .page-game-guides__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
    }
    .page-game-guides__main-title {
        font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
    }
    .page-game-guides__subtitle {
        font-size: 1em;
    }
    .page-game-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides__section,
    .page-game-guides__container,
    .page-game-guides__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__card-image {
        height: 180px;
    }
    .page-game-guides__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-game-guides__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-game-guides__hero-content {
        margin-top: -40px;
        padding: 20px 10px;
    }
    .page-game-guides__section-title {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }
    .page-game-guides__card-title {
        font-size: 1.2em;
    }
    .page-game-guides__grid-layout {
        grid-template-columns: 1fr;
    }
}

/* Ensure all content images meet minimum size requirements */
.page-game-guides img:not(.page-game-guides__hero-image) {
    min-width: 200px;
    min-height: 200px;
}