/* Documentation Specific Styles */
.docs-container {
    display: flex;
    max-width: 1400px;
    margin: 80px auto 0;
    min-height: calc(100vh - 200px);
}

.docs-sidebar {
    width: 280px;
    padding: 2rem;
    background: var(--surface);
    border-right: 1px solid var(--border);
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.docs-sidebar h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin: 2rem 0 1rem;
}

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

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

.docs-sidebar li {
    margin-bottom: 0.5rem;
}

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

.docs-sidebar a:hover {
    background: var(--background);
    color: var(--primary);
}

.docs-sidebar a.active {
    background: var(--primary);
    color: white;
}

.docs-content {
    flex: 1;
    padding: 2rem 3rem;
    max-width: 900px;
}

.docs-content h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.docs-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.docs-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

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

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

.docs-content ul,
.docs-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.docs-content li {
    margin-bottom: 0.5rem;
}

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

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

[data-theme="dark"] .docs-content pre {
    background: #1e293b;
    color: #e2e8f0;
}

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

.docs-content kbd {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    box-shadow: 0 2px 0 var(--border);
}

.callout {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.callout.info {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary);
}

.callout.warning {
    background: rgba(251, 146, 60, 0.1);
    border-left: 4px solid var(--warning);
}

.callout.success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--success);
}

.callout strong {
    color: var(--text-primary);
}

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

.docs-table th {
    background: var(--surface);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border);
}

.docs-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.docs-table tr:hover {
    background: var(--surface);
}

.mode-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
}

.mode-card h3 {
    margin-top: 0;
}

.troubleshoot-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.troubleshoot-item h3 {
    margin-top: 0;
    color: var(--text-primary);
}

.troubleshoot-item ul {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

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