/* Docs-specific styles */

.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    margin-top: 60px;
}

.docs-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1rem;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.docs-nav h3 {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 2rem 0 1rem;
    padding-left: 1rem;
}

.docs-nav h3:first-child {
    margin-top: 0;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
}

.docs-nav li {
    margin-bottom: 0.25rem;
}

.docs-nav a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
}

.docs-nav a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.docs-nav a.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

.docs-content {
    padding: 3rem 4rem;
    max-width: 900px;
}

.docs-content article {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.docs-content .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.docs-content h2 {
    font-size: 1.75rem;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.docs-content h3 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.docs-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.docs-content ul,
.docs-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.docs-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.docs-content code {
    background: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: var(--accent-primary);
}

.docs-content pre {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.docs-content pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.docs-content a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
}

.docs-content a:hover {
    text-decoration: underline;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.docs-content th,
.docs-content td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.docs-content th {
    background: var(--bg-primary);
    font-weight: 600;
}

.docs-content tr:nth-child(even) {
    background: var(--bg-primary);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-container {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        display: none;
    }

    .docs-content {
        padding: 2rem;
    }

    .docs-content article {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .docs-content {
        padding: 1.5rem;
    }

    .docs-content article {
        padding: 1.5rem;
    }

    .docs-content h1 {
        font-size: 2rem;
    }

    .docs-content h2 {
        font-size: 1.5rem;
    }
}

/* Table of contents on scroll */
.toc {
    position: sticky;
    top: 100px;
    background: var(--bg-primary);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.toc h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.toc a {
    color: var(--text-secondary);
}

.toc a:hover {
    color: var(--accent-primary);
}
