/**
 * Frontend CSS para Accordion FAQ Custom
 * Estilos para o accordion no front-end
 */

.afaq-wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
}

.afaq-item {
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
}

.afaq-item:last-child {
    border-bottom: none;
}

.afaq-item-title {
    width: 100%;
    background: transparent;
    border: none;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.afaq-item-title:hover {
    opacity: 0.8;
}

.afaq-item-title:focus {
    outline: none;
}

.afaq-item-title.afaq-open {
    font-weight: 600;
}

.afaq-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    min-width: 20px;
    flex-shrink: 0;
}

.afaq-icon-default {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.afaq-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
}

.afaq-title-text {
    flex: 1;
    word-break: break-word;
}

.afaq-item-content {
    padding: 0 0 15px 32px;
    line-height: 1.6;
    animation: slideDown 0.2s ease;
}

.afaq-item-content p {
    margin: 0 0 10px 0;
}

.afaq-item-content p:last-child {
    margin-bottom: 0;
}

.afaq-item-content ul,
.afaq-item-content ol {
    margin: 0 0 10px 20px;
    padding: 0;
}

.afaq-item-content li {
    margin-bottom: 5px;
}

.afaq-item-content strong {
    font-weight: 600;
}

.afaq-item-content em {
    font-style: italic;
}

.afaq-item-content a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.afaq-item-content a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .afaq-item-title {
        padding: 12px 0;
        font-size: 15px;
    }

    .afaq-item-content {
        padding: 0 0 12px 28px;
    }

    .afaq-icon-wrapper {
        margin-right: 10px;
    }

    .afaq-icon-default {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .afaq-item-title {
        padding: 10px 0;
        font-size: 14px;
    }

    .afaq-item-content {
        padding: 0 0 10px 24px;
    }

    .afaq-icon-wrapper {
        margin-right: 8px;
        min-width: 18px;
    }

    .afaq-icon-default {
        font-size: 16px;
    }
}

/* Accessibility */
.afaq-item-title:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .afaq-item-title {
        cursor: auto;
    }

    .afaq-item-content {
        display: block !important;
    }
}
