/* docs.css — Additional styles for docs.html */

.docs-layout {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
    padding-top: 5rem;
}
@media (min-width: 1024px) {
    .docs-layout { grid-template-columns: 260px 1fr; }
}

.docs-sidebar {
    position: sticky;
    top: 5rem;
    height: calc(100vh - 5rem);
    overflow-y: auto;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--border-color);
    background: rgba(5, 5, 8, 0.9);
    display: none;
}
@media (min-width: 1024px) { .docs-sidebar { display: block; } }

.sidebar-section { margin-bottom: 2rem; }
.sidebar-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all 0.2s;
    margin-bottom: 0.15rem;
    cursor: pointer;
    text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active {
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
}
.sidebar-link i { width: 14px; height: 14px; }

.docs-content { padding: 3rem 2rem 6rem; max-width: 860px; }
.docs-hero { margin-bottom: 4rem; padding-bottom: 3rem; border-bottom: 1px solid var(--border-color); }
.docs-page-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.docs-page-label i { width: 14px; height: 14px; }
.docs-section { margin-bottom: 4rem; scroll-margin-top: 6rem; }
.docs-section h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; letter-spacing: -0.02em; }
.docs-section h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 1rem; color: #e2e8f0; }
.docs-section p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* Code blocks */
.code-block {
    background: rgba(5, 5, 10, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 1.5rem 0;
}
.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 15, 25, 0.8);
    border-bottom: 1px solid var(--border-color);
}
.code-block-lang { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
.copy-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    font-family: var(--font-sans);
}
.copy-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.copy-btn i { width: 12px; height: 12px; }
.code-block pre { padding: 1.5rem; overflow-x: auto; font-size: 0.875rem; line-height: 1.7; }

/* Endpoint cards */
.endpoint-card { border: 1px solid var(--border-color); border-radius: 0.75rem; overflow: hidden; margin-bottom: 1rem; transition: border-color 0.2s; }
.endpoint-card:hover { border-color: rgba(99,102,241,0.4); }
.endpoint-header { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; cursor: pointer; background: rgba(15, 15, 20, 0.6); }
.method-badge { padding: 0.2rem 0.6rem; border-radius: 0.375rem; font-size: 0.7rem; font-weight: 700; font-family: var(--font-mono); min-width: 52px; text-align: center; }
.method-post { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.3); }
.method-get { background: rgba(96,165,250,0.15); color: #60a5fa; border: 1px solid rgba(96,165,250,0.3); }
.method-delete { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }
.endpoint-path { font-family: var(--font-mono); font-size: 0.875rem; color: #e2e8f0; }
.endpoint-desc { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); display: none; }
@media (min-width: 640px) { .endpoint-desc { display: block; } }
.endpoint-body { padding: 1.5rem; border-top: 1px solid var(--border-color); background: rgba(8, 8, 12, 0.6); display: none; }
.endpoint-body.open { display: block; }

/* Param table */
.param-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-top: 1rem; }
.param-table th { padding: 0.5rem 0.75rem; text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); border-bottom: 1px solid var(--border-color); }
.param-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-muted); vertical-align: top; }
.param-table td:first-child { font-family: var(--font-mono); font-size: 0.8rem; color: #93c5fd; }
.param-required { font-size: 0.65rem; padding: 0.1rem 0.35rem; background: rgba(239,68,68,0.1); color: #f87171; border: 1px solid rgba(239,68,68,0.2); border-radius: 0.25rem; margin-left: 0.4rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.75rem; border-radius: 2rem; font-size: 0.75rem; font-weight: 600; }
.badge i { width: 12px; height: 12px; }
.badge-blue { background: rgba(96,165,250,0.1); color: #60a5fa; border: 1px solid rgba(96,165,250,0.2); }
.badge-green { background: rgba(74,222,128,0.1); color: #4ade80; border: 1px solid rgba(74,222,128,0.2); }
.badge-purple { background: rgba(167,139,250,0.1); color: #a78bfa; border: 1px solid rgba(167,139,250,0.2); }
.badges-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

/* Alerts */
.doc-alert { display: flex; gap: 1rem; padding: 1rem 1.25rem; border-radius: 0.75rem; margin: 1.5rem 0; border: 1px solid; }
.doc-alert i { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.doc-alert-info { background: rgba(96,165,250,0.05); border-color: rgba(96,165,250,0.2); color: #93c5fd; }
.doc-alert-warn { background: rgba(251,191,36,0.05); border-color: rgba(251,191,36,0.2); color: #fbbf24; }
.doc-alert p { color: inherit; margin: 0; font-size: 0.875rem; }

/* Steps */
.step-list { counter-reset: steps; }
.step-item { counter-increment: steps; display: flex; gap: 1.25rem; margin-bottom: 2rem; }
.step-num { flex-shrink: 0; width: 2rem; height: 2rem; background: var(--accent-gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; margin-top: 0.25rem; }
.step-num::before { content: counter(steps); }
.step-body h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-body p { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
