/* === FAQ PAGE STYLES — BuzzingFrame ===
   Styles for the FAQ / Knowledge Base page
   Matched to canonical homepage design system
   All classes prefixed with faq-page-
   ================================================ */


/* --- 1. HERO SECTION --- */
.faq-page-hero {
    position: relative;
    padding: 10vh 0;
    width: 100%;
    background: transparent;
    z-index: 2;
}

.faq-page-hero-grid {
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    gap: 4vw;
}

.faq-page-sidebar {
    position: relative;
}

.faq-page-hero-content {
    display: flex;
    flex-direction: column;
    max-width: 700px;
    padding-bottom: 20px;
}

/* faq-page-eyebrow, faq-page-headline, faq-page-subline → shared.css */


/* --- 2. CATEGORIES SECTION --- */
.faq-page-categories {
    padding-bottom: 100px;
}


.faq-page-category {
    margin-bottom: 60px;
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    gap: 4vw;
}

.faq-page-category:last-child {
    margin-bottom: 0;
}

.faq-page-list {
    display: flex;
    flex-direction: column;
}

.faq-page-category-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-mint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.85;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}


/* --- 3. FAQ ITEM --- */
.faq-page-item {
    border-top: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-page-item:last-child {
    border-bottom: 1px solid var(--border-color);
}

.faq-page-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Question row */
.faq-page-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-page-question:hover {
    color: var(--accent-mint);
}

.faq-page-question-text {
    font-family: var(--font-main);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-white);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.faq-page-question:hover .faq-page-question-text {
    color: var(--accent-mint);
}

/* Toggle button */
.faq-page-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-page-question:hover .faq-page-toggle {
    border-color: var(--accent-mint);
}

.faq-page-toggle-icon {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    color: var(--text-grey);
    line-height: 1;
    transition: color 0.3s ease,
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-page-item.open .faq-page-toggle {
    border-color: var(--accent-mint);
    background: rgba(52, 254, 194, 0.05);
}

.faq-page-item.open .faq-page-toggle-icon {
    color: var(--accent-mint);
    transform: rotate(45deg);
}

/* Answer area */
.faq-page-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease;
}

.faq-page-item.open .faq-page-answer {
    opacity: 1;
}

.faq-page-answer-inner {
    padding: 0 0 30px;
    max-width: 580px;
}

.faq-page-answer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-grey);
    line-height: 1.7;
}





/* --- 5. RESPONSIVE --- */

/* Tablet */
@media (max-width: 1024px) {

    .faq-page-hero-grid,
    .faq-page-category {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faq-page-categories {
        width: 100%;
    }
}

/* Small tablet / large phone */
@media (max-width: 768px) {
    .faq-page-hero {
        padding: 80px 0 60px;
    }

    .faq-page-question-text {
        font-size: 1rem;
    }

    .faq-page-categories {
        padding-bottom: 60px;
    }


}

/* Mobile */
@media (max-width: 480px) {
    .faq-page-hero {
        padding: 60px 0 40px;
    }

    .faq-page-question {
        padding: 20px 0;
    }

    .faq-page-answer-inner {
        padding: 0 0 20px;
    }

    .faq-page-category {
        margin-bottom: 40px;
    }
}

