/* style/gaming-guides.css */

/* Variables from shared.css (assuming --bg-main is dark, #08160F) */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --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;
}

.page-gaming-guides {
    color: var(--color-text-main); /* Light text for dark background */
    background-color: var(--color-background);
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

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

.page-gaming-guides__section {
    padding: 60px 0;
    text-align: center;
}

.page-gaming-guides__section-title {
    color: var(--color-text-main);
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

/* Hero Section */
.page-gaming-guides__hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-gaming-guides__hero-image-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-gaming-guides__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-gaming-guides__hero-content {
    position: relative; /* Not absolutely positioned over image */
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-gaming-guides__main-title {
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
}

.page-gaming-guides__hero-description {
    color: var(--color-text-secondary);
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-gaming-guides__btn-primary,
.page-gaming-guides__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-gaming-guides__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
}

.page-gaming-guides__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-gaming-guides__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Introduction & Text Blocks */
.page-gaming-guides__introduction .page-gaming-guides__text-block,
.page-gaming-guides__how-to-use .page-gaming-guides__text-block,
.page-gaming-guides__cta-bottom .page-gaming-guides__text-block {
    max-width: 800px;
    margin: 20px auto;
    font-size: 1.05em;
    color: var(--color-text-secondary);
}

.page-gaming-guides__introduction a,
.page-gaming-guides__key-aspects a,
.page-gaming-guides__how-to-use a,
.page-gaming-guides__featured-guides a,
.page-gaming-guides__faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-gaming-guides__introduction a:hover,
.page-gaming-guides__key-aspects a:hover,
.page-gaming-guides__how-to-use a:hover,
.page-gaming-guides__featured-guides a:hover,
.page-gaming-guides__faq-answer a:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

/* Game Types Grid */
.page-gaming-guides__game-types .page-gaming-guides__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gaming-guides__card {
    background-color: var(--color-card-bg); /* Darker background for cards */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-gaming-guides__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-gaming-guides__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-gaming-guides__card-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin: 20px 20px 10px;
    font-weight: 700;
}

.page-gaming-guides__card-title a {
    color: inherit;
    text-decoration: none;
}

.page-gaming-guides__card-title a:hover {
    color: var(--color-glow);
    text-decoration: underline;
}

.page-gaming-guides__card-description {
    color: var(--color-text-secondary);
    font-size: 0.95em;
    padding: 0 20px 20px;
    flex-grow: 1; /* Pushes content to bottom */
}

/* Key Aspects Section (Dark background) */
.page-gaming-guides__key-aspects {
    background-color: var(--color-deep-green); /* Use deep green for contrast */
    color: var(--color-text-main);
}

.page-gaming-guides__key-aspects .page-gaming-guides__section-title {
    color: var(--color-gold);
}

.page-gaming-guides__list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0;
    max-width: 800px;
    text-align: left;
}

.page-gaming-guides__list-item {
    background-color: rgba(17, 168, 78, 0.1); /* Slightly transparent primary color */
    border-left: 5px solid var(--color-primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.05em;
    color: var(--color-text-main);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-gaming-guides__list-item strong {
    color: var(--color-gold);
}

.page-gaming-guides__ordered-list {
    list-style-type: decimal;
    padding-left: 25px;
    margin: 40px auto 0;
    max-width: 800px;
    text-align: left;
    color: var(--color-text-secondary);
}

.page-gaming-guides__ordered-list .page-gaming-guides__list-item {
    background-color: transparent;
    border-left: none;
    padding: 5px 0;
    margin-bottom: 10px;
    box-shadow: none;
    color: var(--color-text-secondary);
}

/* Benefits Grid */
.page-gaming-guides__benefits .page-gaming-guides__benefit-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-gaming-guides__benefits .page-gaming-guides__card {
    text-align: center;
}

.page-gaming-guides__benefits .page-gaming-guides__card-title {
    color: var(--color-primary);
}

/* Featured Guides Grid */
.page-gaming-guides__featured-guides {
    background-color: var(--color-deep-green); /* Use deep green for contrast */
    color: var(--color-text-main);
}

.page-gaming-guides__featured-guides .page-gaming-guides__section-title {
    color: var(--color-gold);
}

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

.page-gaming-guides__featured-guides .page-gaming-guides__card-title {
    color: var(--color-gold);
}

/* FAQ Section */
.page-gaming-guides__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

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

.page-gaming-guides__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

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

.page-gaming-guides__faq-item details > summary {
    list-style: none;
}
.page-gaming-guides__faq-item details > summary::-webkit-details-marker {
    display: none;
}

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

.page-gaming-guides__faq-answer p {
    margin-bottom: 10px;
}

/* Call to Action Bottom */
.page-gaming-guides__cta-bottom {
    padding: 80px 0;
    background: linear-gradient(to right, var(--color-deep-green), var(--color-primary));
}

.page-gaming-guides__cta-bottom .page-gaming-guides__cta-box {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--color-glow);
}

.page-gaming-guides__cta-bottom .page-gaming-guides__section-title {
    color: var(--color-gold);
    margin-bottom: 25px;
    font-size: 2.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-gaming-guides__section-title {
        font-size: 2em;
    }
    .page-gaming-guides__main-title {
        font-size: clamp(1.8em, 6vw, 3em);
    }
    .page-gaming-guides__hero-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-gaming-guides__section {
        padding: 40px 0;
    }
    .page-gaming-guides__container {
        padding: 0 15px;
    }
    .page-gaming-guides__section-title {
        font-size: 1.8em;
    }
    .page-gaming-guides__main-title {
        font-size: clamp(1.6em, 7vw, 2.5em);
    }
    .page-gaming-guides__hero-section {
        padding-bottom: 40px;
    }
    .page-gaming-guides__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-gaming-guides__btn-primary,
    .page-gaming-guides__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images and containers responsive */
    .page-gaming-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-gaming-guides__section,
    .page-gaming-guides__card,
    .page-gaming-guides__container,
    .page-gaming-guides__cta-box,
    .page-gaming-guides__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gaming-guides__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-gaming-guides__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-gaming-guides__game-types .page-gaming-guides__grid-container,
    .page-gaming-guides__benefits .page-gaming-guides__benefit-cards,
    .page-gaming-guides__featured-guides .page-gaming-guides__featured-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-gaming-guides__card-image {
        height: auto; /* Allow height to adjust */
    }
    .page-gaming-guides__list-item,
    .page-gaming-guides__ordered-list .page-gaming-guides__list-item {
        font-size: 0.95em;
    }
    .page-gaming-guides__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-gaming-guides__faq-answer {
        padding: 0 20px 15px;
    }
    .page-gaming-guides__cta-bottom .page-gaming-guides__section-title {
        font-size: 1.8em;
    }
    .page-gaming-guides__cta-bottom .page-gaming-guides__cta-box {
        padding: 30px 20px;
    }
    .page-gaming-guides__hero-image-wrapper {
        padding-bottom: 75%; /* Adjust aspect ratio for mobile hero */
    }
}

@media (max-width: 480px) {
    .page-gaming-guides__section-title {
        font-size: 1.5em;
    }
    .page-gaming-guides__main-title {
        font-size: clamp(1.4em, 8vw, 2em);
    }
    .page-gaming-guides__hero-description {
        font-size: 0.9em;
    }
    .page-gaming-guides__cta-buttons {
        gap: 10px;
    }
    .page-gaming-guides__cta-bottom .page-gaming-guides__section-title {
        font-size: 1.5em;
    }
}

/* Ensure content area images are not small */
.page-gaming-guides img:not(.page-gaming-guides__hero-image) { /* Exclude hero image from this specific size check if needed, but hero must also be large */
    min-width: 200px;
    min-height: 200px;
}
/* Ensure all images within .page-gaming-guides are large enough */
.page-gaming-guides__section img,
.page-gaming-guides__card img {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters on images */
.page-gaming-guides img {
    filter: none;
}