/* Public site FAQ - use with partials/public_faq.html; requires :root vars from public pages */

.faq {
    padding: 6rem 3rem;
    background: var(--darker-bg);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-badge {
    display: inline-block;
    background: rgba(124, 58, 237, 0.15);
    color: var(--secondary-purple);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: var(--fs-badge, 0.9rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(124, 58, 237, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-header h2 {
    font-size: var(--fs-h2, 2.75rem);
    font-weight: 800;
    color: var(--text-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-question {
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
}

.faq-question span:first-child {
    font-size: var(--fs-body, 1.1rem);
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
    padding-right: 2rem;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: rgba(124, 58, 237, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-purple);
    font-weight: 400;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-icon {
    background: rgba(124, 58, 237, 0.25);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--fs-body, 1rem);
}

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

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--gradient-main);
    color: white;
}

.faq-item.active {
    border-color: var(--primary-purple);
}

@media (max-width: 768px) {
    .faq {
        padding: 3rem 1.5rem;
    }

    .faq-header {
        margin-bottom: 2.5rem;
    }

    .faq-badge {
        font-size: var(--fs-badge);
        padding: 0.4rem 1rem;
        margin-bottom: 1rem;
    }

    .faq-header h2 {
        font-size: var(--fs-h2);
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question span:first-child {
        font-size: var(--fs-body-sm);
        padding-right: 1rem;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 1.25rem;
    }

    .faq-answer {
        font-size: var(--fs-small);
        padding: 0 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
}
