/* FAQ Accordion Styles - Collapsible FAQ Component */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.faq-item {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    transition: all 0.3s ease;
    gap: 1rem;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question span:first-child {
    flex: 1;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
    color: var(--text-secondary);
}

.faq-answer ul, .faq-answer ol {
    margin: 0.75rem 0 0 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-answer li {
    margin-bottom: 0.5rem;
}

.faq-answer strong {
    color: var(--text-color);
}

/* Dark mode adjustments */
[data-theme="dark"] .faq-item {
    background: var(--bg-secondary);
}

[data-theme="dark"] .faq-question:hover {
    background: rgba(74, 144, 226, 0.1);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1.25rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1rem 1.25rem;
    }
    
    .faq-icon {
        font-size: 1.25rem;
    }
}

/* Animation for smooth expansion */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active .faq-answer {
    animation: fadeIn 0.3s ease;
}

/* Accessibility - Focus styles */
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.faq-question:focus:not(:focus-visible) {
    outline: none;
}