/* ==========================================================================
   That's The Plan! — Features / Knowledge Base Styles
   Extends style.css · Sidebar + content KB layout
   ========================================================================== */

/* ---------- Page Header ---------- */

.kb-header {
    padding: calc(var(--nav-height) + 48px) 20px 40px;
    text-align: center;
}

.kb-header-inner {
    max-width: 640px;
    margin: 0 auto;
}

.kb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #787888;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.kb-back:hover {
    color: #c0c0d0;
}

.kb-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    background: linear-gradient(to bottom right, #ffffff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kb-header p {
    font-size: 1rem;
    color: #9898a8;
    line-height: 1.6;
}

/* ---------- KB Layout ---------- */

.kb-layout {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 60px;
    display: flex;
    gap: 48px;
}

/* ---------- Sidebar ---------- */

.kb-sidebar {
    display: none; /* hidden on mobile */
}

.kb-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kb-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #787888;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.kb-nav-link:hover {
    color: #c0c0d0;
    background: rgba(255, 255, 255, 0.03);
}

.kb-nav-link.active {
    color: #fff;
    background: var(--glass-bg);
}

.kb-nav-dot {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4a4a5a;
    transition: background 0.2s;
}

.kb-nav-link.active .kb-nav-dot {
    background: var(--rainbow);
}

/* ---------- Main Content ---------- */

.kb-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ---------- Section ---------- */

.kb-section {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.kb-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.kb-section-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.kb-section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
}

/* ---------- Feature List ---------- */

.kb-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kb-feature-list li {
    font-size: 0.9rem;
    color: #9898a8;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.kb-feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rainbow);
    opacity: 0.5;
}

.kb-feature-list li strong {
    display: block;
    color: #e0e0ea;
    font-weight: 600;
    margin-bottom: 2px;
}

/* ---------- Bottom CTA ---------- */

.kb-cta {
    text-align: center;
    padding: 48px 24px;
}

.kb-cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin: 0 auto 16px;
    box-shadow: 0 12px 36px rgba(139, 92, 246, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.kb-cta-tagline {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 20px;
    background: var(--rainbow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Responsive: Tablet+ (768px) ---------- */

@media (min-width: 768px) {
    .kb-header h1 {
        font-size: 2.2rem;
    }
}

/* ---------- Responsive: Desktop (1024px+) ---------- */

@media (min-width: 1024px) {
    .kb-sidebar {
        display: block;
        flex-shrink: 0;
        width: 220px;
        position: sticky;
        top: calc(var(--nav-height) + 24px);
        align-self: flex-start;
        max-height: calc(100vh - var(--nav-height) - 48px);
        overflow-y: auto;
    }

    .kb-header h1 {
        font-size: 2.4rem;
    }

    .kb-section {
        padding: 32px 28px;
    }
}
