/* docs/site/user/docs.css — shared styles (structure follows the
   venue-commander user docs; palette matches the prop web UI) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #14151a;
  --card-bg: #1d1f26;
  --status-bar: #0e0f13;
  --accent: #e8a33d;
  --accent-dim: #a97425;
  --green: #4caf78;
  --red: #d05050;
  --text: #d8dae2;
  --text-dim: #8b8fa3;
  --text-sec: #aab;
  --border: #454a5c;
  --input-bg: #23252e;
  --radius: 8px;
  --radius-sm: 6px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Top navigation ── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--status-bar);
  border-bottom: 2px solid #2a2c35;
  padding: 0 16px;
}
.top-bar-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.top-bar h1 {
  font-size: 1.1em;
  white-space: nowrap;
  padding: 10px 12px 10px 0;
  border-right: 1px solid #2a2c35;
  margin-right: 4px;
}
.top-bar h1 a { color: var(--accent); text-decoration: none; }
.top-bar a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9em;
  padding: 10px 12px;
  white-space: nowrap;
  transition: color 0.15s;
}
.top-bar a:hover, .top-bar a:focus { color: #fff; }
.top-bar a.active { color: var(--accent); }

/* ── Page layout ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 48px 16px 40px;
  border-bottom: 1px solid #2a2c35;
  margin-bottom: 32px;
}
.hero h1 { font-size: 2em; color: #fff; margin-bottom: 8px; }
.hero p {
  color: var(--text-sec);
  font-size: 1.05em;
  max-width: 640px;
  margin: 0 auto;
}
.hero .tag {
  display: inline-block;
  margin-top: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8em;
  padding: 3px 12px;
  border-radius: 20px;
}

/* ── Prop cards (landing) ── */
.nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.nav-card {
  display: block;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.1s;
}
.nav-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.nav-card .glyph { font-size: 1.7em; display: block; margin-bottom: 8px; }
.nav-card h3 { color: #fff; margin: 0 0 6px; font-size: 1.05em; }
.nav-card p { color: var(--text-dim); font-size: 0.85em; margin: 0; line-height: 1.4; }

/* ── Sections ── */
section { margin-bottom: 48px; scroll-margin-top: 52px; }
section > h2 {
  font-size: 1.4em;
  color: #fff;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 20px;
}
h3 { font-size: 1.1em; color: #fff; margin: 20px 0 8px; }
h4 { font-size: 1em; color: var(--text-sec); margin: 16px 0 6px; }
p, li { color: var(--text); margin-bottom: 8px; }
ul, ol { padding-left: 24px; margin-bottom: 12px; }
a { color: var(--accent); }

/* ── Steps ── */
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  padding-left: 36px;
  position: relative;
  margin-bottom: 12px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: #14151a;
  border-radius: 50%;
  font-size: 0.8em;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Cards ── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
}

/* ── Tables ── */
table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 0.95em; }
th {
  text-align: left;
  color: var(--text-sec);
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
  background: var(--card-bg);
}
td { padding: 8px 12px; border-bottom: 1px solid #2a2c35; vertical-align: top; }
tr:last-child td { border-bottom: none; }
td:first-child { white-space: nowrap; font-weight: 500; color: #fff; }

/* ── Code ── */
pre {
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 0.85em;
  line-height: 1.5;
  margin: 12px 0 16px;
}
code { font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace; font-size: 0.9em; }
p code, li code, td code {
  background: var(--input-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: #ddd;
}

/* ── Callouts ── */
.tip, .warning, .note {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 12px 0 16px;
  font-size: 0.95em;
  line-height: 1.5;
}
.tip { background: #24342a; border-left: 3px solid var(--green); }
.tip::before { content: "Tip: "; font-weight: 700; color: var(--green); }
.warning { background: #3d2626; border-left: 3px solid var(--red); }
.warning::before { content: "Warning: "; font-weight: 700; color: var(--red); }
.note { background: #33301f; border-left: 3px solid var(--accent); }
.note::before { content: "Note: "; font-weight: 700; color: var(--accent); }

/* ── UI element chip (mirrors the prop web UI) ── */
.ui {
  display: inline-block;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 8px;
  font-size: 0.85em;
  color: #fff;
  white-space: nowrap;
}

/* ── Footer ── */
footer {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85em;
  padding: 32px 16px;
  border-top: 1px solid #2a2c35;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Screenshots ── */
.shot { margin: 16px 0 20px; text-align: center; }
.shot img {
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.shot.narrow img { max-width: 380px; }
.shot figcaption { font-size: 0.85em; color: var(--text-dim); padding: 8px 12px; }

/* ── Video (vertical short) ── */
.video { margin: 16px auto 20px; max-width: 320px; }
.video iframe {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: block;
}
.video figcaption { font-size: 0.85em; color: var(--text-dim); padding: 8px 12px; text-align: center; }
