/* style/game-guides.css */

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

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

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

.page-game-guides__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0;
    background-color: var(--deep-green-color);
    overflow: hidden;
}

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

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

.page-game-guides__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    z-index: 1;
    margin-top: -100px; /* Pull content up over image slightly for visual flow */
    background: rgba(8, 22, 15, 0.85); /* Semi-transparent background for text */
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.page-game-guides__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__tagline {
    font-size: 1.1rem;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-game-guides__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

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

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

.page-game-guides__introduction-section,
.page-game-guides__general-principles,
.page-game-guides__how-to-start,
.page-game-guides__tips-section,
.page-game-guides__faq-section,
.page-game-guides__cta-bottom-section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-game-guides__game-types-section {
    padding: 60px 0;
    background-color: var(--deep-green-color);
}

.page-game-guides__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

.page-game-guides__text-block {
    font-size: 1rem;
    color: var(--text-secondary-color);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

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

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

.page-game-guides__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 10px var(--glow-color);
}

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

.page-game-guides__card-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    padding: 15px 20px 10px 20px;
    font-weight: bold;
}

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

.page-game-guides__card-title a:hover {
    color: var(--glow-color);
}

.page-game-guides__card-description {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    padding: 0 20px 15px 20px;
    flex-grow: 1;
}

.page-game-guides__card-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 0 20px 20px 20px;
    align-self: flex-start;
    transition: all 0.3s ease;
}

.page-game-guides__card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-game-guides__list,
.page-game-guides__ordered-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
}

.page-game-guides__list li,
.page-game-guides__ordered-list li {
    background-color: var(--card-bg-color);
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--primary-color);
}

.page-game-guides__list-title {
    font-size: 1.3rem;
    color: var(--gold-color);
    margin-bottom: 10px;
}

.page-game-guides__list li p,
.page-game-guides__ordered-list li p {
    font-size: 1rem;
    color: var(--text-secondary-color);
    text-align: left;
    margin-bottom: 0;
}

.page-game-guides__ordered-list li::before {
    content: counter(list-item) ". ";
    counter-increment: list-item;
    color: var(--gold-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 10px;
    display: inline-block;
    width: 25px;
    text-align: right;
}

.page-game-guides__ordered-list li {
    display: flex;
    align-items: flex-start;
}

.page-game-guides__ordered-list li .page-game-guides__list-title {
    margin-top: 0;
}

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

.page-game-guides__tip-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding-bottom: 20px;
    text-align: center;
}

.page-game-guides__tip-card .page-game-guides__card-image {
    height: 180px;
    margin-bottom: 15px;
}

.page-game-guides__tip-card .page-game-guides__card-title {
    font-size: 1.25rem;
    padding: 0 15px;
    margin-bottom: 10px;
}

.page-game-guides__tip-card .page-game-guides__card-description {
    font-size: 0.9rem;
    padding: 0 15px;
    color: var(--text-secondary-color);
}

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

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

.page-game-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-game-guides__faq-item[open] .page-game-guides__faq-question {
    border-bottom: 1px solid var(--border-color);
}

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

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

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

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

.page-game-guides__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-secondary-color);
    background-color: var(--card-bg-color);
}

.page-game-guides__faq-answer p {
    margin-bottom: 0;
    text-align: left;
    color: var(--text-secondary-color);
}

.page-game-guides__faq-answer a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-game-guides__faq-answer a:hover {
    color: var(--glow-color);
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-game-guides__hero-content {
        margin-top: -80px;
        padding: 30px;
    }
    .page-game-guides__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-game-guides__tagline {
        font-size: 1rem;
    }
    .page-game-guides__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: 10px 0 40px 0;
    }
    .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.8rem, 5vw, 2.5rem);
    }
    .page-game-guides__tagline {
        font-size: 0.95rem;
    }
    .page-game-guides__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    .page-game-guides__introduction-section,
    .page-game-guides__game-types-section,
    .page-game-guides__general-principles,
    .page-game-guides__how-to-start,
    .page-game-guides__tips-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-bottom-section {
        padding: 40px 0;
    }
    .page-game-guides__container {
        padding: 0 15px;
    }
    .page-game-guides__game-grid,
    .page-game-guides__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-game-guides__card-image {
        height: 180px;
    }
    .page-game-guides__card-title {
        font-size: 1.3rem;
    }
    .page-game-guides__list li,
    .page-game-guides__ordered-list li {
        padding: 20px;
    }
    .page-game-guides__list-title {
        font-size: 1.2rem;
    }
    .page-game-guides__faq-question {
        font-size: 1.05rem;
        padding: 15px;
    }
    .page-game-guides__faq-answer {
        padding: 15px;
    }

    /* Mobile specific overrides with !important */
    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-game-guides__hero-section,
    .page-game-guides__introduction-section,
    .page-game-guides__game-types-section,
    .page-game-guides__general-principles,
    .page-game-guides__how-to-start,
    .page-game-guides__tips-section,
    .page-game-guides__faq-section,
    .page-game-guides__cta-bottom-section,
    .page-game-guides__container,
    .page-game-guides__game-card,
    .page-game-guides__tip-card,
    .page-game-guides__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Ensure padding for container-like elements to prevent edge-to-edge content */
    .page-game-guides__container,
    .page-game-guides__hero-content,
    .page-game-guides__game-card,
    .page-game-guides__tip-card,
    .page-game-guides__faq-item {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

    /* Button responsiveness */
    .page-game-guides__cta-button,
    .page-game-guides__card-button,
    .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;
        text-align: center;
    }
    .page-game-guides__hero-content .page-game-guides__cta-button {
        margin: 0 auto;
    }

    .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;
        overflow: hidden !important;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}