/* apps/core/static/css/core/faq.css */

/* Category Buttons */
.category-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #374151;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.category-btn:hover {
    background-color: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.category-btn.active {
    background-color: #2563eb;
    border-color: #2563eb;
    color: white;
}

/* FAQ Items */
.faq-item {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-question:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

.faq-item.open .faq-question {
    background-color: #eff6ff;
}

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

.faq-answer {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* Search Results Highlight */
.highlight {
    background-color: #fef3c7;
    padding: 0 0.25rem;
    border-radius: 0.25rem;
}

/* Category Display */
.faq-category.hidden {
    display: none;
}

.faq-category.visible {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
        padding-top: 0;
    }
}

/* Additional styling for FAQ items */
.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    border: none;
    cursor: pointer;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    display: none;
}

.faq-answer > div {
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.faq-icon {
    color: #9ca3af;
    transition: transform 0.3s ease;
}