/* style/resources.css */

/* --- Base Styles --- */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: #121212; /* Inherited from shared, explicitly set for clarity */
}

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

.page-resources__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-resources__sub-title {
    font-size: 1.8em;
    color: #26A9E0; /* Primary color for sub-titles */
    margin-bottom: 15px;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.page-resources__text-center {
    text-align: center;
}

/* --- Color Contrast Classes --- */
.page-resources__dark-bg {
    background-color: #121212; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 60px 0;
}

.page-resources__light-bg {
    background-color: #f8f8f8; /* Light background */
    color: #333333; /* Dark text */
    padding: 60px 0;
}

/* --- Buttons --- */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-resources__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-resources__btn-primary:hover {
    background-color: #1a7fb2;
    border-color: #1a7fb2;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Primary brand color for text */
    border: 2px solid #26A9E0;
    margin: 10px;
}

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-resources__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: none;
    padding: 0;
    margin-top: 15px;
    text-align: left;
}

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

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
    flex-direction: column; /* Default for mobile, will change for desktop */
}

.page-resources__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-resources__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative; /* To contain the video absolutely */
    cursor: pointer;
}

.page-resources__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
    /* No filter to change color, only brightness */
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text */
    border-radius: 10px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

/* --- Introduction Section --- */
.page-resources__introduction {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-resources__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-direction: column; /* Default for mobile */
}

.page-resources__image-left {
    flex: 1;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-resources__text-content {
    flex: 1;
    text-align: left;
}

/* --- Guides Section --- */
.page-resources__guides {
    padding-top: 40px;
    padding-bottom: 40px;
}

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

.page-resources__guide-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency in cards */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-resources__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__card-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-resources__card-text {
    font-size: 0.95em;
    color: #e0e0e0;
    flex-grow: 1; /* Allow text to grow and push button down */
}

/* --- Game Types Section --- */
.page-resources__game-types {
    padding-top: 40px;
    padding-bottom: 40px;
}

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

.page-resources__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-resources__game-card .page-resources__card-image {
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-resources__game-card .page-resources__card-title a {
    color: #26A9E0;
}
.page-resources__game-card .page-resources__card-text {
    color: #555555;
}

/* --- FAQ Section --- */
.page-resources__faq-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-resources__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0; /* Primary color for questions */
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-resources__faq-qtext {
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
}

.page-resources__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #e0e0e0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For <details> tag, native open state */
.page-resources__faq-item[open] .page-resources__faq-answer {
    max-height: 500px; /* A large enough value to accommodate content */
    padding: 15px 25px 25px;
}

.page-resources__faq-item[open] .page-resources__faq-question {
    border-bottom: none;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    content: "−"; /* Changed by JS for better control */
}

/* Hide default marker for details summary */
.page-resources__faq-item summary {
    list-style: none;
}
.page-resources__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-resources__cta-faq {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1em;
    color: #e0e0e0;
}

.page-resources__cta-faq p {
    margin-bottom: 20px;
}

/* --- VIP & Promotions Section --- */
.page-resources__vip-promotions {
    padding-top: 40px;
    padding-bottom: 40px;
}

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

.page-resources__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.page-resources__promo-card .page-resources__card-image {
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-resources__promo-card .page-resources__card-title a {
    color: #26A9E0;
}
.page-resources__promo-card .page-resources__card-text {
    color: #555555;
}

/* --- Download App Section --- */
.page-resources__download-app {
    padding-top: 40px;
    padding-bottom: 40px;
}

.page-resources__download-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-direction: column-reverse; /* Image above text on mobile */
}

.page-resources__download-content {
    flex: 1;
    text-align: center;
}

.page-resources__download-image {
    flex: 1;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-resources__btn-download {
    margin-right: 15px;
}

/* --- Conclusion Section --- */
.page-resources__conclusion {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-resources__btn-large {
    padding: 15px 40px;
    font-size: 1.2em;
    margin-top: 30px;
}

/* --- Responsive Design --- */
@media (min-width: 769px) {
    .page-resources__hero-section {
        flex-direction: row;
    }

    .page-resources__hero-content {
        text-align: left;
        padding-left: 50px;
        padding-right: 50px;
        background: transparent; /* No background on desktop hero content */
    }

    .page-resources__hero-title {
        font-size: 4em;
    }

    .page-resources__image-text-block {
        flex-direction: row;
    }

    .page-resources__text-content {
        text-align: left;
    }

    .page-resources__download-flex {
        flex-direction: row;
    }

    .page-resources__download-content {
        text-align: left;
    }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .page-resources__hero-title {
        font-size: 2.5em;
    }

    .page-resources__section-title {
        font-size: 1.8em;
    }

    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-resources__sub-title {
        font-size: 1.5em;
    }

    .page-resources__container {
        padding: 15px;
    }

    /* Fixed header spacing */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__image-left,
    .page-resources__card-image,
    .page-resources__download-image {
        min-width: unset !important; /* Allow smaller on mobile if needed, but still >= 200px */
        min-height: unset !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Video responsiveness */
    .page-resources video,
    .page-resources__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__hero-video-wrapper,
    .page-resources__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Button responsiveness */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-link,
    .page-resources a[class*="button"],
    .page-resources a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Adjust margin for stacking */
    }

    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-resources__download-flex {
        flex-direction: column-reverse;
    }

    .page-resources__download-content {
        text-align: center;
    }

    .page-resources__download-image {
        max-width: 100%;
    }

    /* Ensure containers don't cause overflow */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__image-text-block,
    .page-resources__guide-grid,
    .page-resources__game-grid,
    .page-resources__faq-list,
    .page-resources__promo-grid,
    .page-resources__download-flex {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific padding for sections if needed */
    .page-resources__introduction,
    .page-resources__guides,
    .page-resources__game-types,
    .page-resources__faq-section,
    .page-resources__vip-promotions,
    .page-resources__download-app,
    .page-resources__conclusion {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-resources__faq-answer {
        padding: 10px 20px 20px;
    }
}