/* StreamHawk shared design system.
   Deep Network Blue / Electric Cyber Cyan / Sky Blue — dark, geometric,
   minimal. Single dark theme by design (a network console doesn't need
   a light mode) — colors are painted explicitly throughout. */

:root {
  --bg: #050914;
  --bg-raised: #0a1229;
  --surface: #0f1b3a;
  --surface-hover: #142449;
  --border: #1c2c54;
  --border-bright: #2a3f74;

  --text: #eaf1ff;
  --text-dim: #8ca0c7;
  --text-faint: #566789;

  --cyan: #00e5ff;
  --cyan-dim: #00a8c0;
  --cyan-ink: #04222b;
  --sky: #4fc3f7;

  --ok: #3ddc84;
  --warn: #f0b429;
  --err: #ff6b6b;

  --font-display: "Chakra Petch", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --container: 1100px;
  --container-narrow: 760px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; }

::selection { background: var(--cyan); color: var(--cyan-ink); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}

.muted { color: var(--text-dim); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--cyan);
  color: var(--cyan-ink);
  box-shadow: 0 0 0 rgba(0, 229, 255, 0);
}
.btn-primary:hover { background: #33ecff; box-shadow: 0 0 24px rgba(0, 229, 255, 0.35); }
.btn-primary:disabled { background: var(--border-bright); color: var(--text-faint); cursor: not-allowed; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-bright);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-danger {
  background: transparent;
  color: var(--err);
  border-color: rgba(255, 107, 107, 0.4);
}
.btn-danger:hover { background: rgba(255, 107, 107, 0.1); }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- form controls ---------- */

label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-dim);
}

input[type="text"],
input[type="datetime-local"],
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  box-sizing: border-box;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
}
input[type="text"]::placeholder,
textarea::placeholder { color: var(--text-faint); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--cyan);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--text);
  font-size: 14px;
}
input[type="checkbox"] { accent-color: var(--cyan); width: 16px; height: 16px; }

/* ---------- status text/pills ---------- */

.status { margin-top: 10px; font-size: 13px; min-height: 16px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-live { background: rgba(61, 220, 132, 0.14); color: var(--ok); }
.pill-pending { background: rgba(240, 180, 41, 0.14); color: var(--warn); }
.pill-off { background: var(--surface); color: var(--text-faint); border: 1px solid var(--border); }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

/* ---------- shared site header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 9, 20, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.01em;
}
.logo-mark { width: 26px; height: 26px; flex: none; }

/* Brand mark, recolored to theme via CSS mask (source art is solid
   black on transparent — mask lets any gradient/color show through the
   shape instead). */
.hawk-logo {
  display: inline-block;
  background: var(--cyan);
  -webkit-mask-image: url("/static/logo-hawk.png");
  mask-image: url("/static/logo-hawk.png");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.hawk-logo-gradient {
  background: linear-gradient(135deg, var(--cyan), var(--sky));
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--text-dim);
}
.site-nav-links a {
  color: var(--text-dim);
  text-decoration: none;
}
.site-nav-links a:hover, .site-nav-links a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 16px; }

footer.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 28px 0;
  color: var(--text-faint);
  font-size: 13px;
}
footer.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
