/* Documentation Specific Styles */

.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 100px auto 0;
    padding: 0 24px;
    min-height: calc(100vh - 100px);
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 32px 0;
}

.docs-nav h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin: 32px 0 12px;
}

.docs-nav h3:first-child {
    margin-top: 0;
}

.docs-nav ul {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 8px;
}

.docs-nav a {
    display: block;
    color: var(--text);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 15px;
}

.docs-nav a:hover {
    background: var(--surface);
    color: var(--primary);
}

.docs-nav a.active {
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
}

/* Content */
.docs-content {
    padding: 32px 0 100px;
    max-width: 800px;
}

.docs-content h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.docs-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 48px 0 16px;
    padding-top: 16px;
}

.docs-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin: 32px 0 16px;
}

.docs-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.docs-content ul,
.docs-content ol {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

.docs-content li {
    margin-bottom: 8px;
}

.docs-content section {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.docs-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.docs-content a:hover {
    border-bottom-color: var(--primary);
}

.docs-content code {
    background: var(--surface);
    color: var(--secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 14px;
}

/* Code Blocks */
.code-block {
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin: 24px 0;
    overflow: hidden;
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    background: none;
    padding: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 24px 0;
    border-left: 4px solid;
}

.alert-info {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--secondary);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
}

.alert strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}

/* Footer */
.docs-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.docs-footer p {
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 968px) {
    .docs-container {
        grid-template-columns: 1fr;
        margin-top: 80px;
    }
    
    .docs-sidebar {
        position: static;
        max-height: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 32px;
        margin-bottom: 32px;
    }
    
    .docs-content h1 {
        font-size: 32px;
    }
    
    .docs-content h2 {
        font-size: 24px;
    }
}

