/* FAQ Styles */

/* FAQ Container */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* FAQ Question Button */
.faq-question {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
}

.faq-question:hover {
    background-color: rgba(120, 53, 15, 0.05) !important;
}

.faq-question[aria-expanded="true"] {
    background-color: rgba(120, 53, 15, 0.05) !important;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.show {
    max-height: 500px;
    transition: max-height 0.3s ease-in, padding 0.3s ease-in;
}

/* Search Box Enhancements */
#faq-search {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#faq-search:focus {
    box-shadow: 0 10px 25px rgba(120, 53, 15, 0.15), 0 0 0 3px rgba(120, 53, 15, 0.1);
}

/* Search Results Highlighting */
.search-highlight {
    background-color: #fef3c7;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 500;
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* No Results State */
.no-results {
    animation: fadeIn 0.5s ease-in;
}

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

/* FAQ Item Animation */
.faq-item {
    animation: slideIn 0.3s ease-out;
}

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

/* RTL Specific Styles */
.rtl .faq-question {
    text-align: right;
}

.rtl .faq-answer {
    text-align: right;
}

/* Focus States for Accessibility */
.faq-question:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
        padding-top: 0;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* Search Input Clear Button */
.search-clear-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
}

.search-clear-btn:hover {
    color: #374151;
}

.rtl .search-clear-btn {
    right: auto;
    left: 1rem;
}

/* Enhanced Hover Effects */
.faq-item:hover .faq-question h3 {
    color: #92400e;
    transition: color 0.2s ease;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for FAQ answers */
.faq-answer::-webkit-scrollbar {
    width: 4px;
}

.faq-answer::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.faq-answer::-webkit-scrollbar-thumb {
    background: #78350f;
    border-radius: 2px;
}

.faq-answer::-webkit-scrollbar-thumb:hover {
    background: #92400e;
}
