/* faq.css - FAQ Section Styles */

.faq-section {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--primary-gold) 50%, var(--secondary-gold) 100%);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(123, 44, 191, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.faq-section .section-title {
    color: var(--deep-purple);
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.faq-item {
    background: var(--soft-white);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(123, 44, 191, 0.1);
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(123, 44, 191, 0.15);
    border-color: var(--royal-purple);
}

.faq-item.active {
    border-color: var(--deep-purple);
    box-shadow: 0 12px 48px rgba(123, 44, 191, 0.2);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.8rem 2rem;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-purple);
    display: flex;
    justify-content: between;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
}

.faq-question::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(123, 44, 191, 0.05), transparent);
    transition: left 0.6s ease;
}

.faq-question:hover::before {
    left: 100%;
}

.faq-question:hover {
    background: rgba(123, 44, 191, 0.03);
}

.faq-question span {
    flex: 1;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.faq-question i {
    flex-shrink: 0;
    color: var(--royal-purple);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.faq-item.active .faq-question {
    background: rgba(123, 44, 191, 0.05);
    color: var(--warm-cream);
}

.faq-item.active .faq-question i {
    color: var(--warm-cream);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(123, 44, 191, 0.02);
}

.faq-answer p {
    padding: 0 2rem 2rem 2rem;
    margin: 0;
    color: var(--text-medium);
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease 0.1s;
}

.faq-item.active .faq-answer p {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Visual States */
.faq-item:first-child {
    animation: fadeInUp 0.6s ease forwards;
}

.faq-item:nth-child(2) {
    animation: fadeInUp 0.6s ease 0.1s forwards;
}

.faq-item:nth-child(3) {
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.faq-item:nth-child(4) {
    animation: fadeInUp 0.6s ease 0.3s forwards;
}

/* Mobile Specific Styles */
@media (max-width: 479px) {
    .faq-section .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .faq-question {
        padding: 1.5rem;
        font-size: 1rem;
        gap: 0.8rem;
    }
    
    .faq-question i {
        font-size: 1rem;
    }
    
    .faq-answer p {
        padding: 0 1.5rem 1.5rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .faq-item {
        margin-bottom: 1rem;
        border-radius: 15px;
    }
}

/* Tablet Styles */
@media (min-width: 480px) and (max-width: 767px) {
    .faq-question {
        padding: 1.6rem;
        font-size: 1.05rem;
    }
    
    .faq-answer p {
        padding: 0 1.6rem 1.8rem 1.6rem;
        font-size: 0.98rem;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .faq-section .section-title {
        font-size: 2.5rem;
    }
    
    .faq-question {
        padding: 2rem 2.5rem;
        font-size: 1.2rem;
    }
    
    .faq-question i {
        font-size: 1.3rem;
    }
    
    .faq-answer p {
        padding: 0 2.5rem 2.5rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .faq-item {
        margin-bottom: 2rem;
    }
}

/* Large Desktop Styles */
@media (min-width: 1024px) {
    .faq-list {
        max-width: 900px;
    }
    
    .faq-question {
        padding: 2.2rem 3rem;
        font-size: 1.25rem;
    }
    
    .faq-answer p {
        padding: 0 3rem 3rem 3rem;
        font-size: 1.15rem;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .faq-item,
    .faq-question,
    .faq-answer,
    .faq-answer p {
        transition: none;
        animation: none;
    }
    
    .faq-question::before {
        transition: none;
    }
    
    .faq-question:hover::before {
        left: -100%;
    }
    
    .faq-item:hover {
        transform: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .faq-item {
        border-width: 3px;
        border-color: var(--deep-purple);
    }
    
    .faq-item.active {
        background: rgba(123, 44, 191, 0.1);
    }
    
    .faq-question {
        color: #000000;
    }
    
    .faq-question i {
        color: var(--deep-purple);
    }
    
    .faq-answer p {
        color: #000000;
    }
}

/* Focus States for Keyboard Navigation */
.faq-question:focus {
    outline: 3px solid var(--royal-purple);
    outline-offset: 2px;
    background: rgba(123, 44, 191, 0.05);
}

.faq-question:focus-visible {
    outline: 3px solid var(--royal-purple);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .faq-section {
        background: white;
    }
    
    .faq-section::before {
        display: none;
    }
    
    .faq-item {
        background: white;
        border: 2px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .faq-question {
        color: #000;
        background: #f5f5f5;
    }
    
    .faq-question i {
        display: none;
    }
    
    .faq-answer {
        max-height: none;
        overflow: visible;
    }
    
    .faq-answer p {
        opacity: 1;
        transform: none;
        color: #333;
        padding: 1rem 2rem 2rem 2rem;
    }
    
    .faq-section .section-title {
        color: #000;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .faq-item {
        background: rgba(44, 44, 44, 0.8);
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .faq-question {
        color: var(--primary-gold);
    }
    
    .faq-answer p {
        color: rgba(255, 255, 255, 0.8);
    }
    
    .faq-item.active .faq-question {
        background: rgba(244, 208, 63, 0.1);
    }
}