/* SylenProspec — Shared Design Tokens (Sylen AI brand) */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Base — Preto Premium #050505 + Cinza Escuro #111111 (per Sylen guide) */
  --bg-base:      #050505;
  --bg-elevated:  #0C0B12;
  --bg-card:      rgba(155, 109, 255, 0.035);
  --bg-card-hi:   rgba(155, 109, 255, 0.06);
  --bg-glass:     rgba(155, 109, 255, 0.04);
  --bg-glass-hi:  rgba(155, 109, 255, 0.08);

  /* Borders — violet-tinted */
  --border:       rgba(155, 109, 255, 0.10);
  --border-hi:    rgba(155, 109, 255, 0.18);
  --border-strong: rgba(155, 109, 255, 0.30);

  /* Text — per Sylen guide: Branco Premium + Cinza Tecnológico */
  --text:         #F5F5F7;
  --text-dim:     #B8B8C2;
  --text-muted:   #6E6E7A;
  --text-faint:   #3A3A45;

  /* Accent — Sylen Purple (#7B4DFF principal, #9B6DFF glow) */
  --accent:       #7B4DFF;
  --accent-soft:  rgba(123, 77, 255, 0.14);
  --accent-soft2: rgba(123, 77, 255, 0.06);
  --accent-bright:#9B6DFF;
  --accent-deep:  #4A1FD1;
  --accent-glow:  #9B6DFF;

  /* Semantic */
  --hot:          #9B6DFF;
  --warm:         #E8C547;
  --cool:         #7A95C9;
  --dead:         #3A3A45;
  --ok:           #4ADE80;

  /* Type — per Sylen guide: Space Grotesk primary, Inter secondary, JetBrains Mono data */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadows — layered + purple glow per Sylen guide */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.7), 0 2px 4px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 60px -20px rgba(0,0,0,0.9), 0 8px 16px -8px rgba(0,0,0,0.6);
  --shadow-glow:    0 0 40px -8px rgba(155, 109, 255, 0.55);
  --shadow-glow-sm: 0 0 20px -4px rgba(155, 109, 255, 0.4);
}

* { box-sizing: border-box; }

button {
  font-family: inherit;
  color: inherit;
}

html, body {
  margin: 0; padding: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
}

/* Display utility */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.mono { font-family: var(--font-mono); font-feature-settings: 'tnum'; }
.kbd {
  font-family: var(--font-mono); font-size: 10px;
  padding: 2px 5px; border-radius: 3px;
  background: var(--bg-glass-hi); border: 1px solid var(--border-hi);
  color: var(--text-dim);
}

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

/* Selection */
::selection { background: var(--accent); color: #050505; }

/* Glass surface (use as backdrop) */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
}

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-md);
  border: 1px solid var(--border-hi);
  background: var(--bg-glass);
  color: var(--text);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s ease;
  letter-spacing: -0.01em;
}
.btn:hover { background: var(--bg-glass-hi); border-color: var(--border-strong); }
.btn-primary {
  background: var(--accent); color: #F5F5F7; border-color: var(--accent);
  font-weight: 600;
  box-shadow: var(--shadow-glow-sm);
}
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); box-shadow: var(--shadow-glow); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-glass); border-color: var(--border); }

/* Inputs */
.input {
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  padding: 8px 12px;
  outline: none;
  transition: all .15s ease;
}
.input:focus { border-color: var(--accent); background: var(--bg-card-hi); }
.input::placeholder { color: var(--text-muted); }

/* Score chip — used by both directions */
.score-chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 2px 6px; border-radius: 3px;
  background: var(--bg-glass); border: 1px solid var(--border);
}
.score-hot  { color: var(--accent-bright);  background: var(--accent-soft); border-color: var(--accent); }
.score-warm { color: #E8C547; border-color: #E8C54740; }
.score-cool { color: var(--text-dim); }

/* Status dot */
.status-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-faint);
}
.dot-hot  { background: var(--accent-bright); box-shadow: 0 0 8px var(--accent-bright); }
.dot-warm { background: #E8C547; }
.dot-sent { background: #7A95C9; }
.dot-dead { background: #4A4845; }
.dot-cold { background: #6B6963; }
