/* Shared NodeIO theme - matches The NODE Network site */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #07080f;
  --panel: #0d0f20;
  --panel-head: #10122a;
  --text: #d6d8ee;
  --text-soft: #c3c6e2;
  --text-bright: #eef0ff;
  --dim: #8a8db0;
  --line: oklch(0.45 0.12 285 / 0.45);
  --line-soft: oklch(0.45 0.12 285 / 0.3);
  --blue: oklch(0.74 0.14 250);
  --green: oklch(0.75 0.14 150);
  --purple: oklch(0.72 0.15 300);
  --red: oklch(0.68 0.17 25);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.panel-head {
  background: var(--panel-head);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 14px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-head .dots { display: inline-flex; gap: 5px; margin-right: 4px; }
.panel-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.panel-head .dots i:nth-child(1) { background: var(--red); }
.panel-head .dots i:nth-child(2) { background: oklch(0.8 0.14 85); }
.panel-head .dots i:nth-child(3) { background: var(--green); }
.panel-body { padding: 16px; }

.btn {
  font: inherit;
  font-weight: 700;
  color: var(--bg);
  background: var(--green);
  border: 0;
  border-radius: 4px;
  padding: 10px 18px;
  cursor: pointer;
  letter-spacing: 0.03em;
}
.btn:hover { filter: brightness(1.1); }
.btn:focus-visible { outline: 2px solid var(--text-bright); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

.input {
  font: inherit;
  color: var(--text-bright);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--blue); }

.prompt::before { content: '$ '; color: var(--green); }
.muted { color: var(--dim); }
.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.75 0.14 150 / 0.6); }
  70% { box-shadow: 0 0 0 8px oklch(0.75 0.14 150 / 0); }
  100% { box-shadow: 0 0 0 0 oklch(0.75 0.14 150 / 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
