/* style/resources.css */

/* Base styles for the page-resources scope */
.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 from shared.css */
}

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

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

.page-resources__section-description {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    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;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

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

/* About Section */
.page-resources__about-section {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-resources__about-section .page-resources__section-title,
.page-resources__about-section .page-resources__section-description {
    color: #333333;
}

.page-resources__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-resources__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-resources__image-block img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-resources__features-section {
    background-color: #1a1a1a; /* Darker background for contrast */
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__feature-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

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

.page-resources__feature-card p {
    font-size: 1em;
    color: #f0f0f0;
}

/* Game Types Section */
.page-resources__game-types-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-resources__game-types-section .page-resources__section-title,
.page-resources__game-types-section .page-resources__section-description {
    color: #333333;
}

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

.page-resources__game-card {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

.page-resources__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources__game-card img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-resources__game-card .page-resources__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-resources__game-card .page-resources__card-title a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: none;
}

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

.page-resources__game-card p {
    font-size: 0.95em;
    color: #555555;
}

/* Promotion Section */
.page-resources__promotion-section {
    background-color: #121212; /* Body background color */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-resources__promo-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__promo-card img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

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

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

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

.page-resources__promo-card p {
    font-size: 1em;
    color: #f0f0f0;
}

.page-resources__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* How-To-Play Section */
.page-resources__how-to-play-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-resources__how-to-play-section .page-resources__section-title,
.page-resources__how-to-play-section .page-resources__section-description {
    color: #333333;
}

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

.page-resources__how-to-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #333333;
    text-align: center;
}

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

.page-resources__how-to-card p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #555555;
}

/* Safety Section */
.page-resources__safety-section {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources__safety-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__safety-card img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

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

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

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

.page-resources__safety-card p {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-resources__faq-section .page-resources__section-title,
.page-resources__faq-section .page-resources__section-description {
    color: #333333;
}

.page-resources__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-resources__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.page-resources__faq-item.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #e8e8e8;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg);
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px;
}

.page-resources__faq-answer p {
    margin-bottom: 0;
}

/* Contact Section */
.page-resources__contact-section {
    background-color: #121212;
    color: #ffffff;
    padding: 60px 0;
}

.page-resources__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-resources__contact-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-resources__contact-card p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* General Card Styles */
.page-resources__card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.page-resources__dark-bg {
  color: #ffffff; /* Deep background, light text */
  background-color: #121212;
}

.page-resources__light-bg {
  color: #333333; /* Light background, dark text */
  background-color: #ffffff;
}

.page-resources__text-contrast-fix {
  color: #f0f0f0 !important; /* Ensure visibility on dark backgrounds */
}

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

@media (max-width: 768px) {
    .page-resources__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary, .page-resources__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-resources__container {
        padding: 15px;
    }

    .page-resources__content-grid {
        grid-template-columns: 1fr;
    }

    .page-resources__features-grid,
    .page-resources__game-types-grid,
    .page-resources__promotion-cards,
    .page-resources__how-to-grid,
    .page-resources__safety-grid,
    .page-resources__contact-methods {
        grid-template-columns: 1fr;
    }

    .page-resources__feature-card img,
    .page-resources__game-card img,
    .page-resources__promo-card img,
    .page-resources__safety-card img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Ensure all content containers are responsive */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__text-block, .page-resources__image-block {
        padding: 0 !important;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px 20px;
    }
}