/* Docs Page Styles */
:root {
    --bg-main: #ffffff;
    --bg-sidebar: #f8fafc;
    --bg-code: #1e1e1e;
    --primary: #4a6fa5;
    --text-main: #1a202c;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Menlo', monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background: var(--bg-main);
}

/* Header */
.docs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
}

.docs-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.docs-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
}

.docs-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.docs-badge {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.docs-header__right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.docs-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.docs-nav-link:hover {
    color: var(--primary);
}

.docs-btn {
    background: var(--text-main);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.docs-btn:hover {
    background: #2d3748;
}

/* Layout */
.docs-layout {
    display: flex;
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Sidebar */
.docs-sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    padding: 24px 0;
}

.docs-nav-section {
    padding: 0 20px;
    margin-bottom: 24px;
}

.docs-nav-section h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.docs-nav-item {
    display: block;
    padding: 6px 12px;
    margin: 2px 0;
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.docs-nav-item:hover {
    background: var(--border-light);
    color: var(--text-main);
}

.docs-nav-item.active {
    background: white;
    color: var(--primary);
    font-weight: 500;
    border: 1px solid var(--border);
}

/* Main Content */
.docs-main {
    flex: 1;
    margin-left: 260px;
    padding: 48px 64px;
    max-width: 900px;
}

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

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

.docs-section h1 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--text-main);
}

.docs-section h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-main);
}

.docs-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 32px 0 12px 0;
    color: var(--text-main);
}

.docs-section p {
    color: var(--text-muted);
    margin: 0 0 16px 0;
}

.docs-lead {
    font-size: 1.15rem;
    line-height: 1.7;
}

/* Cards Grid */
.docs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.docs-card {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.2s;
}

.docs-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.docs-card-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.docs-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: var(--text-main);
}

.docs-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Code Blocks */
.docs-code-block {
    background: var(--bg-code);
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.docs-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #2d2d2d;
    border-bottom: 1px solid #3d3d3d;
}

.docs-code-header span {
    font-size: 0.8rem;
    color: #888;
    font-weight: 500;
}

.docs-copy-btn {
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.15s;
}

.docs-copy-btn:hover {
    background: #3d3d3d;
    border-color: #777;
    color: white;
}

.docs-code-block pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.docs-code-block code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.docs-code-block .cmd {
    color: #68d391;
}

.docs-code-block .comment {
    color: #718096;
}

/* Callouts */
.docs-callout {
    padding: 16px 20px;
    border-radius: 8px;
    margin: 16px 0;
    font-size: 0.9rem;
}

.docs-callout.warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.docs-callout code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Tables */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.docs-table th {
    background: var(--bg-sidebar);
    font-weight: 600;
    color: var(--text-main);
}

.docs-table td {
    color: var(--text-muted);
}

.docs-table code {
    background: var(--bg-sidebar);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-main);
}

.docs-table.shortcuts td:first-child {
    width: 120px;
}

.docs-table kbd {
    background: var(--text-main);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 0 #0d1117;
    display: inline-block;
}

/* Agent Cards */
.docs-agent-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.docs-agent-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    position: relative;
}

.docs-agent-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 4px 0;
}

.docs-agent-badge {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    opacity: 0.8;
}

.docs-agent-card p {
    font-size: 0.9rem;
    margin: 12px 0;
}

.docs-agent-card code {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.docs-agent-card.codex {
    background: linear-gradient(135deg, #1a365d 0%, #2d4a7c 100%);
    color: white;
}

.docs-agent-card.claude {
    background: linear-gradient(135deg, #d53f8c 0%, #b83280 100%);
    color: white;
}

.docs-agent-card.gemini {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    color: white;
}

.docs-agent-card.mcp {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-main {
        padding: 32px 40px;
    }

    .docs-cards {
        grid-template-columns: 1fr;
    }

    .docs-agent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .docs-sidebar {
        display: none;
    }

    .docs-main {
        margin-left: 0;
        padding: 24px;
    }

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

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

    .docs-table {
        display: block;
        overflow-x: auto;
    }
}
