/* ObserveAI Docs — тёмная lime-палитра */
:root {
  --bg: #0a0a0a;
  --bg2: #111418;
  --bg3: #1a1f24;
  --bg-soft: #161a1f;
  --lime: #a3e635;
  --lime-mid: #84cc16;
  --lime-strong: #65a30d;
  --lime-deep: #3f6212;
  --text: #f1f5f9;
  --text2: #cbd5e1;
  --text3: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --accent: #a3e635;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --code-bg: #060810;
  --code-text: #e2e8f0;
  --code-comment: #65a30d;
  --code-keyword: #a3e635;
  --code-string: #fbbf24;
  --radius: 12px;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.docs-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.docs-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 14px 24px;
}
.docs-logo {
  font-size: 17px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.docs-logo::before {
  content: '🔍';
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--lime), var(--lime-mid));
  color: #0a0a0a; font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
}
.docs-logo-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  background: var(--lime); color: #0a0a0a; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.docs-nav { display: flex; gap: 22px; font-size: 14px; }
.docs-nav a {
  color: var(--text2); text-decoration: none; font-weight: 500;
}
.docs-nav a:hover, .docs-nav a.active { color: var(--lime); }
.docs-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.docs-back {
  font-size: 13px; color: var(--text2); text-decoration: none;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--border2);
  font-weight: 500;
}
.docs-back:hover { border-color: var(--lime); color: var(--lime); }

/* Layout */
.docs-layout {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr;
  gap: 48px; padding: 32px 24px 64px;
}
@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; gap: 24px; }
  .docs-sidebar { display: none; }
}

/* Sidebar */
.docs-sidebar {
  position: sticky; top: 80px; align-self: start;
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.docs-sidebar h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  margin: 20px 0 8px;
}
.docs-sidebar h4:first-child { margin-top: 0; }
.docs-sidebar ul { list-style: none; padding: 0; margin: 0; }
.docs-sidebar li { margin-bottom: 2px; }
.docs-sidebar a {
  display: block; padding: 6px 12px; border-radius: 6px;
  font-size: 13.5px; color: var(--text2); text-decoration: none;
  border-left: 2px solid transparent;
}
.docs-sidebar a:hover { background: var(--bg2); color: var(--text); }
.docs-sidebar a.active {
  color: var(--lime); border-left-color: var(--lime);
  background: rgba(163,230,53,0.08);
}

/* Content */
.docs-content { min-width: 0; max-width: 780px; }
.docs-hero { margin-bottom: 36px; }
.docs-hero h1 {
  font-size: 36px; font-weight: 800; letter-spacing: -1px;
  margin: 0 0 8px;
  background: linear-gradient(135deg, #ffffff, #a3e635);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.docs-hero p { font-size: 17px; color: var(--text2); margin: 0; }

.docs-content h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.3px;
  margin: 36px 0 14px; color: var(--text);
}
.docs-content h3 {
  font-size: 18px; font-weight: 600; margin: 26px 0 10px; color: var(--text);
}
.docs-content p, .docs-content li {
  font-size: 15px; color: var(--text2);
}
.docs-content ul, .docs-content ol { padding-left: 22px; }
.docs-content li { margin-bottom: 6px; }
.docs-content strong { color: var(--text); font-weight: 600; }
.docs-content a { color: var(--lime); text-decoration: underline; text-underline-offset: 2px; }
.docs-content a:hover { color: var(--lime-mid); }

/* Cards */
.docs-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin: 24px 0 40px;
}
.docs-card {
  display: block; padding: 20px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none;
  transition: all 0.15s;
}
.docs-card:hover {
  border-color: var(--lime); transform: translateY(-2px);
  background: var(--bg3);
}
.docs-card-icon {
  font-size: 24px; margin-bottom: 8px;
}
.docs-card h3 {
  font-size: 15px; font-weight: 700; margin: 0 0 4px; color: var(--text);
}
.docs-card p {
  font-size: 13px; color: var(--text-muted); margin: 0; line-height: 1.5;
}

/* Code */
code, kbd {
  font-family: var(--mono); font-size: 13px;
  background: var(--bg3); padding: 2px 6px;
  border-radius: 4px; color: var(--lime);
  border: 1px solid var(--border);
}
pre {
  background: var(--code-bg); color: var(--code-text);
  padding: 16px 20px; border-radius: var(--radius);
  overflow-x: auto; font-family: var(--mono); font-size: 13px;
  line-height: 1.6; margin: 16px 0;
  border: 1px solid var(--border);
}
pre code {
  background: transparent; padding: 0; border: 0; color: inherit;
}
.code-comment { color: var(--code-comment); }
.code-keyword { color: var(--code-keyword); }
.code-string  { color: var(--code-string); }

/* Tables */
.docs-content table {
  width: 100%; border-collapse: collapse;
  margin: 16px 0; font-size: 14px;
  background: var(--bg2);
  border-radius: var(--radius);
  overflow: hidden;
}
.docs-content th {
  text-align: left; padding: 12px 16px;
  background: var(--bg3); font-weight: 600;
  border-bottom: 1px solid var(--border2);
  color: var(--text);
}
.docs-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text2);
}
.docs-content tr:last-child td { border-bottom: 0; }

/* Callouts */
.callout {
  padding: 14px 18px; border-radius: var(--radius);
  margin: 16px 0; font-size: 14px;
  border-left: 3px solid;
}
.callout-info {
  background: rgba(163,230,53,0.06);
  border-color: var(--lime); color: var(--text);
}
.callout-warning {
  background: rgba(245,158,11,0.06);
  border-color: var(--amber); color: var(--text);
}
.callout-danger {
  background: rgba(239,68,68,0.06);
  border-color: var(--red); color: var(--text);
}

/* Method badges */
.method {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; margin-right: 8px;
}
.method-get    { background: rgba(163,230,53,0.15); color: var(--lime); }
.method-post   { background: rgba(59,130,246,0.15); color: #60a5fa; }
.method-delete { background: rgba(239,68,68,0.15); color: var(--red); }
.method-put    { background: rgba(245,158,11,0.15); color: var(--amber); }

/* Footer */
.docs-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px; margin-top: 64px;
  text-align: center; color: var(--text-muted);
  font-size: 13px;
}
.docs-footer a { color: var(--text2); text-decoration: none; margin: 0 12px; }
.docs-footer a:hover { color: var(--lime); }

/* Mobile */
@media (max-width: 700px) {
  .docs-nav { display: none; }
  .docs-header-inner { padding: 12px 16px; }
  .docs-hero h1 { font-size: 28px; }
  .docs-content h2 { font-size: 21px; }
  .docs-layout { padding: 20px 16px 48px; }
}
