/* ============================================================
   ODonnell Lab Wiki — Shared Styles
   Import this in every page:
   <link rel="stylesheet" href="/shared.css">
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;600&family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Serif:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface2: #1c2230;
  --border: #30363d;
  --border2: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --accent: #58a6ff;
  --accent2: #3fb950;
  --accent3: #f78166;
  --accent4: #d2a8ff;
  --accent5: #ffa657;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
  --serif: 'IBM Plex Serif', serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
}

/* ── SITE HEADER ─────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
}

.site-logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent2);
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-decoration: none;
  padding-right: 2rem;
  border-right: 1px solid var(--border2);
  margin-right: 0.5rem;
  height: 56px;
  display: flex;
  align-items: center;
}
.site-logo:hover { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  padding: 0 1rem;
  height: 56px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.site-nav a.current-page { color: var(--text); border-bottom-color: var(--border); }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1 { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; line-height: 1.3; }
h2 { font-family: var(--sans); font-size: 1.25rem; font-weight: 600; color: var(--text); margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border2); }
h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--accent4); margin: 1.5rem 0 0.75rem; }
p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7; }
p strong { color: var(--text); font-weight: 600; }
a { color: var(--accent); }

/* ── CALLOUTS ────────────────────────────────────────────── */
.callout { border-left: 3px solid var(--accent); background: rgba(88,166,255,0.06); padding: 1rem 1.25rem; margin: 1.25rem 0; border-radius: 0 6px 6px 0; }
.callout.green  { border-left-color: var(--accent2); background: rgba(63,185,80,0.06); }
.callout.orange { border-left-color: var(--accent5); background: rgba(255,166,87,0.06); }
.callout.red    { border-left-color: var(--accent3); background: rgba(247,129,102,0.06); }
.callout-title  { font-size: 12px; font-family: var(--mono); font-weight: 600; margin-bottom: 0.4rem; opacity: 0.7; }
.callout p      { margin: 0; font-size: 13px; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { background: var(--accent); color: #000; border: none; padding: 0.55rem 1.25rem; border-radius: 6px; font-family: var(--mono); font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.btn:hover { opacity: 0.85; }
.btn-green { background: var(--accent2); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }

/* ── BADGE ───────────────────────────────────────────────── */
.badge { display: inline-block; padding: 0.15em 0.5em; border-radius: 3px; font-size: 11px; font-family: var(--mono); font-weight: 600; }
.badge-blue   { background: rgba(88,166,255,0.15);  color: var(--accent); }
.badge-green  { background: rgba(63,185,80,0.15);   color: var(--accent2); }
.badge-orange { background: rgba(255,166,87,0.15);  color: var(--accent5); }
.badge-purple { background: rgba(210,168,255,0.15); color: var(--accent4); }

/* ── TABLES ──────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 1rem 0; }
.data-table th { background: var(--surface2); color: var(--text-muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.6rem 0.75rem; border: 1px solid var(--border); text-align: left; font-weight: 600; }
.data-table td { padding: 0.5rem 0.75rem; border: 1px solid var(--border2); color: var(--text-muted); font-family: var(--mono); font-size: 12px; }
.data-table tr:hover td { background: rgba(255,255,255,0.02); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.table-wrap .data-table { margin: 0; }

/* ── FORM INPUTS ─────────────────────────────────────────── */
.filter-input, .dna-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.filter-input:focus, .dna-input:focus { border-color: var(--accent); }
.filter-input::placeholder, .dna-input::placeholder { color: var(--text-dim); }
.filter-select { background: var(--surface2); border: 1px solid var(--border); color: var(--text); padding: 0.5rem 0.75rem; border-radius: 6px; font-family: var(--mono); font-size: 13px; outline: none; cursor: pointer; }
.filter-select:focus { border-color: var(--accent); }

/* ── CARD ────────────────────────────────────────────────── */
.card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; margin: 1rem 0; }
.card h3 { margin-top: 0; }

/* ── SCROLL ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
