/* Documentation Page Styles */

.docs-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
    padding: 40px 24px;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
}

.docs-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.docs-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9em;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 2px solid transparent;
}

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

.docs-nav a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: var(--bg);
}

/* Content */
.docs-content {
    min-width: 0;
}

.docs-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section h2 {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.docs-section > p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.docs-section h3 {
    font-size: 1em;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 24px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8em;
}

/* Command Table */
.cmd-table {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.cmd-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 12px 16px;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.cmd-row:last-child {
    border-bottom: none;
}

.cmd-row code {
    background: #1a1a2e;
    color: #4ade80;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    display: block;
}

.cmd-row span {
    color: var(--text-muted);
    font-size: 0.9em;
}

.docs-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: #e3f2fd;
    border-radius: 4px;
    font-size: 0.9em;
    color: #1565c0;
}

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

    .docs-sidebar {
        position: static;
        border-bottom: 1px solid var(--border);
        padding-bottom: 24px;
    }

    .docs-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .docs-nav a {
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .docs-nav a.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
    }

    .cmd-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
