﻿/* faq.css - FAQ-specific styles that integrate with the existing design system */

/* FAQ Search Section */
.faq-search-container {
    margin: 40px auto;
    max-width: 600px;
}

.faq-search {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #6c757d;
    font-size: 1.1rem;
    z-index: 2;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 5px 15px rgba(127, 127, 193, 0.1);
}

    .search-input:focus {
        border-color: var(--primary-blue);
        box-shadow: 0 5px 20px rgba(127, 127, 193, 0.2);
        transform: translateY(-2px);
    }

    .search-input::placeholder {
        color: #6c757d;
    }

.clear-search {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 2;
}

    .clear-search:hover {
        background: #f8f9fa;
        color: #495057;
    }

/* FAQ Categories */
.faq-categories {
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    justify-content: center;
    min-width: max-content;
    padding: 0 20px;
}

.category-tab {
    padding: 12px 24px;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    outline: none;
}

    .category-tab:hover {
        border-color: var(--sky-blue);
        color: var(--ocean-blue);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(127, 127, 193, 0.1);
    }

    .category-tab.active {
        background: var(--primary-blue);
        border-color: var(--primary-blue);
        color: white;
        box-shadow: 0 5px 20px rgba(127, 127, 193, 0.3);
    }

/* FAQ Content */
.faq-content {
    margin-bottom: 60px;
}

.faq-category-section {
    margin-bottom: 50px;
    transition: opacity 0.3s ease;
}

    .faq-category-section.hidden {
        display: none;
    }

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 2rem;
    color: var(--ocean-blue);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--sky-blue);
    position: relative;
}

.category-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--sky-blue), var(--primary-blue));
    border-radius: 50%;
    box-shadow: 0 8px 25px rgba(127, 127, 193, 0.2);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* FAQ Items */
.faq-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(127, 127, 193, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .faq-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(127, 127, 193, 0.15);
        border-color: var(--sky-blue);
    }

    .faq-item.active {
        border-color: var(--primary-blue);
        box-shadow: 0 10px 30px rgba(127, 127, 193, 0.2);
    }

    .faq-item.hidden {
        display: none;
    }

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

    .faq-question:hover {
        background: #f8f9fa;
    }

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: white;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.4;
    color: inherit;
    flex-grow: 1;
    padding-right: 20px;
}

.faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--sky-blue);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .faq-toggle i {
        color: white;
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

.faq-item.active .faq-toggle {
    background: white;
    transform: rotate(180deg);
}

    .faq-item.active .faq-toggle i {
        color: var(--primary-blue);
        transform: rotate(225deg);
    }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-answer-content {
    padding-top: 20px;
    line-height: 1.6;
    color: #495057;
}

    .faq-answer-content p {
        margin-bottom: 15px;
    }

        .faq-answer-content p:last-child {
            margin-bottom: 0;
        }

    .faq-answer-content a {
        color: var(--primary-blue);
        text-decoration: none;
        font-weight: 500;
    }

        .faq-answer-content a:hover {
            color: var(--sunset-orange);
            text-decoration: underline;
        }

    .faq-answer-content ul,
    .faq-answer-content ol {
        margin: 15px 0;
        padding-left: 25px;
    }

    .faq-answer-content li {
        margin-bottom: 8px;
    }

/* No FAQs State */
.no-faqs {
    text-align: center;
    padding: 80px 20px;
}

.no-faqs-content {
    max-width: 500px;
    margin: 0 auto;
}

    .no-faqs-content i {
        font-size: 4rem;
        color: var(--sky-blue);
        margin-bottom: 25px;
        display: block;
    }

    .no-faqs-content h3 {
        font-size: 2rem;
        color: var(--ocean-blue);
        margin-bottom: 15px;
    }

    .no-faqs-content p {
        font-size: 1.1rem;
        color: #6c757d;
        margin-bottom: 30px;
        line-height: 1.6;
    }

/* No Search Results */
.no-search-results {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.no-results-content {
    max-width: 500px;
    margin: 0 auto;
}

    .no-results-content i {
        font-size: 3.5rem;
        color: var(--sky-blue);
        margin-bottom: 20px;
        display: block;
    }

    .no-results-content h3 {
        font-size: 1.8rem;
        color: var(--ocean-blue);
        margin-bottom: 15px;
    }

    .no-results-content p {
        font-size: 1rem;
        color: #6c757d;
        margin-bottom: 25px;
        line-height: 1.6;
    }

    .no-results-content a {
        color: var(--primary-blue);
        text-decoration: none;
        font-weight: 500;
    }

        .no-results-content a:hover {
            color: var(--sunset-orange);
            text-decoration: underline;
        }

/* FAQ CTA Section */
.faq-cta-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--ocean-blue));
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-top: 60px;
}

.faq-cta-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.faq-cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.6;
}

.faq-cta-section .cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-section .btn {
    min-width: 180px;
}

/* Search Highlighting */
.search-highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* FAQ Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeInUp 0.6s ease forwards;
}

    .faq-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .faq-item:nth-child(2) {
        animation-delay: 0.15s;
    }

    .faq-item:nth-child(3) {
        animation-delay: 0.2s;
    }

    .faq-item:nth-child(4) {
        animation-delay: 0.25s;
    }

    .faq-item:nth-child(5) {
        animation-delay: 0.3s;
    }

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-search-container {
        margin: 30px auto;
        padding: 0 20px;
    }

    .search-input {
        padding: 12px 15px 12px 45px;
        font-size: 0.95rem;
    }

    .search-icon {
        left: 15px;
        font-size: 1rem;
    }

    .clear-search {
        right: 12px;
    }

    .category-tabs {
        justify-content: flex-start;
        padding: 0 10px;
    }

    .category-tab {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .category-title {
        font-size: 1.6rem;
        gap: 10px;
        margin-bottom: 25px;
        flex-direction: column;
        text-align: center;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .faq-question {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

        .faq-question h3 {
            font-size: 1.1rem;
            padding-right: 0;
        }

    .faq-toggle {
        align-self: flex-end;
        margin-top: -35px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 25px;
    }

    .faq-answer-content {
        padding-top: 15px;
        font-size: 0.95rem;
    }

    .faq-cta-section h2 {
        font-size: 2rem;
    }

    .faq-cta-section p {
        font-size: 1.1rem;
    }

    .faq-cta-section .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .faq-cta-section .btn {
        width: 100%;
        max-width: 280px;
    }

    .no-faqs-content i,
    .no-results-content i {
        font-size: 3rem;
    }

    .no-faqs-content h3 {
        font-size: 1.6rem;
    }

    .no-results-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 1.4rem;
    }

    .faq-question {
        padding: 15px;
    }

        .faq-question h3 {
            font-size: 1rem;
            line-height: 1.3;
        }

    .faq-toggle {
        width: 30px;
        height: 30px;
        margin-top: -30px;
    }

        .faq-toggle i {
            font-size: 0.8rem;
        }

    .faq-item.active .faq-answer {
        padding: 0 15px 20px;
    }

    .faq-cta-section {
        padding: 40px 0;
    }

        .faq-cta-section h2 {
            font-size: 1.8rem;
        }
}
