/* QuickSift Documentation Styles - v1.0.1 - Light theme fix */

/* -- Layout -- */
.docs-layout { display:flex; max-width:1200px; margin:0 auto; padding:100px 24px 80px; gap:48px; min-height:calc(100vh - 200px); }

/* -- Sidebar -- */
.docs-sidebar { width:240px; flex-shrink:0; position:sticky; top:80px; align-self:flex-start; max-height:calc(100vh - 100px); overflow-y:auto; }
.docs-sidebar h3 { font-size:11px; text-transform:uppercase; letter-spacing:1.5px; color:#6b7280; margin:24px 0 10px; padding-left:12px; font-weight:600; }
.docs-sidebar h3:first-child { margin-top:0; }
.docs-sidebar a { display:block; padding:8px 12px; font-size:14px; color:#4b5563; text-decoration:none; border-radius:6px; transition:color .2s,background .2s; line-height:1.4; }
.docs-sidebar a:hover { color:#111827; background:rgba(0,0,0,.04); }
.docs-sidebar a.active { color:#0ea5e9; background:rgba(14,165,233,.08); font-weight:500; }
.docs-sidebar .badge-pro-sm { display:inline-block; font-size:9px; background:linear-gradient(135deg,#0ea5e9,#06b6d4); color:#fff; padding:1px 6px; border-radius:3px; margin-left:4px; vertical-align:middle; font-weight:600; letter-spacing:.3px; }

/* -- Content -- */
.docs-content { flex:1; min-width:0; max-width:780px; }
.docs-content h1 { font-size:2rem; color:#111827; margin-bottom:12px; line-height:1.2; }
.docs-content h2 { font-size:1.45rem; color:#1f2937; margin:48px 0 16px; padding-top:24px; border-top:1px solid #e5e7eb; }
.docs-content h2:first-of-type { border-top:none; margin-top:32px; padding-top:0; }
.docs-content h3 { font-size:1.1rem; color:#374151; margin:28px 0 12px; }
.docs-content p { color:#4b5563; font-size:15px; line-height:1.75; margin-bottom:16px; }
.docs-content ul,.docs-content ol { color:#4b5563; font-size:15px; line-height:1.75; margin-bottom:16px; padding-left:24px; }
.docs-content li { margin-bottom:6px; }
.docs-content a { color:#0284c7; text-decoration:none; border-bottom:1px solid rgba(2,132,199,.3); transition:border-color .2s; }
.docs-content a:hover { border-color:#0284c7; }
.docs-content strong { color:#1f2937; font-weight:600; }
.docs-lead { font-size:17px!important; color:#374151!important; margin-bottom:32px!important; line-height:1.7!important; }

/* -- Code -- */
.docs-content code { font-family:'JetBrains Mono',monospace; font-size:13px; background:#f0f9ff; color:#0369a1; padding:2px 7px; border-radius:4px; border:1px solid #e0f2fe; }
.docs-content pre { background:#1e293b; border:1px solid #334155; border-radius:8px; padding:20px 24px; overflow-x:auto; margin-bottom:20px; }
.docs-content pre code { background:none; padding:0; font-size:13px; line-height:1.6; color:#e2e8f0; border:none; }

/* -- Screenshots -- */
.docs-screenshot { border:2px dashed #d1d5db; border-radius:12px; background:#f9fafb; padding:24px 8px; text-align:center; margin:24px 0 28px; }
.docs-screenshot .screenshot-placeholder { display:flex; flex-direction:column; align-items:center; gap:12px; padding:24px 16px; }
.docs-screenshot .screenshot-placeholder i { font-size:32px; color:#9ca3af; }
.docs-screenshot .screenshot-placeholder span { font-size:13px; color:#6b7280; font-style:italic; }
.docs-screenshot img { max-width:100%; border-radius:8px; box-shadow:0 4px 20px rgba(0,0,0,.1); }
.docs-screenshot figcaption { font-size:13px; color:#6b7280; margin-top:12px; font-style:italic; }

/* -- Callouts -- */
.docs-callout { border-radius:8px; padding:16px 20px; margin:20px 0; font-size:14px; line-height:1.65; display:flex; gap:12px; align-items:flex-start; }
.docs-callout i { flex-shrink:0; margin-top:2px; font-size:16px; }
.docs-callout p { margin:0; font-size:14px; }
.docs-callout-info { background:#eff6ff; border:1px solid #bfdbfe; color:#1e40af; }
.docs-callout-tip { background:#f0fdf4; border:1px solid #bbf7d0; color:#166534; }
.docs-callout-warning { background:#fffbeb; border:1px solid #fde68a; color:#92400e; }

/* -- Steps -- */
.docs-steps { counter-reset:step-counter; margin:24px 0; }
.docs-step { counter-increment:step-counter; display:flex; gap:16px; margin-bottom:24px; align-items:flex-start; }
.docs-step::before { content:counter(step-counter); flex-shrink:0; width:32px; height:32px; border-radius:50%; background:#e0f2fe; border:2px solid #7dd3fc; color:#0284c7; font-size:14px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.docs-step-body h3 { margin:0 0 6px; font-size:16px; color:#1f2937; }
.docs-step-body p { margin:0; }

/* -- Tables -- */
.docs-content table { width:100%; border-collapse:collapse; margin:20px 0; font-size:14px; }
.docs-content th { text-align:left; padding:10px 14px; background:#f0f9ff; color:#1f2937; font-weight:600; border-bottom:2px solid #bae6fd; }
.docs-content td { padding:10px 14px; color:#4b5563; border-bottom:1px solid #e5e7eb; }
.docs-content tr:hover td { background:#f9fafb; }

/* -- Prev/Next nav -- */
.docs-nav-footer { display:flex; justify-content:space-between; margin-top:64px; padding-top:32px; border-top:1px solid #e5e7eb; gap:24px; }
.docs-nav-link { display:flex; flex-direction:column; gap:4px; padding:16px 20px; border:1px solid #e5e7eb; border-radius:8px; text-decoration:none!important; border-bottom:1px solid #e5e7eb!important; transition:border-color .2s,background .2s; min-width:0; flex:1; }
.docs-nav-link:hover { background:#f0f9ff; border-color:transparent!important; box-shadow:inset 0 0 0 2px #7dd3fc; }
.docs-nav-link.next { text-align:right; }
.docs-nav-label { font-size:12px; color:#6b7280; text-transform:uppercase; letter-spacing:.5px; }
.docs-nav-title { font-size:15px; color:#0284c7; font-weight:500; }

/* -- Flow diagram -- */
.docs-flow { display:flex; align-items:center; justify-content:center; gap:12px; margin:32px auto; max-width:600px; flex-wrap:wrap; }
.docs-flow-node { text-align:center; }
.docs-flow-node .node-box { width:64px; height:64px; border-radius:14px; display:flex; align-items:center; justify-content:center; margin:0 auto 8px; font-size:24px; }
.docs-flow-node span { font-size:12px; color:#6b7280; font-weight:500; }
.node-desktop { background:#dcfce7; border:2px solid #86efac; color:#16a34a; }
.node-bridge { background:#e0f2fe; border:2px solid #7dd3fc; color:#0284c7; }
.node-claude { background:#ede9fe; border:2px solid #c4b5fd; color:#7c3aed; }
.docs-flow-arrow { color:#9ca3af; font-size:18px; }

/* -- Index cards -- */
.docs-index-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin:32px 0; }
.docs-index-card { display:flex; gap:16px; align-items:flex-start; padding:24px; border:1px solid #e5e7eb; border-radius:10px; text-decoration:none!important; border-bottom:1px solid #e5e7eb!important; transition:border-color .2s,background .2s,box-shadow .2s; }
.docs-index-card:hover { background:#f0f9ff; border-color:transparent!important; box-shadow:inset 0 0 0 2px #7dd3fc; }
.docs-index-card i { font-size:22px; color:#0ea5e9; margin-top:2px; flex-shrink:0; }
.docs-index-card h3 { font-size:16px; color:#1f2937; margin:0 0 6px; }
.docs-index-card p { font-size:13px; color:#6b7280; margin:0; line-height:1.5; }

/* -- Lightbox -- */
.docs-lightbox { display:none; position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.85); align-items:center; justify-content:center; cursor:zoom-out; padding:24px; }
.docs-lightbox.active { display:flex; }
.docs-lightbox img { max-width:95vw; max-height:90vh; border-radius:8px; box-shadow:0 8px 40px rgba(0,0,0,.5); cursor:default; }
.docs-lightbox-close { position:absolute; top:16px; right:20px; width:40px; height:40px; border:none; background:rgba(255,255,255,.15); color:#fff; font-size:20px; border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .2s; }
.docs-lightbox-close:hover { background:rgba(255,255,255,.3); }
.docs-screenshot img { cursor:zoom-in; }
@media (max-width:900px) {
    .docs-layout { flex-direction:column; gap:0; padding:80px 16px 60px; }
    .docs-sidebar { width:100%; position:static; max-height:none; border-bottom:1px solid #e5e7eb; padding-bottom:20px; margin-bottom:32px; }
    .docs-sidebar a { display:inline-block; padding:6px 10px; font-size:13px; }
    .docs-content h1 { font-size:1.6rem; }
    .docs-content h2 { font-size:1.25rem; }
    .docs-nav-footer { flex-direction:column; }
    .docs-index-grid { grid-template-columns:1fr; }
}