/* Ohey Documentation Shared Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #000000;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.16);
  --text: #ffffff;
  --text-secondary: rgba(255,255,255,0.55);
  --text-tertiary: rgba(255,255,255,0.35);
  --accent: #3b82f6;
  --accent-hover: #2563eb;
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  margin: 0; padding: 0; box-sizing: border-box;
}

body { background: var(--bg); color: var(--text); line-height: 1.6; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }

/* Focus styles for accessibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Navigation */
.doc-nav {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: rgba(0,0,0,0.85);
}
.doc-nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.doc-nav a.nav-brand { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.doc-nav .nav-links { display: flex; align-items: center; gap: 24px; }
.doc-nav .nav-link { font-size: 14px; color: var(--text-secondary); transition: color 0.2s; }
.doc-nav .nav-link:hover { color: var(--text); }
.doc-nav .nav-divider { color: var(--text-tertiary); }
.doc-nav .btn-launch {
  padding: 8px 20px; background: white; color: black; border-radius: 9999px;
  font-size: 13px; font-weight: 600; transition: background 0.2s;
}
.doc-nav .btn-launch:hover { background: #e5e5e5; }

/* Layout */
.doc-container { max-width: 1024px; margin: 0 auto; padding: 48px 24px 96px; }
.doc-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--accent); margin-bottom: 24px; transition: color 0.2s;
}
.doc-back:hover { color: var(--accent-hover); }

/* Headings */
.doc-title { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 8px; }
.doc-subtitle { font-size: 14px; color: var(--text-tertiary); margin-bottom: 32px; }

