/* style/resources.css */

/* Base styles for the resources page */
.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 (#0a0a0a) */
}

/* Header offset */
.page-resources__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Section styling */
.page-resources__hero-section {
    background: linear-gradient(135deg, #26A9E0, #0a0a0a);
    color: #ffffff;
    text-align: center;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Ensure sufficient height */
}

.page-resources__info-section,
.page-resources__security-section,
.page-resources__support-faq {
    background-color: #ffffff; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-resources__betting-guide,
.page-resources__new-player-tips,
.page-resources__cta-bottom {
    background-color: #0a0a0a; /* Dark background for these sections */
    color: #ffffff; /* Light text for dark background */
    padding: 60px 0;
}

/* Titles */
.page-resources__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-resources__subtitle {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-resources__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-resources__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit color from parent section */
}

.page-resources__guide-title,
.page-resources__feature-title,
.page-resources__tip-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
    color: inherit;
}

/* Paragraphs and descriptions */
.page-resources__section-description,
.page-resources__guide-text,
.page-resources__feature-text,
.page-resources__tip-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    color: inherit;
}

/* CTA Buttons */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-link {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

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

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

.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-link {
    background-color: transparent;
    color: #26A9E0;
    border: 1px solid #26A9E0;
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

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

/* Image styling */
.page-resources__image-wrapper {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Specific section layouts */
.page-resources__guide-item,
.page-resources__security-feature,
.page-resources__tip-item {
    margin-bottom: 50px;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible background on dark sections */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__info-section .page-resources__guide-item,
.page-resources__security-section .page-resources__security-feature,
.page-resources__support-faq .page-resources__support-channels,
.page-resources__support-faq .page-resources__faq-list {
    background-color: #f8f8f8; /* Light background for items in light sections */
    color: #333333;
    border: 1px solid #e0e0e0;
}


/* Support Channels List */
.page-resources__channel-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-resources__channel-item {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1em;
    color: inherit;
}

.page-resources__channel-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
}

/* FAQ Styling (using <details> and <summary>) */
.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
    background-color: #f8f8f8; /* Light background for FAQ items */
    color: #333333;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #eaf6fa; /* Lighter background for summary */
    color: #26A9E0;
    border-bottom: 1px solid #e0e0e0;
    list-style: none; /* Hide default marker for details/summary */
}

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

.page-resources__faq-item[open] .page-resources__faq-question {
    border-bottom: 1px solid #d0d0d0;
}

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

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

.page-resources__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__main-title {
        font-size: 2.8em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__subtitle {
        font-size: 1.1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-link {
        width: 80%;
        margin-bottom: 15px;
    }
}

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

    .page-resources__main-title {
        font-size: 2.2em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-resources__hero-section,
    .page-resources__info-section,
    .page-resources__betting-guide,
    .page-resources__security-section,
    .page-resources__new-player-tips,
    .page-resources__support-faq,
    .page-resources__cta-bottom {
        padding: 40px 0;
    }
    .page-resources__container {
        padding: 0 15px; /* Add padding to container on mobile */
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__cta-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0 15px; /* Add padding to image wrapper */
    }

    /* General section padding for mobile */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      /* padding-left: 15px; */ /* Already handled by .page-resources__container */
      /* padding-right: 15px; */ /* Already handled by .page-resources__container */
    }

    .page-resources__guide-item,
    .page-resources__security-feature,
    .page-resources__tip-item,
    .page-resources__faq-item {
        padding: 20px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
    }
    .page-resources__faq-answer {
        padding: 10px 20px 15px;
    }
}

/* Color contrast fixes based on body background #0a0a0a (dark) */
/* All text is already set to #ffffff or inherited from sections with specific backgrounds */
/* Light background sections will have dark text, dark background sections will have light text */

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

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

/* Ensure link colors are visible */
.page-resources a {
    color: #26A9E0;
    text-decoration: none;
}

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

/* Ensure button text contrast is high */
.page-resources__btn-primary {
    background: #26A9E0;
    color: #ffffff;
}

.page-resources__btn-secondary {
    background: transparent;
    color: #26A9E0; /* Text color on dark bg */
    border-color: #26A9E0;
}
.page-resources__betting-guide .page-resources__btn-link,
.page-resources__new-player-tips .page-resources__btn-link {
    color: #26A9E0; /* Link text color on dark bg */
    border-color: #26A9E0;
}
.page-resources__betting-guide .page-resources__btn-link:hover,
.page-resources__new-player-tips .page-resources__btn-link:hover {
    background-color: #26A9E0;
    color: #ffffff;
}
.page-resources__security-section .page-resources__btn-link,
.page-resources__support-faq .page-resources__btn-link {
    color: #26A9E0; /* Link text color on light bg */
    border-color: #26A9E0;
}
.page-resources__security-section .page-resources__btn-link:hover,
.page-resources__support-faq .page-resources__btn-link:hover {
    background-color: #26A9E0;
    color: #ffffff;
}