/* ==========================================================================
   WhichAIPlan - Common Questions Header, Filter & Focus Layout Stylesheet
   ========================================================================== */

/* Full-Screen Focus Mode: Hide main top navbar and pull main container up */
body.view-faq header#siteNavbar {
    display: none;
}

body.view-faq main {
    margin-top: 14px;
}

.faq-container {
    max-width: 860px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 1. Single-Line Header Row */
.faq-header-row {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    width: 100%;
}

.faq-back-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(12, 16, 24, 0.94);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: var(--accent-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5), inset 0 0 8px rgba(0, 240, 255, 0.08);
    justify-self: start;
    padding: 0;
}

.faq-back-btn:hover {
    border-color: #00f0ff;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.22) 0%, rgba(16, 185, 129, 0.15) 100%);
    color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.45), 0 0 6px rgba(16, 185, 129, 0.35);
}

.faq-back-btn:active {
    transform: scale(0.95);
}

.faq-back-icon {
    width: 18px;
    height: 18px;
    stroke: var(--accent-cyan);
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.6));
    transition: transform 0.22s ease, stroke 0.22s ease, filter 0.22s ease;
}

.faq-back-btn:hover .faq-back-icon {
    stroke: #ffffff;
    transform: translateX(-2px);
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.9));
}

.faq-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.faq-title span {
    color: var(--accent-cyan);
    text-shadow: 0 0 16px rgba(0, 240, 255, 0.6);
}

.faq-header-spacer {
    width: 40px;
    height: 40px;
    visibility: hidden;
}

/* 2. Floating Icon Discs with Sub-Labels (Concept C) */
.faq-category-nav {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin: 2px auto 8px auto;
    width: 100%;
}

.faq-cat-item {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: transform 0.2s ease;
    user-select: none;
}

.faq-cat-item:active {
    transform: scale(0.94);
}

.faq-cat-disc {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(12, 16, 24, 0.92);
    border: 1px solid rgba(0, 240, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.faq-cat-item:not(.active):hover .faq-cat-disc {
    border-color: var(--accent-cyan);
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
}

.faq-cat-item.active .faq-cat-disc {
    border-color: #00f0ff;
    background: rgba(0, 240, 255, 0.22);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.6), inset 0 0 10px rgba(0, 240, 255, 0.2);
}

.faq-cat-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
    transition: color 0.2s ease, text-shadow 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.faq-cat-item:hover .faq-cat-label {
    color: #ffffff;
}

.faq-cat-item.active .faq-cat-label {
    color: var(--accent-cyan);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

/* 3. Responsive Styles */
@media (max-width: 680px) {
    body.view-faq main { margin-top: 10px; padding: 0 12px; }
    .faq-header-row {
        grid-template-columns: 36px 1fr 36px;
        gap: 6px;
    }
    .faq-title { font-size: 20px; text-align: center; white-space: nowrap; }
    .faq-back-btn { width: 36px; height: 36px; }
    .faq-back-icon { width: 16px; height: 16px; }
    .faq-header-spacer { width: 36px; height: 36px; visibility: hidden; }
    .faq-category-nav { gap: 10px; }
    .faq-cat-disc { width: 38px; height: 38px; font-size: 17px; }
    .faq-cat-label { font-size: 11px; }
}

@media (max-width: 380px) {
    .faq-title { font-size: 17px; }
    .faq-category-nav { gap: 6px; }
    .faq-cat-disc { width: 34px; height: 34px; font-size: 15px; }
    .faq-cat-label { font-size: 10px; }
}
