/* BugJar — shared theme
   Direction: a calm, near-black "ink" surface with an aurora gradient
   (indigo → violet → pink) spent only on the brand mark, the primary
   action, and the replay timeline. Monospace carries all machine data
   (status codes, timings, payloads) to reinforce the dev-tool identity. */

/* ============================================================================
   THEME — to re-skin the whole site, change the brand hues below.
   Every accent (gradients, glows, borders, chips) derives from these three
   colours and their RGB triplets. Swap them and the site follows.
   ============================================================================ */
:root {
  --bg: #0b0f14;
  --surface: #111720;
  --surface-2: #161e29;
  --surface-3: #1f2937;
  --border: rgba(148, 163, 184, 0.10);
  --border-strong: rgba(148, 163, 184, 0.20);

  --text: #e6edf3;
  --muted: #8b98a9;
  --faint: #5a6675;

  /* ---- Brand accent: deep teal on slate. One confident hue, used sparingly. ---- */
  --indigo: #0f766e;   /* deep teal (gradient start / hover) */
  --violet: #0d9488;   /* primary accent */
  --pink: #14b8a6;     /* light teal */
  --cyan: #2dd4bf;     /* bright teal (highlights) */
  --indigo-rgb: 15, 118, 110;
  --violet-rgb: 13, 148, 136;
  --pink-rgb: 20, 184, 166;
  --cyan-rgb: 45, 212, 191;

  /* ---- Derived ---- */
  --accent: var(--violet);
  --accent-rgb: var(--violet-rgb);
  --accent-grad: linear-gradient(140deg, #0d9488 0%, #14b8a6 100%);
  --accent-grad-soft: linear-gradient(140deg, rgba(13, 148, 136, 0.14), rgba(45, 212, 191, 0.10));
  --glow: rgba(13, 148, 136, 0.50);
  --ring: rgba(20, 184, 166, 0.45);

  --ok: #34d399;
  --warn: #fbbf24;
  --err: #fb7185;
  --info: #38bdf8;

  --radius: 14px;
  --radius-sm: 9px;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", "Fira Code", Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(900px 500px at 12% -10%, rgba(var(--indigo-rgb), 0.16), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(var(--pink-rgb), 0.12), transparent 55%),
    radial-gradient(700px 600px at 50% 120%, rgba(var(--cyan-rgb), 0.07), transparent 60%);
  background-attachment: fixed;
}

::selection { background: rgba(var(--violet-rgb), 0.35); }

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Brand mark — concentric "replay ring" */
.brandmark {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 11px;
  background: var(--accent-grad);
  box-shadow: 0 6px 20px -6px rgba(var(--violet-rgb), 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.brandmark svg { display: block; }

/* Buttons */
.btn {
  font-family: var(--font);
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, 0.2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  border: none;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px -12px rgba(var(--violet-rgb), 0.6);
}
.btn-primary:hover { background: #0f8c80; }

.pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

/* Scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Honor the hidden attribute even when an element sets display via a class. */
[hidden] { display: none !important; }
