/* Documentation-specific styles */

/* Sidebar */
.docs-sidebar {
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 1rem;
}

.docs-nav-link {
    color: var(--ch-primary);
    font-size: 0.9rem;
    border-radius: 0.25rem;
}

.docs-nav-link:hover {
    background-color: rgba(var(--ch-primary-rgb), 0.05);
}

.docs-nav-link.active {
    background-color: rgba(var(--ch-primary-rgb), 0.08);
    color: var(--ch-primary) !important;
}

.docs-nav-indent {
    padding-left: 1.5rem !important;
    font-size: 0.85rem;
}

/* Docs content */
.docs-content h1 {
    margin-bottom: 0.75rem;
}

.docs-content .lead {
    opacity: 0.75;
    margin-bottom: 1.5rem;
}

/* Code blocks with title header */
.docs-content .code-block {
    background: #1e293b;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.docs-content .code-block-header {
    background: #334155;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    color: #94a3b8;
    border-bottom: 1px solid #475569;
}

.docs-content .code-block pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    margin: 0;
    font-size: 0.85rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.docs-content .code-block code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Endpoint cards */
.docs-content .endpoint-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.docs-content .endpoint-card-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-content .endpoint-card-body {
    padding: 1rem;
}

/* Method badges */
.badge-get { background-color: #3b82f6; }
.badge-post { background-color: #22c55e; }
.badge-put { background-color: #f59e0b; }
.badge-delete { background-color: #ef4444; }

/* Parameter tables */
.docs-content table {
    width: 100%;
    margin-bottom: 1rem;
}

.docs-content th {
    background: #f0f2f5;
    font-weight: 600;
    font-size: 0.85rem;
}

.docs-content td {
    font-size: 0.9rem;
}

/* Alert/info boxes */
.docs-content .alert {
    font-size: 0.9rem;
}

/* Mobile: hide sidebar */
@media (max-width: 767.98px) {
    .docs-sidebar {
        position: static !important;
        max-height: none;
        margin-bottom: 2rem;
        padding: 1rem;
        background: #f8f9fa;
        border-radius: 0.5rem;
    }
}
