/* ============================================ Inspectlet Docs — Light Theme Clean, friendly, high-end documentation site ============================================ */ /* ── Variables ──────────────────────────────── */ :root { --docs-bg: #ffffff; --docs-bg-subtle: #f8f9fb; --docs-bg-muted: #f1f3f7; --docs-surface: #ffffff; --docs-border: #e5e7eb; --docs-border-light: #f0f1f3; --docs-text: #1a1e2c; --docs-text-secondary: #4b5563; --docs-text-muted: #9ca3af; --docs-purple: #7c5bf6; --docs-purple-light: #ede9fe; --docs-purple-text: #6d4be6; --docs-blue: #3b82f6; --docs-blue-light: #eff6ff; --docs-green: #10b981; --docs-green-light: #ecfdf5; --docs-amber: #f59e0b; --docs-red: #ef4444; --docs-nav-bg: #0c0f1e; --docs-radius: 10px; --docs-radius-sm: 6px; --docs-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Menlo', 'Monaco', 'Consolas', monospace; --docs-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --docs-max-width: 1080px; } /* ── Reset & Base ───────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; } body { font-family: var(--docs-sans); color: var(--docs-text); background: var(--docs-bg); line-height: 1.6; min-height: 100vh; } a { color: var(--docs-purple-text); text-decoration: none; transition: color 0.15s ease; } a:hover { color: var(--docs-purple); } img { max-width: 100%; height: auto; } /* ── Header ──────────────────────────────────── */ .docs-header { background: rgba(14, 17, 48, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); position: sticky; top: 0; z-index: 100; } .docs-header-inner { max-width: 1120px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; height: 56px; } .docs-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; } .docs-logo:hover { text-decoration: none; } .docs-logo-icon { display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; background: linear-gradient(285deg, #69acfd, #c585ff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .docs-logo-label { font-size: 10px; font-weight: 600; color: rgba(59, 130, 246, 0.85); text-transform: uppercase; letter-spacing: 1.5px; background: rgba(59, 130, 246, 0.08); padding: 2px 8px; border-radius: 4px; border: 1px solid rgba(59, 130, 246, 0.12); } .docs-nav { display: flex; align-items: center; gap: 6px; } .docs-nav-link { color: #9d9dba; font-size: 13px; font-weight: 450; padding: 6px 14px; border-radius: 6px; transition: color 0.15s ease, background-color 0.15s ease; text-decoration: none; } .docs-nav-link:hover { color: #eeeef5; background: rgba(255, 255, 255, 0.06); } .docs-nav-cta { display: inline-flex; align-items: center; margin-left: 6px; padding: 7px 20px; font-size: 13px; font-weight: 550; letter-spacing: -0.1px; color: #fff; background: linear-gradient(135deg, #3b82f6 0%, #7c5bf6 100%); border-radius: 8px; text-decoration: none; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 4px 16px rgba(59, 130, 246, 0.2); transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease; } .docs-nav-cta::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%); border-radius: 8px; pointer-events: none; } .docs-nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.12) inset, 0 8px 24px rgba(59, 130, 246, 0.35); filter: brightness(1.08); } .docs-nav-cta:active { transform: translateY(0) scale(0.98); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 2px 8px rgba(59, 130, 246, 0.15); } /* ── Hero / Search ──────────────────────────── */ .docs-hero { background: linear-gradient(180deg, var(--docs-bg-subtle) 0%, var(--docs-bg) 100%); border-bottom: 1px solid var(--docs-border-light); padding: 52px 28px 44px; text-align: center; position: relative; } .docs-hero-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; } .docs-hero-glow::before { content: ''; position: absolute; top: -120px; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: radial-gradient(ellipse, rgba(124, 91, 246, 0.04) 0%, transparent 70%); } .docs-hero-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; } .docs-hero h1 { font-size: 28px; font-weight: 700; color: var(--docs-text); letter-spacing: -0.5px; line-height: 1.2; margin-bottom: 6px; } .docs-hero p { font-size: 15px; color: var(--docs-text-secondary); margin-bottom: 24px; line-height: 1.5; } .docs-search { position: relative; max-width: 480px; margin: 0 auto; } .docs-search-input { width: 100%; padding: 11px 16px 11px 42px; font-size: 14px; font-family: var(--docs-sans); color: var(--docs-text); background: var(--docs-surface); border: 1px solid var(--docs-border); border-radius: var(--docs-radius); outline: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02); transition: border-color 0.15s ease, box-shadow 0.15s ease; } .docs-search-input::placeholder { color: var(--docs-text-muted); } .docs-search-input:focus { border-color: var(--docs-purple); box-shadow: 0 0 0 3px rgba(124, 91, 246, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04); } .docs-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--docs-text-muted); font-size: 13px; pointer-events: none; } /* ── Main Content ───────────────────────────── */ .docs-main { max-width: var(--docs-max-width); margin: 0 auto; padding: 48px 28px 80px; } /* ── Category Grid (homepage) ───────────────── */ .docs-categories { display: flex; flex-direction: column; gap: 44px; } .docs-category { border-bottom: 1px solid var(--docs-border-light); padding-bottom: 44px; } .docs-category:last-child { border-bottom: none; padding-bottom: 0; } .docs-category-title { font-size: 18px; font-weight: 650; color: var(--docs-text); letter-spacing: -0.3px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; } .docs-category-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; } .docs-category-icon.purple { background: var(--docs-purple-light); color: var(--docs-purple); } .docs-category-icon.blue { background: var(--docs-blue-light); color: var(--docs-blue); } .docs-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; } .docs-section-card { background: var(--docs-surface); border: 1px solid var(--docs-border); border-radius: var(--docs-radius); padding: 20px; transition: border-color 0.18s ease, box-shadow 0.18s ease; } .docs-section-card:hover { border-color: rgba(124, 91, 246, 0.2); box-shadow: 0 2px 12px rgba(124, 91, 246, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03); } .docs-section-title { font-size: 13px; font-weight: 600; color: var(--docs-text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--docs-border-light); } .docs-article-list { list-style: none; display: flex; flex-direction: column; gap: 0; } .docs-article-list li + li { border-top: 1px solid var(--docs-border-light); } .docs-article-list a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--docs-text-secondary); text-decoration: none; transition: color 0.12s ease, padding-left 0.15s ease; line-height: 1.4; } .docs-article-list a::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--docs-border); flex-shrink: 0; transition: background 0.12s ease, transform 0.15s ease; } .docs-article-list a:hover { color: var(--docs-purple-text); padding-left: 4px; } .docs-article-list a:hover::before { background: var(--docs-purple); transform: scale(1.25); } /* ── Breadcrumb ─────────────────────────────── */ .docs-breadcrumb { max-width: 1200px; margin: 0 auto; padding: 20px 28px 0 calc(28px + 220px + 48px); display: flex; align-items: center; gap: 4px; font-size: 13px; } .docs-breadcrumb a { color: var(--docs-text-muted); text-decoration: none; padding: 3px 8px; border-radius: 5px; transition: color 0.12s ease, background 0.12s ease; } .docs-breadcrumb a:hover { color: var(--docs-purple-text); background: var(--docs-purple-light); } .docs-breadcrumb-chevron { color: var(--docs-text-muted); flex-shrink: 0; width: 14px; height: 14px; } .docs-breadcrumb-current { color: var(--docs-text); font-weight: 500; padding: 3px 0; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* ── Article Layout (sidebar left + content right) ── */ .docs-article-layout { max-width: 1200px; margin: 0 auto; padding: 0 28px 80px; display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; } .docs-article { min-width: 0; max-width: 760px; padding: 32px 0 48px; } .docs-article-header { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--docs-border-light); } .docs-article-header h1 { font-size: 28px; font-weight: 700; color: var(--docs-text); letter-spacing: -0.5px; line-height: 1.3; } /* ── Sidebar (left) ──────────────────────────── */ .docs-sidebar { padding-top: 32px; position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none; } .docs-sidebar::-webkit-scrollbar { display: none; } /* ── Table of Contents ───────────────────────── */ .docs-toc { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--docs-border-light); } .docs-toc-title { font-size: 11px; font-weight: 600; color: var(--docs-text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; } .docs-toc ul { list-style: none; display: flex; flex-direction: column; gap: 0; } .docs-toc li { border-left: 2px solid transparent; transition: border-color 0.15s ease; } .docs-toc li.active { border-left-color: var(--docs-purple); } .docs-toc li.active > a { color: var(--docs-purple-text); font-weight: 500; } .docs-toc li a { display: block; padding: 4px 0 4px 12px; font-size: 13px; color: var(--docs-text-muted); text-decoration: none; line-height: 1.45; transition: color 0.12s ease; } .docs-toc li a:hover { color: var(--docs-purple-text); } .docs-toc li.docs-toc-sub a { padding-left: 24px; font-size: 12.5px; } /* ── Related Articles ────────────────────────── */ .docs-related { margin-bottom: 24px; } .docs-related-title { font-size: 11px; font-weight: 600; color: var(--docs-text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; } .docs-related ul { list-style: none; display: flex; flex-direction: column; gap: 0; } .docs-related li a { display: block; padding: 5px 0 5px 12px; font-size: 13px; color: var(--docs-text-secondary); text-decoration: none; line-height: 1.45; transition: color 0.12s ease; border-left: 2px solid transparent; } .docs-related li a:hover { color: var(--docs-purple-text); border-left-color: var(--docs-border); } /* ── Search Results (live dropdown) ──────────── */ .docs-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--docs-surface); border: 1px solid var(--docs-border); border-radius: var(--docs-radius); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04); max-height: 380px; overflow-y: auto; z-index: 50; display: none; } .docs-search-results.visible { display: block; } .docs-search-result { display: block; padding: 10px 16px; text-decoration: none; border-bottom: 1px solid var(--docs-border-light); transition: background 0.1s ease; } .docs-search-result:last-child { border-bottom: none; } .docs-search-result:hover { background: var(--docs-bg-subtle); } .docs-search-result-title { font-size: 13.5px; font-weight: 500; color: var(--docs-text); line-height: 1.35; } .docs-search-result-cat { font-size: 11.5px; color: var(--docs-text-muted); margin-top: 2px; } .docs-search-empty { padding: 24px 16px; text-align: center; font-size: 13.5px; color: var(--docs-text-muted); } /* ── Markdown Content ───────────────────────── */ .docs-body { font-size: 15px; line-height: 1.7; color: #374151; } .docs-body h1 { font-size: 26px; font-weight: 700; color: var(--docs-text); letter-spacing: -0.4px; margin: 44px 0 14px; line-height: 1.3; } .docs-body h2 { font-size: 21px; font-weight: 650; color: var(--docs-text); letter-spacing: -0.3px; margin: 36px 0 12px; padding-top: 20px; border-top: 1px solid var(--docs-border-light); line-height: 1.3; } .docs-body h3 { font-size: 16.5px; font-weight: 600; color: var(--docs-text); margin: 28px 0 8px; line-height: 1.4; } .docs-body h4 { font-size: 15px; font-weight: 600; color: var(--docs-text); margin: 22px 0 6px; } .docs-body h5 { font-size: 14px; font-weight: 600; color: var(--docs-text); margin: 20px 0 6px; } .docs-body p { margin-bottom: 16px; } .docs-body a { color: var(--docs-purple-text); text-decoration: underline; text-decoration-color: rgba(124, 91, 246, 0.25); text-underline-offset: 2px; transition: text-decoration-color 0.12s ease; } .docs-body a:hover { text-decoration-color: var(--docs-purple); } .docs-body strong { font-weight: 600; color: var(--docs-text); } .docs-body ul, .docs-body ol { margin: 0 0 16px 22px; } .docs-body li { margin-bottom: 5px; } .docs-body li::marker { color: var(--docs-text-muted); } .docs-body blockquote { margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--docs-purple); background: var(--docs-purple-light); border-radius: 0 var(--docs-radius-sm) var(--docs-radius-sm) 0; color: var(--docs-text-secondary); font-size: 14px; } .docs-body blockquote p:last-child { margin-bottom: 0; } .docs-body img { border-radius: var(--docs-radius); border: 1px solid var(--docs-border); margin: 20px 0; } .docs-body hr { border: none; border-top: 1px solid var(--docs-border-light); margin: 32px 0; } .docs-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13.5px; } .docs-body th { text-align: left; font-weight: 600; color: var(--docs-text); padding: 8px 12px; border-bottom: 2px solid var(--docs-border); background: var(--docs-bg-subtle); } .docs-body td { padding: 8px 12px; border-bottom: 1px solid var(--docs-border-light); color: var(--docs-text-secondary); } /* ── Code ────────────────────────────────────── */ .docs-body code { font-family: var(--docs-mono); font-size: 0.86em; color: #c7254e; background: #fdf2f5; padding: 2.5px 7px; border-radius: 5px; border: 1px solid rgba(199, 37, 78, 0.08); word-break: break-word; } .docs-body pre { margin: 28px 0; padding: 0; background: #1e1e2e; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08); position: relative; } .docs-body pre::before { content: ''; display: block; height: 38px; padding: 0 16px; background: rgba(255, 255, 255, 0.03); border-bottom: 1px solid rgba(255, 255, 255, 0.05); background-image: radial-gradient(circle 5px at 16px 50%, #ff5f57 5px, transparent 5.5px), radial-gradient(circle 5px at 34px 50%, #febc2e 5px, transparent 5.5px), radial-gradient(circle 5px at 52px 50%, #28c840 5px, transparent 5.5px); } .docs-copy-btn { position: absolute; top: 7px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 5px; padding: 4px 10px; border: none; border-radius: 5px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.35); font-family: var(--docs-sans); font-size: 11px; font-weight: 500; cursor: pointer; transition: color 0.15s ease, background 0.15s ease; line-height: 1; } .docs-copy-btn:hover { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.7); } .docs-copy-btn svg { width: 13px; height: 13px; } .docs-copy-btn.copied { color: #a6e3a1; background: rgba(166, 227, 161, 0.1); } .docs-body pre code { display: block; padding: 20px 24px; font-family: var(--docs-mono); font-size: 13.5px; line-height: 1.75; color: #cdd6f4; background: transparent; border: 0; border-radius: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; } .docs-body pre code::-webkit-scrollbar { height: 6px; } .docs-body pre code::-webkit-scrollbar-track { background: transparent; } .docs-body pre code::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 3px; } /* Prism token overrides for tighter brand feel */ .docs-body pre .token.comment, .docs-body pre .token.prolog, .docs-body pre .token.doctype, .docs-body pre .token.cdata { color: #6c7086; font-style: italic; } .docs-body pre .token.punctuation { color: #9399b2; } .docs-body pre .token.property, .docs-body pre .token.tag, .docs-body pre .token.boolean, .docs-body pre .token.number, .docs-body pre .token.constant, .docs-body pre .token.symbol { color: #fab387; } .docs-body pre .token.selector, .docs-body pre .token.attr-name, .docs-body pre .token.string, .docs-body pre .token.char, .docs-body pre .token.builtin { color: #a6e3a1; } .docs-body pre .token.operator, .docs-body pre .token.entity, .docs-body pre .token.url { color: #89dceb; } .docs-body pre .token.atrule, .docs-body pre .token.attr-value, .docs-body pre .token.keyword { color: #cba6f7; } .docs-body pre .token.function, .docs-body pre .token.class-name { color: #89b4fa; } .docs-body pre .token.regex, .docs-body pre .token.important, .docs-body pre .token.variable { color: #f9e2af; } /* ── Footer ──────────────────────────────────── */ .docs-footer { border-top: 1px solid var(--docs-border); background: var(--docs-bg-subtle); padding: 32px 28px; } .docs-footer-inner { max-width: var(--docs-max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; } .docs-footer p { font-size: 12.5px; color: var(--docs-text-muted); letter-spacing: -0.1px; } .docs-footer-links { display: flex; gap: 6px; } .docs-footer-links a { font-size: 12.5px; color: var(--docs-text-muted); text-decoration: none; padding: 4px 10px; border-radius: 5px; transition: color 0.12s ease, background 0.12s ease; } .docs-footer-links a:hover { color: var(--docs-text-secondary); background: var(--docs-bg-muted); } /* ── Responsive ──────────────────────────────── */ @media (max-width: 900px) { .docs-article-layout { grid-template-columns: 1fr; padding: 0 20px 60px; gap: 0; } .docs-sidebar { position: static; max-height: none; padding-top: 0; padding-bottom: 24px; border-bottom: 1px solid var(--docs-border-light); margin-bottom: 8px; } .docs-breadcrumb { padding-left: 20px; } } @media (max-width: 768px) { .docs-header-inner { padding: 0 16px; } .docs-nav { gap: 0; } .docs-nav-link { font-size: 12px; padding: 5px 8px; } .docs-hero { padding: 36px 20px 32px; } .docs-hero h1 { font-size: 22px; } .docs-hero p { font-size: 14px; margin-bottom: 20px; } .docs-main { padding: 28px 20px 48px; } .docs-sections { grid-template-columns: 1fr; } .docs-article { padding: 20px 0 40px; } .docs-article-header h1 { font-size: 22px; } .docs-footer-inner { flex-direction: column; gap: 12px; } .docs-breadcrumb { padding: 14px 16px 0; font-size: 12px; } .docs-breadcrumb-current { max-width: 180px; } .docs-categories { gap: 32px; } .docs-category { padding-bottom: 32px; } } @media (max-width: 480px) { .docs-nav-link { display: none; } .docs-nav-cta { margin-left: 0; } .docs-hero h1 { font-size: 20px; } .docs-body { font-size: 14.5px; } .docs-breadcrumb-current { max-width: 140px; } }