/**
 * FAQ Section - Colorful Accordion Design
 * Matches the vibrant multi-color palette
 */

.faq-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(139, 92, 246, 0.03) 100%);
    position: relative;
    overflow: visible;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-primary);
    transition: height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.2),
                0 0 60px rgba(236, 72, 153, 0.1);
    transform: translateY(-4px);
}

.faq-item:hover::before {
    height: 100%;
}

.faq-item.active {
    border-color: rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(59, 130, 246, 0.03) 100%);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.faq-item.active::before {
    height: 100%;
}

.faq-question {
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3 {
    color: var(--primary);
}

.faq-item.active .faq-question h3 {
    color: var(--primary);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.faq-item:hover .faq-icon {
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.75rem 2rem;
}

.faq-answer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    animation: fadeInText 0.5s ease forwards;
}

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

/* Colorful hover effects for different FAQ items */
.faq-item:nth-child(1):hover {
    border-color: rgba(139, 92, 246, 0.5);
}

.faq-item:nth-child(2):hover {
    border-color: rgba(59, 130, 246, 0.5);
}

.faq-item:nth-child(3):hover {
    border-color: rgba(236, 72, 153, 0.5);
}

.faq-item:nth-child(4):hover {
    border-color: rgba(6, 182, 212, 0.5);
}

.faq-item:nth-child(5):hover {
    border-color: rgba(249, 115, 22, 0.5);
}

.faq-item:nth-child(6):hover {
    border-color: rgba(139, 92, 246, 0.5);
}

/* Active state colorful accents */
.faq-item:nth-child(1).active::before {
    background: linear-gradient(180deg, #8b5cf6 0%, #ec4899 100%);
}

.faq-item:nth-child(2).active::before {
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
}

.faq-item:nth-child(3).active::before {
    background: linear-gradient(180deg, #ec4899 0%, #f97316 100%);
}

.faq-item:nth-child(4).active::before {
    background: linear-gradient(180deg, #06b6d4 0%, #3b82f6 100%);
}

.faq-item:nth-child(5).active::before {
    background: linear-gradient(180deg, #f97316 0%, #ec4899 100%);
}

.faq-item:nth-child(6).active::before {
    background: linear-gradient(180deg, #8b5cf6 0%, #06b6d4 100%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 0;
    }
    
    .faq-question {
        padding: 1.25rem 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
}
