/* style/resources.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #0a0a0a;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --login-button-color: #EA7C07;
}

.page-resources {
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--dark-bg-color);
}

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

.page-resources__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    text-align: center;
    background: var(--primary-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-resources__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.6;
    color: var(--secondary-color);
}

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

.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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow word breaking */
    box-sizing: border-box;
}

.page-resources__btn-primary {
    background-color: var(--login-button-color); /* Using custom color for login/register */
    color: var(--secondary-color);
    border: 2px solid var(--login-button-color);
}

.page-resources__btn-primary:hover {
    background-color: darken(#EA7C07, 10%); /* Darken for hover effect */
    border-color: darken(#EA7C07, 10%);
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-resources__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
    color: var(--text-on-light);
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__section-description {
    color: var(--text-on-dark);
}

.page-resources__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
    padding: 60px 0;
}

.page-resources__video-section {
    padding: 60px 0;
    background-color: var(--dark-bg-color);
    color: var(--text-on-dark);
}

.page-resources__video-section .page-resources__section-title,
.page-resources__video-section .page-resources__section-description {
    color: var(--text-on-dark);
}

.page-resources__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 10px;
}

.page-resources__video-wrapper .page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    cursor: pointer;
}

.page-resources__game-guides {
    padding: 60px 0;
    background-color: var(--dark-bg-color);
}

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

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-on-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-resources__card-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
    color: var(--secondary-color);
}

.page-resources__card-text {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--text-on-dark);
}

.page-resources__card-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
    background-color: darken(#26A9E0, 10%);
}

.page-resources__strategy-tips {
    padding: 60px 0;
}

.page-resources__content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-resources__text-block {
    flex: 2;
    color: var(--text-on-light);
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-resources__text-block p {
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1.05em;
    color: var(--text-on-light);
}

.page-resources__image-block {
    flex: 1;
    text-align: center;
}

.page-resources__main-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    min-height: 200px;
}

.page-resources__safety-responsible {
    padding: 60px 0;
    background-color: var(--dark-bg-color);
}

.page-resources__news-updates {
    padding: 60px 0;
}

.page-resources__faq-section {
    padding: 60px 0;
    background-color: var(--dark-bg-color);
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--secondary-color);
}

.page-resources__faq-question h3 {
    margin: 0;
    color: inherit;
}

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

.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, padding 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

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

.page-resources__faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: inherit;
}

.page-resources__faq-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: var(--text-on-dark);
}

.page-resources__faq-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

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

.page-resources__cta-bottom {
    padding: 80px 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-resources__cta-bottom .page-resources__section-title {
    color: var(--primary-color);
}

.page-resources__cta-bottom .page-resources__section-description {
    color: var(--text-on-light);
    margin-bottom: 30px;
}

.page-resources__cta-bottom .page-resources__btn-primary {
    background-color: var(--login-button-color);
    border-color: var(--login-button-color);
    color: var(--secondary-color);
}

.page-resources__cta-bottom .page-resources__btn-primary:hover {
    background-color: darken(#EA7C07, 10%);
    border-color: darken(#EA7C07, 10%);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }

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

    .page-resources__hero-description,
    .page-resources__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-resources__hero-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }

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

    .page-resources__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .page-resources__video-section {
        padding: 40px 0;
    }

    .page-resources__video-wrapper {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__game-guides,
    .page-resources__strategy-tips,
    .page-resources__safety-responsible,
    .page-resources__news-updates,
    .page-resources__faq-section,
    .page-resources__cta-bottom {
        padding: 40px 0;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__card {
        padding: 20px;
    }

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

    .page-resources__card-title {
        font-size: 1.3em;
    }

    .page-resources__card-text {
        font-size: 0.95em;
    }

    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

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

    .page-resources__text-block p {
        font-size: 0.9em;
    }

    .page-resources__main-image {
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

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

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

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px 20px;
    }

    .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__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;
        overflow: hidden !important;
    }

    .page-resources__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-resources__cta-buttons {
        display: flex;
        flex-direction: column;
    }
}

/* Ensure content images are not smaller than 200px */
.page-resources__card-image,
.page-resources__main-image {
    min-width: 200px;
    min-height: 200px;
}

/* Color Contrast Fixes (if needed, based on body background being dark) */
.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__section-description,
.page-resources__light-bg .page-resources__text-block p,
.page-resources__light-bg .page-resources__sub-title,
.page-resources__cta-bottom .page-resources__section-description {
    color: var(--text-on-light); /* Ensure dark text on light background */
}

.page-resources__dark-section .page-resources__card-text,
.page-resources__dark-section .page-resources__faq-question h3,
.page-resources__dark-section .page-resources__faq-answer p {
    color: var(--text-on-dark); /* Ensure light text on dark background */
}

.page-resources__card {
    background-color: rgba(38, 169, 224, 0.2); /* Use primary color with transparency for card background on dark theme */
}

.page-resources__card:hover {
    background-color: rgba(38, 169, 224, 0.3); 
}

.page-resources__card-title a {
    color: var(--secondary-color); /* Ensure card titles are visible */
}
.page-resources__card-title a:hover {
    color: var(--primary-color);
}

.page-resources__card-link {
    background-color: var(--login-button-color);
    color: var(--secondary-color);
}
.page-resources__card-link:hover {
    background-color: darken(#EA7C07, 10%);
}

/* Specific contrast for FAQ toggle */
.page-resources__faq-toggle {
    color: var(--primary-color);
}

.page-resources__faq-item.active .page-resources__faq-answer {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-answer {
    color: var(--text-on-dark);
}

.page-resources__faq-footer a {
    color: var(--primary-color);
}

/* Darken function for Sass-like color manipulation (if not using preprocessor) */
/* This is a placeholder, actual darkening would need JS or a preprocessor */
/* For CSS, we just use a slightly different color or rgba */