/* style/game-guides.css */

/* Custom Colors */
:root {
    --bg-primary: #08160F; /* Background */
    --bg-card: #11271B; /* Card BG */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
}

.page-game-guides {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Arial', sans-serif; /* Placeholder font */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure space above footer */
}

/* Fixed header spacing - body handles padding-top */
/* page-game-guides__hero-section should have a small padding-top, not var(--header-offset) */
.page-game-guides__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-guides__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-game-guides__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Example max width */
    margin-bottom: 30px; /* Space between image and text */
}

.page-game-guides__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-game-guides__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font size */
    font-weight: 700;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-game-guides__cta-button {
    background: var(--btn-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
    display: inline-block; /* Ensure button behaves correctly */
    max-width: 100%; /* For responsive */
    box-sizing: border-box; /* For responsive */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-game-guides__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-game-guides__section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-game-guides__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-game-guides__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--glow-color);
    border-radius: 2px;
}

.page-game-guides__content-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: left;
}

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

.page-game-guides__category-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px; /* Ensure cards have a minimum height */
}

.page-game-guides__category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-game-guides__category-image-wrapper {
    width: 100%;
    height: 200px; /* Fixed height for consistent images */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.page-game-guides__card-content {
    padding: 20px;
    flex-grow: 1; /* Allow content to grow */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-game-guides__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    text-decoration: none;
    display: block; /* Ensure link takes full space */
}

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

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

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

.page-game-guides__card-button {
    background: var(--btn-gradient);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    display: inline-block;
    max-width: 100%; /* For responsive */
    box-sizing: border-box; /* For responsive */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-game-guides__card-button:hover {
    opacity: 0.9;
}

.page-game-guides__btn-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.page-game-guides__list-item {
    text-align: left;
    margin-bottom: 10px;
    color: var(--text-secondary);
    padding-left: 25px;
    position: relative;
}

.page-game-guides__list-item::before {
    content: '•';
    color: var(--glow-color);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-game-guides__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

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

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

.page-game-guides__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    color: var(--gold-color);
}

.page-game-guides__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-game-guides__faq-question {
    flex-grow: 1;
    text-align: left;
}

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

.page-game-guides__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: left;
    border-top: 1px solid var(--divider-color);
    line-height: 1.8;
}

/* Final CTA Section */
.page-game-guides__final-cta {
    background-color: var(--deep-green);
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-game-guides__final-cta-title {
    font-size: 2rem;
    color: var(--gold-color);
    margin-bottom: 20px;
}

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

/* General image styling for content area */
.page-game-guides img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space nicely */
}

/* CSS for content area images - min size enforcement */
/* This rule applies to any img within .page-game-guides that isn't specifically excluded by a more specific selector */
.page-game-guides__section .page-game-guides__content-image {
    min-width: 200px; /* Enforce min width */
    min-height: 200px; /* Enforce min height */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-game-guides__hero-section {
        padding: 60px 20px;
        padding-top: 10px;
    }
    .page-game-guides__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-game-guides__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-game-guides__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is small decoration */
    }
    .page-game-guides__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-game-guides__intro-text {
        font-size: 1rem;
    }
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .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;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    .page-game-guides__section,
    .page-game-guides__faq-section,
    .page-game-guides__final-cta {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-game-guides__game-categories {
        grid-template-columns: 1fr;
    }

    .page-game-guides img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-game-guides__section,
    .page-game-guides__card,
    .page-game-guides__container,
    .page-game-guides__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for content containers is already handled by section/faq-section/final-cta */
    }

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