/* style/resources.css */

/* Base styles for the page content, ensuring text is readable on dark body background */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit body background */
}

/* Header offset for main content */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* General container for content sections */
.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

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

/* Text blocks */
.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for readability */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    min-width: 200px;
    min-height: 200px;
}

.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: 2;
}

.page-resources__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF; /* White for strong contrast on dark overlay */
}

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
    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, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

.page-resources__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* Section specific styles */
.page-resources__introduction-section,
.page-resources__advantages-section,
.page-resources__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff;
}

.page-resources__dark-section {
    background-color: #0d0d0d; /* Slightly different dark for contrast */
    color: #ffffff;
}

.page-resources__download-guide-section,
.page-resources__games-section,
.page-resources__cta-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background for variety */
    color: #ffffff;
}

/* Video Section */
.page-resources__video-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    text-align: center;
    color: #ffffff;
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for the video */
    margin: 0 auto 30px;
    background-color: #000; /* Placeholder background */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-resources__video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

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

.page-resources__download-card {
    background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark bg */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-resources__download-card .page-resources__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__download-card .page-resources__card-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 20px;
}

.page-resources__step-list {
    text-align: left;
    list-style-type: decimal;
    padding-left: 25px;
    color: #f0f0f0;
}

.page-resources__step-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Advantages Section */
.page-resources__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__advantage-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__advantage-card .page-resources__card-icon {
    width: 100%; /* Ensure images take full width of card, not smaller */
    max-width: 250px; /* Max width for icon-like images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__advantage-card .page-resources__card-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-resources__advantage-card p {
    color: #f0f0f0;
}

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

.page-resources__game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-resources__game-card .page-resources__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__game-card .page-resources__card-title {
    font-size: 1.5em;
    margin: 20px 15px 10px;
    color: #26A9E0;
}

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

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

.page-resources__game-card p {
    padding: 0 15px 20px;
    color: #f0f0f0;
    flex-grow: 1; /* Push content to bottom */
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #26A9E0; /* Question text in brand color */
    list-style: none; /* For details/summary */
}

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
    transform: rotate(45deg); /* Rotate + to become X or - */
}

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

/* Call to Action Section */
.page-resources__cta-section {
    position: relative;
    width: 100%;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #0a0a0a; /* Ensure dark background */
}

.page-resources__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__cta-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    padding: 40px;
    border-radius: 10px;
}

.page-resources__cta-content .page-resources__section-title {
    color: #FFFFFF;
    margin-bottom: 25px;
}

.page-resources__cta-content .page-resources__text-block {
    margin-bottom: 40px;
}

/* Center text utility */
.page-resources__center-text {
    text-align: center;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Header offset in mobile */
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        height: auto;
        min-height: 400px;
    }

    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-resources__container {
        padding: 15px;
    }

    .page-resources__download-steps,
    .page-resources__advantages-grid,
    .page-resources__games-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__download-card,
    .page-resources__advantage-card,
    .page-resources__game-card {
        padding: 20px;
    }

    .page-resources__game-card .page-resources__card-image {
        height: 180px;
    }

    .page-resources__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }

    .page-resources__faq-answer {
        padding: 0 15px 15px;
    }

    .page-resources__cta-section {
        padding: 60px 0;
    }

    .page-resources__cta-content {
        padding: 30px;
    }

    /* Mobile image and video responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources video,
    .page-resources__video-player {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Ensure all content containers are responsive */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper,
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Video section specific mobile adjustments */
    .page-resources__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Fixed header offset for mobile video section */
    }
    .page-resources__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: auto !important; /* Let padding-bottom control height */
    }

    /* Button specific mobile adjustments */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .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;
        padding-left: 15px; /* Ensure padding inside button */
        padding-right: 15px;
    }
    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically on mobile */
        gap: 15px !important;
    }
}

/* Image styles - ensuring no filters and min size */
.page-resources img {
    /* No filter properties here */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* Specific colors from palette */
.page-resources__login-button {
    background-color: #EA7C07;
    border-color: #EA7C07;
    color: #FFFFFF;
}
.page-resources__login-button:hover {
    background-color: #c96806;
    border-color: #c96806;
}

/* Ensure no override for body background from shared.css */
/* This page's content sections will manage their own backgrounds,
   but the overall page text color is set to white for the dark body background */
.page-resources__introduction-section,
.page-resources__advantages-section,
.page-resources__faq-section {
    background-color: #0d0d0d; /* Slightly lighter dark for sections */
}
.page-resources__download-guide-section,
.page-resources__games-section,
.page-resources__cta-section {
    background-color: #1a1a1a; /* Even lighter dark for sections */
}

/* Contrast fix if needed (as per instructions, for emergencies) */
.page-resources__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}