/* Estilos do Container */
.wsc-faq-container {
    max-width: 800px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Estilos da Pesquisa */
.wsc-faq-search {
    position: relative;
    margin-bottom: 30px;
}

.wsc-faq-search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.wsc-faq-search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.wsc-faq-search-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.wsc-faq-search-button:hover {
    color: #0066cc;
}

/* Lista de FAQs */
.wsc-faq-list {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Item do FAQ */
.wsc-faq-item {
    border-bottom: 1px solid #e9ecef;
}

.wsc-faq-item:last-child {
    border-bottom: none;
}

/* Botão da Pergunta */
.wsc-faq-question {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.wsc-faq-question:hover {
    background-color: #f8f9fa;
}

.wsc-faq-question[aria-expanded="true"] {
    background-color: #f8f9fa;
    color: #0066cc;
}

/* Ícone de Expansão */
.wsc-faq-icon {
    width: 20px;
    height: 20px;
    position: relative;
    margin-left: 15px;
    flex-shrink: 0;
}

.wsc-faq-icon::before,
.wsc-faq-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    transition: all 0.3s ease;
}

.wsc-faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.wsc-faq-icon::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.wsc-faq-question[aria-expanded="true"] .wsc-faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* Resposta */
.wsc-faq-answer {
    padding: 0 20px;
    height: 0;
    opacity: 0;
    overflow: hidden;
    transform-origin: top;
    transform: translateZ(0);
    transition: height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    will-change: height, opacity, padding;
}

.wsc-faq-answer[hidden] {
    display: block;
}

.wsc-faq-question[aria-expanded="true"] + .wsc-faq-answer {
    height: auto;
    opacity: 1;
    padding: 0 20px 20px;
}

/* Feedback */
.wsc-faq-feedback {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.wsc-faq-feedback p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #6c757d;
}

.wsc-faq-vote {
    background: none;
    border: none;
    font-size: 20px;
    padding: 5px 10px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.wsc-faq-vote:hover {
    transform: scale(1.2);
}

.wsc-faq-vote[disabled] {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wsc-faq-item {
    animation: fadeIn 0.3s ease forwards;
}

/* Responsividade */
@media (max-width: 768px) {
    .wsc-faq-container {
        margin: 20px;
    }

    .wsc-faq-question {
        padding: 15px;
        font-size: 15px;
    }

    .wsc-faq-question[aria-expanded="true"] + .wsc-faq-answer {
        padding: 0 15px 15px;
    }
}

/* Estados de Loading */
.wsc-faq-loading {
    position: relative;
    min-height: 200px;
}

.wsc-faq-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Highlight de Pesquisa */
.wsc-faq-highlight {
    background-color: rgba(255, 193, 7, 0.2);
    padding: 0 2px;
    border-radius: 2px;
    color: inherit;
    font-weight: 500;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Mensagem de Nenhum Resultado */
.wsc-faq-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 16px;
}

/* Categorias */
.wsc-faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.wsc-faq-category {
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wsc-faq-category:hover {
    background: #e9ecef;
    color: #1a1a1a;
}

.wsc-faq-category.active {
    background: #0066cc;
    color: #ffffff;
    border-color: #0066cc;
} 