/* style/support.css */

/* Variables for consistency */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-bg-color: #0a0a0a; /* Body background */
    --light-text-color: #ffffff;
    --dark-text-color: #333333;
    --login-button-color: #EA7C07;
    --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly visible on dark background */
    --card-bg-light: #ffffff;
    --border-color: rgba(255, 255, 255, 0.15);
    --padding-section-desktop: 80px 20px;
    --padding-section-mobile: 40px 15px;
    --max-content-width: 1200px;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-support {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--light-text-color); /* Default text color for the page, contrasting with body's dark background */
    background-color: transparent; /* Body handles the main background */
}

/* Sections with specific background colors */
.page-support__dark-bg {
    background-color: var(--dark-bg-color);
    color: var(--light-text-color);
}

.page-support__light-bg {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
}

/* Container for content width limitation */
.page-support__container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 20px; /* Default horizontal padding */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Min size for images */
}

.page-support__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-support__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.page-support__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.page-support__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* General button styling */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__method-link,
.page-support__inline-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-support__btn-primary {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: 2px solid var(--primary-color);
}

.page-support__btn-primary:hover {
    background-color: #208cb3; /* Darken primary color */
    border-color: #208cb3;
}

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

.page-support__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-support__inline-link {
    color: var(--primary-color);
    text-decoration: underline;
}
.page-support__inline-link:hover {
    color: #4dbce6; /* Lighten primary color */
}

/* Section titles and text blocks */
.page-support__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.3;
}

.page-support__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__cta-text {
    text-align: center;
    margin-top: 30px;
}

/* Contact Methods Section */
.page-support__contact-methods {
    padding: var(--padding-section-desktop);
}

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

.page-support__method-card {
    background-color: var(--card-bg-light); /* Light background for cards in light section */
    color: var(--dark-text-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 350px; /* Ensure cards have similar height */
}

.page-support__method-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

.page-support__method-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-support__method-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

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

.page-support__method-link:hover {
    background-color: #208cb3; /* Darken primary color */
}


/* FAQ Section */
.page-support__faq-section {
    padding: var(--padding-section-desktop);
}

.page-support__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__faq-item {
    background-color: var(--card-bg-dark); /* Darker background for cards in dark section */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--light-text-color);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.page-support__faq-item[open] .page-support__faq-question {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid transparent;
}

.page-support__faq-qtext {
    flex-grow: 1;
}

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

.page-support__faq-item[open] .page-support__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-support__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    opacity: 0.85;
}

/* Remove default marker for details summary */
.page-support__faq-item summary {
    list-style: none;
}
.page-support__faq-item summary::-webkit-details-marker {
    display: none;
}


/* Responsible Gaming & Feedback Sections */
.page-support__responsible-gaming,
.page-support__feedback-section,
.page-support__final-cta {
    padding: var(--padding-section-desktop);
}

.page-support__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px; /* Min size for images */
    min-height: 200px; /* Min size for images */
}

/* Final CTA Section */
.page-support__final-cta {
    text-align: center;
    padding-bottom: var(--padding-section-desktop);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-support__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-support__section-title {
        font-size: clamp(1.6em, 4.5vw, 2.2em);
    }
    .page-support__description,
    .page-support__text-block,
    .page-support__method-description,
    .page-support__faq-answer p {
        font-size: 1em;
    }
    .page-support__methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-support__method-card {
        padding: 25px;
    }
    .page-support__faq-question {
        padding: 18px 20px;
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 20px 18px;
    }
}

@media (max-width: 768px) {
    /* General mobile container/padding */
    .page-support__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Sections padding */
    .page-support__contact-methods,
    .page-support__faq-section,
    .page-support__responsible-gaming,
    .page-support__feedback-section,
    .page-support__final-cta {
        padding: var(--padding-section-mobile) !important;
    }

    /* Hero section specific */
    .page-support__hero-section {
        padding-top: 10px !important; /* Body handles --header-offset */
        padding-bottom: 40px;
    }
    .page-support__hero-image-wrapper {
        max-height: 300px;
    }
    .page-support__hero-image {
        min-height: 200px !important; /* Ensure min size */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Image responsive adaptions */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__content-image,
    .page-support__method-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
    }
    
    /* Ensure image containers also adapt */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow */
    }

    /* Button responsive adaptions */
    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        align-items: center;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__method-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add some internal padding to buttons */
        padding-right: 15px;
    }
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-support__methods-grid {
        grid-template-columns: 1fr;
    }
    .page-support__method-card {
        min-height: auto; /* Allow height to adjust */
    }
    .page-support__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-support__faq-answer {
        padding: 0 15px 15px;
    }
}

/* Ensure no filter on images */
.page-support img {
    filter: none;
}