/* Tier badges */
.tier-badge {
  display: inline-block; padding: 4px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px; vertical-align: middle;
}
.tier-free { background: rgba(74,222,128,0.1); color: #4ade80; }
.tier-advanced { background: rgba(59,130,246,0.1); color: #60a5fa; }
.tier-pro { background: rgba(168,85,247,0.1); color: #a855f7; }

/* Sections */
.doc-section { margin-bottom: 48px; }
.doc-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; color: rgba(255,255,255,0.9); }
.doc-section p { color: var(--text-secondary); line-height: 1.7; }

/* Feature lists */
.feature-list { list-style: none; padding: 0; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6;
}
.feature-list li i { color: #4ade80; margin-top: 4px; flex-shrink: 0; font-size: 12px; }
.feature-list li strong { color: var(--text); }

/* Use-case list */
.usecase-list { list-style: none; padding: 0; }
.usecase-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; color: var(--text-secondary); font-size: 14px; line-height: 1.6;
}
.usecase-list li i { color: #facc15; margin-top: 4px; flex-shrink: 0; font-size: 12px; }

/* Steps */
.steps-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.step { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; color: var(--text-secondary); font-size: 14px; }
.step:not(:last-child) { border-bottom: 1px solid var(--border); }
.step-num {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: white;
}
.step strong { color: var(--text); }
.step kbd {
  display: inline-block; padding: 2px 8px; background: rgba(255,255,255,0.08);
  border-radius: 4px; font-size: 12px; font-family: 'Monaco','Menlo',monospace;
}

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; transition: all 0.25s ease;
}
.card:hover { background: var(--surface-hover); border-color: var(--border-hover); }

/* Info/Warning boxes */
.info-box {
  background: rgba(59,130,246,0.08); border-left: 3px solid #3b82f6;
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 16px 0;
  font-size: 14px; color: var(--text-secondary);
}
.info-box strong { color: var(--text); }
.warning-box {
  background: rgba(245,158,11,0.08); border-left: 3px solid #f59e0b;
  padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 16px 0;
  font-size: 14px; color: var(--text-secondary);
}

/* Data table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left; padding: 10px 16px; color: var(--text-tertiary);
  font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 16px; color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table code {
  background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px;
  font-size: 13px; font-family: 'Monaco','Menlo',monospace;
}

/* Responsive: scrollable tables on small screens */
@media (max-width: 640px) {
  .doc-title { font-size: 28px; }
  .doc-container { padding: 32px 16px 64px; }
  .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .related-links { grid-template-columns: 1fr; }
}

/* Metric cards grid */
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.metric-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; text-align: center;
}
.metric-card .value { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.metric-card .label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

/* Footer */
.doc-footer {
  border-top: 1px solid var(--border); padding: 32px 0;
}
.doc-footer-inner {
  max-width: 1024px; margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.doc-footer p { font-size: 12px; color: var(--text-tertiary); }
.doc-footer a { font-size: 12px; color: var(--text-tertiary); transition: color 0.2s; }
.doc-footer a:hover { color: var(--text-secondary); text-decoration: underline; }

/* Navigation breadcrumbs */
.related-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.related-link {
  display: block; padding: 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.2s; font-size: 14px;
}
.related-link:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.related-link .rl-label { font-size: 12px; color: var(--text-tertiary); margin-bottom: 4px; }
.related-link .rl-title { color: var(--text); font-weight: 600; }

/* Print styles */
@media print {
  .doc-nav, .skip-to-content, .related-links, .btn-launch, noscript { display: none; }
  body { background: white; color: black; }
  .doc-container { padding: 0; max-width: 100%; }
  .doc-section p, .feature-list li, .usecase-list li { color: #333; }
  .doc-footer { border-top: 1px solid #ccc; }
  .doc-footer p, .doc-footer a { color: #666; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #666; }
  .related-link a[href]::after { content: none; }
}

/* Table row hover */
.data-table tbody tr { transition: background 0.15s ease; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }

/* Inline code */
code:not(pre code) {
  background: rgba(255,255,255,0.06); padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em; font-family: 'Monaco','Menlo','Consolas',monospace;
}

/* Keyboard shortcut keys */
kbd {
  display: inline-block; padding: 2px 8px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border);
  border-radius: 4px; font-size: 12px; font-family: 'Monaco','Menlo',monospace;
  line-height: 1.4;
}

/* Smooth reveal for sections */
.doc-section { animation: fadeInUp 0.3s ease-out; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── UI Mockup / Screenshot Frames ── */
.ui-mockup {
  background: #0a0a0a; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; overflow: hidden; margin: 24px 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.03);
}
.ui-mockup-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ui-mockup-dots { display: flex; gap: 6px; }
.ui-mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.ui-mockup-dots .dot-r { background: #ff5f57; }
.ui-mockup-dots .dot-y { background: #febc2e; }
.ui-mockup-dots .dot-g { background: #28c840; }
.ui-mockup-title { font-size: 12px; color: var(--text-tertiary); font-weight: 500; }
.ui-mockup-toolbar { display: flex; gap: 8px; }
.ui-mockup-toolbar span {
  padding: 3px 10px; border-radius: 4px; font-size: 10px; font-weight: 600;
  background: rgba(255,255,255,0.06); color: var(--text-tertiary);
}
.ui-mockup-toolbar span.active { background: rgba(59,130,246,0.2); color: #60a5fa; }
.ui-mockup-body { padding: 0; min-height: 200px; position: relative; }
.ui-mockup-caption {
  padding: 12px 16px; font-size: 12px; color: var(--text-tertiary);
  border-top: 1px solid rgba(255,255,255,0.06); text-align: center; font-style: italic;
}

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th {
  padding: 14px 16px; background: rgba(255,255,255,0.03); font-weight: 700;
  border-bottom: 2px solid var(--border); text-align: left; font-size: 13px;
}
.compare-table th:first-child { color: var(--text-tertiary); font-weight: 500; }
.compare-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary);
}
.compare-table tr:hover { background: rgba(255,255,255,0.02); }
.compare-table .check { color: #4ade80; }
.compare-table .cross { color: rgba(255,255,255,0.15); }
.compare-table .highlight { background: rgba(168,85,247,0.05); }

/* Theme gallery */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.theme-swatch {
  border-radius: 8px; padding: 12px 10px; text-align: center;
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
  border: 1px solid rgba(255,255,255,0.08); transition: transform 0.2s;
}
.theme-swatch:hover { transform: scale(1.05); }

/* Decision tree / Which window */
.decision-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; margin: 8px 0; transition: all 0.2s;
}
.decision-card:hover { border-color: var(--accent); background: var(--surface-hover); }
.decision-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.decision-card p { font-size: 13px; color: var(--text-secondary); margin: 0; }
.decision-card .dc-tier { font-size: 11px; font-weight: 600; margin-top: 8px; }

/* Stat highlight boxes */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 20px 0; }
.stat-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 18px; text-align: center;
}
.stat-box .sb-num { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
.stat-box .sb-label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }
