/* a6c.dev - Documentation Clean Slate */
/* Palette: #ffffff, #f8fafc, #f1f5f9, #0f172a, #1e293b, #2563eb, #e2e8f0, #16a34a */

:root {
    --bg: #ffffff;
    --sidebar-bg: #f8fafc;
    --code-bg: #f1f5f9;
    --text: #0f172a;
    --heading: #1e293b;
    --accent: #2563eb;
    --border: #e2e8f0;
    --success: #16a34a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.7;
    overflow-x: hidden;
}

.doc-section {
    padding: 4rem 2rem;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    position: relative;
}

.hero-content {
    max-width: 620px;
    width: 100%;
    animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--text);
    letter-spacing: -0.02em;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.brand-sub {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 0.25rem;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

/* Code Block Shared */
.code-block {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid var(--border);
    overflow: hidden;
}

.code-block-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #e8edf3;
    border-bottom: 1px solid var(--border);
}

.code-block-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: var(--success); }

.code-block-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-left: auto;
}

.code-block pre {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.65;
    color: var(--text);
    padding: 16px;
    overflow-x: auto;
}

.code-sm { margin-top: 1rem; }

.code-comment { color: #94a3b8; }
.code-keyword { color: var(--accent); }
.code-string { color: var(--success); }
.code-fn { color: #7c3aed; }
.code-var { color: #dc2626; }
.code-num { color: #d97706; }

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.hero-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.hero-btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.hero-btn-secondary:hover {
    border-color: #94a3b8;
    background: var(--sidebar-bg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #cbd5e1;
    animation: scrollBounce 2s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-indicator-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* ===========================
   DOCS SECTION
   =========================== */

.docs-section {
    max-width: 1040px;
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.docs-layout {
    display: flex;
    gap: 2.5rem;
}

/* Sidebar */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--sidebar-bg);
    border: 1px solid var(--border);
    padding: 0;
    border-radius: 8px;
    position: sticky;
    top: 1.5rem;
    align-self: flex-start;
    overflow: hidden;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.nav-list {
    list-style: none;
    padding: 0.5rem 0;
}

.nav-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #64748b;
    padding: 0.5rem 1.25rem;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.nav-item:hover {
    color: var(--text);
    background: rgba(37, 99, 235, 0.04);
}

.nav-item.active {
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 500;
    background: rgba(37, 99, 235, 0.04);
}

/* Docs Main */
.docs-main {
    flex: 1;
    min-width: 0;
}

.docs-block {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.docs-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.docs-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--heading);
    margin-bottom: 0.75rem;
}

.docs-subheading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--heading);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.docs-body {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #475569;
}

.docs-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* Info Callout */
.info-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 6px;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: #475569;
    line-height: 1.6;
}

.callout-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

/* Options Table */
.options-table {
    margin-top: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
}

.option-row:last-child {
    border-bottom: none;
}

.option-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent);
    min-width: 80px;
    flex-shrink: 0;
}

.option-type {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #94a3b8;
    min-width: 60px;
    flex-shrink: 0;
}

.option-desc {
    color: #64748b;
    flex: 1;
}

.option-desc code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    background: var(--code-bg);
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

/* Status Badges */
.status-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 1rem;
    background: var(--sidebar-bg);
    border-radius: 6px;
    border: 1px solid var(--border);
}

.status-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
}

.status-queued {
    background: rgba(148, 163, 184, 0.15);
    color: #64748b;
}

.status-building {
    background: rgba(217, 119, 6, 0.12);
    color: #d97706;
}

.status-ready {
    background: rgba(22, 163, 74, 0.12);
    color: var(--success);
}

.status-arrow {
    flex-shrink: 0;
}

/* ===========================
   API SECTION
   =========================== */

.api-section {
    max-width: 840px;
    margin: 0 auto;
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.75rem;
    color: var(--heading);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.api-strip {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.api-group-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 0.75rem 1rem 0.4rem;
    background: var(--sidebar-bg);
    border-bottom: 1px solid var(--border);
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.15s ease;
}

.api-endpoint:last-child {
    border-bottom: none;
}

.api-endpoint.visible {
    opacity: 1;
    transform: translateY(0);
}

.api-endpoint:hover {
    background: var(--sidebar-bg);
}

.method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 44px;
    text-align: center;
    letter-spacing: 0.02em;
}

.badge-get {
    background: rgba(22, 163, 74, 0.1);
    color: var(--success);
}

.badge-post {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent);
}

.badge-put {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
}

.badge-delete {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.endpoint-path {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    color: var(--text);
    min-width: 200px;
}

.endpoint-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-left: auto;
}

/* ===========================
   VERSION FOOTER
   =========================== */

.version-section {
    border-top: 1px solid var(--border);
    max-width: 840px;
    margin: 0 auto;
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.version-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: #94a3b8;
}

.version-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.version-sep {
    opacity: 0.3;
}

.version-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.version-link:hover {
    color: #1d4ed8;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .hero-content {
        padding: 0 0.5rem;
    }

    .docs-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        border-radius: 8px;
    }

    .nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        padding: 0.5rem;
    }

    .nav-item {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .nav-item.active {
        border-left: none;
        border-bottom-color: var(--accent);
    }

    .api-endpoint {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .endpoint-path {
        min-width: auto;
    }

    .endpoint-desc {
        margin-left: 0;
        width: 100%;
        padding-left: 52px;
    }

    .version-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .version-sep {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-btn {
        text-align: center;
    }

    .status-badges {
        flex-wrap: wrap;
        justify-content: center;
    }

    .options-table {
        overflow-x: auto;
    }

    .option-row {
        min-width: 400px;
    }

    .scroll-indicator {
        display: none;
    }
}
