/* Estilos para FAQ */

/* Seção FAQ */
.faq-section {
    padding: 5rem 0;
    background: linear-gradient(145deg, var(--bg-color), var(--bg-secondary));
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Busca FAQ */
.faq-search {
    margin-bottom: 3rem;
}

.faq-search .search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.faq-search i {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 1;
}

.faq-search .search-container input {
    padding-left: 3.5rem;
}

/* Categorias do FAQ */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.faq-category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.faq-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.faq-category-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.faq-category-btn i {
    font-size: 1.1rem;
}

/* Conteúdo do FAQ */
.faq-content {
    margin-bottom: 3rem;
}

.faq-category-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-category-content.active {
    display: block;
    opacity: 1;
}

/* Itens do FAQ */
.faq-item {
    background: var(--card-bg);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--card-shadow-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary-color);
}

.faq-question span {
    flex-grow: 1;
    margin-right: 1rem;
}

.faq-question i {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.open .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    opacity: 1;
    padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    padding-top: 0.5rem;
}

/* Resultados de busca */
.search-results {
    margin-bottom: 2rem;
    text-align: center;
}

.no-results {
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.no-results i {
    font-size: 3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.no-results h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.no-results p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Destacar termos de busca */
mark {
    background: var(--primary-color);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* CTA FAQ */
.faq-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 16px;
    color: white;
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
}

.faq-cta h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.faq-cta .btn {
    background: white;
    color: var(--primary-color);
    border: none;
}

.faq-cta .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Responsividade */
@media (max-width: 768px) {
    .faq-categories {
        flex-direction: column;
        align-items: center;
    }

    .faq-category-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }

    .faq-cta {
        padding: 2rem 1rem;
    }

    .faq-search input {
        padding: 0.875rem 1.25rem 0.875rem 3.25rem;
    }
}

@media (max-width: 576px) {
    .faq-question {
        padding: 0.875rem;
    }

    .faq-answer {
        padding: 0 0.875rem 1rem;
    }

    .faq-item.open .faq-answer {
        padding: 0 0.875rem 1rem;
    }
}