/* style/support.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-bottom: 60px; /* Space above footer */
}

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

/* Section titles */
.page-support__section-title {
    font-size: 2.5em;
    color: #ffffff; /* White for titles on dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

/* Section introductory paragraphs */
.page-support__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    background: linear-gradient(135deg, #017439, #005a2e); /* Brand colors for hero background */
}

.page-support__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

.page-support__hero-section .page-support__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.page-support__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
}

.page-support__description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    max-width: 100%;
}

.page-support__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-support__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    transform: translateY(-2px);
}

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

.page-support__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #2a2a4a; /* Light background for this section */
    color: #ffffff; /* Darker background, so light text */
}

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

.page-support__faq-item {
    background-color: #1a1a2e; /* Darker background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    list-style: none; /* Remove default marker */
    position: relative;
}

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

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

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #017439; /* Brand color for toggle */
}

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

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

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-support__contact-section .page-support__section-title {
    color: #ffffff;
}

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

.page-support__contact-card {
    background-color: #0f0f20; /* Slightly darker than body background for contrast */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__contact-card .page-support__card-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for card titles */
    margin-bottom: 15px;
}

.page-support__contact-card p {
    font-size: 1.05em;
    margin-bottom: 25px;
    color: #f0f0f0;
}

.page-support__contact-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
}

.page-support__contact-section .page-support__container {
    position: relative;
    z-index: 1;
}

/* Troubleshooting Section */
.page-support__troubleshooting-section {
    padding: 80px 0;
    background-color: #2a2a4a; /* Light background for this section */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

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

.page-support__troubleshooting-item {
    background-color: #1a1a2e; /* Darker background for items */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__troubleshooting-title {
    font-size: 1.6em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
}

.page-support__troubleshooting-item p {
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-support__troubleshooting-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.05;
}

.page-support__troubleshooting-section .page-support__container {
    position: relative;
    z-index: 1;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

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

.page-support__feature-card {
    background-color: #0f0f20; /* Slightly darker for contrast */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-support__feature-card .page-support__card-title {
    font-size: 1.8em;
    color: #017439; /* Brand color for titles */
    margin-bottom: 15px;
}

.page-support__feature-card p {
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-support__responsible-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-support__responsible-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
}

.page-support__responsible-gaming-section .page-support__container {
    position: relative;
    z-index: 1;
}

/* Quick Links Section */
.page-support__quick-links-section {
    padding: 80px 0;
    background-color: #2a2a4a; /* Light background for this section */
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-support__quick-links-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px 30px;
}

.page-support__quick-links-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    border-left: 4px solid #017439; /* Brand color accent */
    padding-left: 15px;
}

.page-support__quick-links-list a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__quick-links-list a:hover {
    color: #005a2e;
    text-decoration: underline;
}

.page-support__quick-links-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.05;
}

.page-support__quick-links-section .page-support__container {
    position: relative;
    z-index: 1;
}

/* Video Section */
.page-support__video-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff;
}

.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it behaves as a block element */
}

.page-support__video-link {
    display: block; /* Make the entire video area clickable */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1; /* Above the video to capture clicks */
    cursor: pointer;
}

.page-support__video-link video {
    pointer-events: none; /* Let the link handle clicks */
}

.page-support__video-cta {
    text-align: center;
    font-size: 1.2em;
    margin-top: 30px;
    color: #f0f0f0;
}

/* Inline links */
.page-support__inline-link {
    color: #017439; /* Brand color for inline links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-support__inline-link:hover {
    color: #005a2e;
}

/* Color contrast enforcement - Dark body background means light text */
.page-support__dark-bg {
    color: #ffffff;
}

.page-support__light-bg {
    color: #ffffff; /* Still light text because the main body is dark */
}

/* Ensure images maintain original colors and are responsive */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Prohibit CSS filter */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
        min-height: 450px;
    }

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

    .page-support__description {
        font-size: 1em;
    }

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

    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-support__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-support__faq-item summary {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-support__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    .page-support__contact-methods,
    .page-support__troubleshooting-grid,
    .page-support__responsible-features,
    .page-support__quick-links-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__contact-card,
    .page-support__troubleshooting-item,
    .page-support__feature-card {
        padding: 25px;
    }

    .page-support__contact-card .page-support__card-title,
    .page-support__troubleshooting-title,
    .page-support__feature-card .page-support__card-title {
        font-size: 1.5em;
    }

    .page-support__quick-links-list li {
        font-size: 1em;
    }

    /* Ensure images, videos, and buttons are fully responsive on mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper,
    .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; /* Prevent horizontal scroll */
    }

    .page-support__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        margin-left: 0;
        margin-right: 0;
    }

    .page-support video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__cta-button,
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support a[class*="button"],
    .page-support 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;
      padding-right: 15px;
    }

    .page-support__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}