/*
 * Pitechpedia Documentation V3 — "Split-Pane Hub" Design
 * High-fidelity, Sidebar-Content Documentation hub inspired by modern AI research platforms.
 */

:root {
    --docs-blue: #1A73E8;
    --docs-blue-dark: #174EA6;
    --docs-blue-light: #E8F0FE;
    --docs-text: #202124;
    --docs-sub: #5F6368;
    --docs-white: #FFFFFF;
    --docs-bg: #F8F9FA;
    --shadow-card: 0 1px 2px 0 rgba(60,64,67,0.302), 0 1px 3px 1px rgba(60,64,67,0.149);
    --shadow-hover: 0 10px 20px rgba(0,0,0,0.08);
}

.docs-v3-page {
    background: var(--docs-white);
    color: var(--docs-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}

.docs-v3-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== HERO SECTION (Same as V2) ===== */
.docs-hero-v3 {
    padding: 80px 0 40px;
    background: radial-gradient(circle at top right, rgba(26, 115, 232, 0.05), transparent 60%);
    position: relative;
    text-align: center;
}

.docs-headline-v3 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1.2px;
    margin-bottom: 24px;
}

.docs-sub-v3 {
    font-size: 1.15rem;
    color: var(--docs-sub);
    line-height: 1.6;
    max-width: 650px;
    margin: 0 auto 40px;
}

/* Centered Search Bar */
.docs-search-wrap-v3 {
    max-width: 650px;
    margin: 0 auto;
}

.docs-search-bar-v3 {
    display: flex;
    align-items: center;
    background: var(--docs-white);
    padding: 8px 8px 8px 24px;
    border-radius: 100px;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.3s;
}

.docs-search-bar-v3 input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 1rem;
    outline: none;
}

.docs-search-btn-v3 {
    width: 40px;
    height: 40px;
    background: var(--docs-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 12px;
}

/* ===== SPLIT LAYOUT ===== */
.docs-split-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    padding: 60px 0 120px;
    border-top: 1px solid #F1F3F4;
}

/* Sidebar */
.docs-sidebar-v3 {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.docs-sidebar-v3 h2 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--docs-sub);
    margin-bottom: 24px;
}

.nav-item-v3 {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--docs-sub);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    margin-bottom: 4px;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-item-v3:hover {
    background: var(--docs-bg);
    color: var(--docs-blue);
}

.nav-item-v3.active {
    background: var(--docs-blue-light);
    color: var(--docs-blue);
    border-left-color: var(--docs-blue);
}

.nav-item-v3 .icon {
    font-size: 20px;
}

/* Content Area */
.docs-content-v3 {
    min-height: 500px;
}

.content-block-v3 {
    display: none;
}

.content-block-v3.active {
    display: block;
}

/* CARDS STYLING (Reusing V2 but adjusted) */
.docs-grid-v3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.doc-card-v3 {
    background: var(--docs-white);
    border: 1px solid #F1F3F4;
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.doc-card-v3:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--docs-blue);
}

.icon-box-v3 {
    width: 48px;
    height: 48px;
    background: var(--docs-blue-light);
    color: var(--docs-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-info-v3 {
    flex: 1;
}

.doc-info-v3 h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.doc-info-v3 p {
    font-size: 0.9rem;
    color: var(--docs-sub);
    line-height: 1.5;
}

.expand-icon-v3 {
    color: var(--docs-blue);
    opacity: 0.6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .docs-split-layout { grid-template-columns: 1fr; gap: 40px; }
    .docs-sidebar-v3 { position: relative; top: 0; padding-bottom: 30px; border-bottom: 1px solid #F1F3F4; margin-bottom: 40px; }
    .nav-item-v3 { margin-bottom: 8px; }
}
