/* Klickie ops mockups — exact-match visual language from /public/app.css */

@import url("https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:wght@400&display=swap");

:root {
  --fg: #0A1F15;
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --muted: #6B7A72;
  --muted-light: #9CA89F;
  --border: #E5E2DC;
  --border-light: #F0EDE8;
  --secondary: #F2F0EB;
  --green: #1CD987;
  --green-soft: rgba(28, 217, 135, 0.08);
  --green-medium: rgba(28, 217, 135, 0.15);
  --red: #E5534B;
  --red-soft: rgba(229, 83, 75, 0.08);
  --amber: #D4A843;
  --amber-soft: rgba(212, 168, 67, 0.08);
  --blue: #4A90D9;
  --blue-soft: rgba(74, 144, 217, 0.08);
  --purple: #8B6CC1;
  --purple-soft: rgba(139, 108, 193, 0.08);

  --font-serif: "Instrument Serif", Georgia, serif;
  --font-sans: "Satoshi", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "JetBrains Mono", monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 100px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 21, 0.04);
  --shadow: 0 2px 8px rgba(10, 31, 21, 0.06);
  --shadow-lg: 0 8px 24px rgba(10, 31, 21, 0.10);
}

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

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--fg);
  font-size: 13px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ── Header (matches cockpit .header) ──────────────── */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--fg);
  letter-spacing: -0.3px;
}
.header-logo .y-mark { color: var(--green); }
.header-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.2px;
}
.tab-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.tab-btn {
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: -0.1px;
}
.tab-btn:hover { background: var(--secondary); color: var(--fg); }
.tab-btn.active { background: var(--fg); color: white; }
.header-right { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--secondary); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
}

/* ── Page wrap ──────────────────────────────────────── */
.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 16px 24px;
}

/* ── View title block (matches cockpit) ────────────── */
.title-row {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 14px;
}
.view-title {
  font-family: var(--font-serif);
  font-size: 28px; font-weight: 400;
  letter-spacing: -0.5px;
  color: var(--fg);
  line-height: 1.1;
}
.view-subtitle {
  font-size: 12px; color: var(--muted);
}
.view-subtitle b { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.title-actions { margin-left: auto; display: flex; gap: 6px; }

/* ── Filter / toolbar (matches cockpit .filter-row) ── */
.filter-row {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  font-size: 12px; font-weight: 500;
  color: var(--fg);
  cursor: pointer;
}
.filter-btn:hover { border-color: var(--muted-light); }
.filter-btn.active { background: var(--fg); color: white; border-color: var(--fg); }
.filter-btn .arrow { color: var(--muted); margin-left: 4px; font-size: 9px; }
.filter-sep { color: var(--border); margin: 0 4px; font-size: 11px; }
.view-toggle {
  display: inline-flex;
  background: var(--secondary);
  border-radius: var(--radius-pill);
  padding: 3px;
}
.view-toggle button {
  background: transparent; border: none;
  padding: 4px 12px;
  font-size: 12px; font-weight: 500;
  color: var(--muted); cursor: pointer;
  border-radius: var(--radius-pill);
}
.view-toggle button.active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.search-input {
  background: var(--secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--font-sans);
  width: 180px;
  color: var(--fg);
  outline: none;
}
.search-input:focus {
  background: var(--surface); border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}
.tb-primary {
  background: var(--fg); color: white; border: none;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
}
.tb-primary:hover { background: #000; }

/* ── Kanban board ─────────────────────────────────── */
.board {
  display: grid;
  grid-template-columns: repeat(5, minmax(200px, 1fr)) 48px;
  gap: 10px;
  align-items: start;
}
.col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 340px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.col-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 8px;
  position: relative;
}
.col-head::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--stage-color, var(--muted));
}
.col-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px;
  font-weight: 700; color: var(--fg);
}
.col-count {
  margin-left: auto;
  background: var(--secondary); color: var(--muted);
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 600;
}
.col-actions {
  color: var(--muted-light); cursor: pointer;
  padding: 0 2px; font-size: 13px; line-height: 1;
}
.col-actions:hover { color: var(--fg); }
.col-cards { padding: 6px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.col-add {
  background: transparent; border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  align-self: stretch; min-height: 340px;
  color: var(--muted-light); font-size: 12px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.col-add:hover { color: var(--fg); border-color: var(--muted-light); background: var(--surface); }
.col-add-plus { font-size: 18px; line-height: 1; }
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 9px 11px;
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 120ms ease, border-color 120ms ease;
}
.card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); border-color: var(--border); }
.card-name { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 1px; letter-spacing: -0.1px; }
.card-company { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--muted); }
.card-meta-owner {
  margin-left: auto;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--secondary); color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
}
.card-days { font-variant-numeric: tabular-nums; }
.card-tag {
  display: inline-block; padding: 1px 6px; border-radius: var(--radius-pill);
  background: var(--secondary); color: var(--muted);
  font-size: 10px; font-weight: 600;
}
.empty-col {
  text-align: center; padding: 28px 8px;
  font-size: 11px; color: var(--muted-light);
  font-style: italic;
}

/* ── Mockup footer card (the floating hint) ─────── */
.mockup-hint {
  position: fixed; bottom: 12px; right: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  font-size: 11px; color: var(--muted);
  box-shadow: var(--shadow);
  max-width: 280px;
  line-height: 1.5;
}
.mockup-hint b { color: var(--fg); font-weight: 600; }
.mockup-hint a { color: var(--green); font-weight: 600; }
