/* faqq.css */

/* FAQ Section */
.faq-section {
    background: linear-gradient(135deg, var(--background-body) 0%, var(--background-container) 100%);
}

/* Decorative Elements */
.faq-decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-primary) 0%, rgba(74,107,255,0.1) 70%);
    filter: blur(20px);
    opacity: 0.15;
    z-index: -1;
}

.faq-decorative-circle.circle-1 {
    width: 250px;
    height: 250px;
    top: -80px;
    left: -80px;
}

.faq-decorative-circle.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: -100px;
}

.faq-decorative-blob {
    position: absolute;
    width: 400px;
    height: 400px;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle, var(--accent-secondary) 0%, rgba(255,107,107,0.05) 70%);
    filter: blur(30px);
    opacity: 0.1;
    z-index: -1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    background: var(--accent-primary);
    color: var(--text-on-accent);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.title-highlight {
    color: var(--accent-primary);
    position: relative;
    display: inline-block;
}

.title-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(74, 107, 255, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* FAQ Grid */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* FAQ Item */
.faq-item {
    composes: common-card from './common.css';
    border: 1px solid var(--border-color-light);
}

/* FAQ Question */
.faq-question {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question-inner {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
}

.faq-question-number {
    color: var(--accent-primary);
    font-weight: var(--font-weight-black);
    font-size: 1.5rem;
    min-width: 40px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.faq-question-text-wrapper {
    flex-grow: 1;
    text-align: left;
}

.faq-question-text {
    color: var(--text-heading);
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
}

.faq-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: rgba(74, 107, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-icon {
    color: var(--accent-primary);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

/* FAQ Answer */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: var(--background-hover);
}

.faq-answer-content {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.answer-decoration {
    padding-top: 0.25rem;
}

.faq-answer p {
    color: var(--text-body);
    line-height: 1.8;
    margin: 0;
    flex-grow: 1;
}

/* Active State */
.faq-question[aria-expanded="true"] .faq-question-inner {
    padding-bottom: 1rem;
}

.faq-question[aria-expanded="true"] .faq-question-number {
    opacity: 1;
    color: var(--highlight-win);
}

.faq-question[aria-expanded="true"] .faq-question-text {
    color: var(--accent-primary);
}

.faq-question[aria-expanded="true"] .faq-icon-wrapper {
    background: var(--highlight-win);
}

.faq-question[aria-expanded="true"] .faq-icon {
    color: var(--text-on-accent);
    transform: rotate(180deg);
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px;
}

/* FAQ Footer */
.faq-footer {
    text-align: center;
    background: var(--background-card);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color-light);
}

.faq-footer-content {
    max-width: 500px;
    margin: 0 auto;
}

.faq-footer h3 {
    color: var(--text-heading);
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.faq-footer p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.faq-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-primary);
    color: var(--text-on-accent);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: var(--font-weight-bold);
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-contact-button:hover {
    background: var(--button-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.3);
}

.faq-contact-button svg {
    transition: transform 0.3s ease;
}

.faq-contact-button:hover svg {
    transform: translateX(3px);
}

/* Focus States for Accessibility */
.faq-question:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-section {
        padding: 3rem 0;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .faq-question-inner {
        padding: 1.25rem;
        gap: 1rem;
    }
    .faq-question-number {
        font-size: 1.25rem;
        min-width: 30px;
    }
    .faq-question-text {
        font-size: 1rem;
    }
    .faq-icon-wrapper {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    .faq-icon {
        font-size: 0.9rem;
    }
    .faq-footer {
        padding: 1.5rem;
    }
    .faq-footer h3 {
        font-size: 1.25rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

.section-badge, .section-title, .section-subtitle {
    animation: fadeInUp 0.4s ease forwards;
}

.section-title { animation-delay: 0.1s; }
.section-subtitle { animation-delay: 0.2s; }