/* style/resources.css */

/* --- Base Styles & Layout --- */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

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

.page-resources__dark-section {
    background-color: #1a1a1a; /* A darker background for contrast sections */
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #26A9E0; /* Brand primary color for titles */
    font-weight: bold;
}

.page-resources__dark-section .page-resources__section-title {
    color: #ffffff; /* White titles on dark sections */
}

.page-resources__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for paragraphs on dark background */
}

.page-resources__dark-section .page-resources__paragraph {
    color: #f0f0f0;
}

.page-resources__highlight {
    color: #26A9E0; /* Highlight important keywords */
    font-weight: bold;
}

/* --- Buttons --- */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-resources__btn-primary:hover {
    background-color: #1e87c0; /* Slightly darker on hover */
    border-color: #1e87c0;
}

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

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

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

.page-resources__btn-link:hover {
    text-decoration: underline;
    color: #1e87c0;
}

/* --- Hero Section --- */
.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    text-align: center;
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: bold;
}

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

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

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

/* --- Cards --- */
.page-resources__card {
    background-color: #1a1a1a; /* Dark background for cards on dark sections */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    min-height: 400px; /* Ensure cards have a minimum height */
}

.page-resources__access-guide .page-resources__card {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-resources__games-summary .page-resources__card {
    background-color: #0d0d0d; /* Even darker for game cards */
    color: #ffffff;
}

.page-resources__card-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #26A9E0;
    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-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image display */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensures image takes full width and no extra space */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-resources__card-text {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow text to grow and fill space */
}

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


/* --- Content Blocks (for account management, support) --- */
.page-resources__content-block {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.page-resources__account-management .page-resources__content-block {
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-resources__content-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #26A9E0;
    font-weight: bold;
}

.page-resources__content-block .page-resources__paragraph {
    color: #f0f0f0;
}

.page-resources__content-block .page-resources__paragraph a {
    color: #26A9E0;
    text-decoration: none;
}
.page-resources__content-block .page-resources__paragraph a:hover {
    text-decoration: underline;
}

/* --- FAQ Section --- */
.page-resources__faq-list {
    margin-top: 30px;
}

.page-resources__faq-item {
    background-color: #0d0d0d; /* Dark background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: left;
}

.page-resources__faq-item summary {
    list-style: none; /* Hide default marker for details */
    cursor: pointer;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-resources__faq-qtext {
    flex-grow: 1;
    color: #26A9E0;
}

.page-resources__faq-qtext a {
    color: #26A9E0;
    text-decoration: none;
}

.page-resources__faq-qtext a:hover {
    text-decoration: underline;
}

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

.page-resources__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    content: "−"; /* Change to minus when open */
}

/* --- Links in text --- */
.page-resources a {
    color: #26A9E0;
    text-decoration: none;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__card-title {
        font-size: 1.4em;
    }
    .page-resources__content-title {
        font-size: 1.6em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__paragraph {
        font-size: 0.95em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Content area image responsive rules */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__content-grid,
    .page-resources__grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__card-image {
        height: 200px; /* Adjust height for mobile cards */
    }

    .page-resources__card {
        padding: 20px;
        min-height: unset; /* Remove min-height on mobile */
    }

    .page-resources__content-block {
        padding: 20px;
    }

    .page-resources__faq-item summary {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-resources__faq-answer {
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__card-title {
        font-size: 1.2em;
    }
    .page-resources__content-title {
        font-size: 1.4em;
    }
}

/* Ensure all images are not smaller than 200x200 (redundant with card-image, but good for general safety) */
.page-resources img {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure content area images CSS dimensions lower bound */
/* The card-image height: 250px and object-fit: cover ensures it's not smaller than 200px */
/* The mobile media query sets height: auto, but max-width: 100% and card padding ensures it's > 200px */