/* OSINTool — Design System
   (c) github/pedroowb */

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

*,*::before,*::after{box-sizing:border-box}

:root {
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Menlo', monospace;
  --bg: #0a0a0c;
  --bg-raised: #111114;
  --bg-surface: #18181c;
  --bg-overlay: rgba(10,10,12,.92);
  --border: #232328;
  --border-subtle: #1c1c20;
  --text-primary: #e8e8ec;
  --text-secondary: #9898a4;
  --text-tertiary: #5c5c6a;
  --accent: #d4a843;
  --accent-dim: rgba(212,168,67,.12);
  --accent-text: #e8c56e;
  --info: #5b8def;
  --info-dim: rgba(91,141,239,.1);
  --success: #3dba7a;
  --danger: #e05252;
  --radius: 10px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code, kbd, pre, .font-mono, select, input[type="text"] {
  font-family: var(--font-mono);
}

::selection {
  background: var(--accent);
  color: #0a0a0c;
}

/* Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a42; }

/* ── Surfaces ────────────────────────────────────── */

.surface {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.surface-inset {
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}

.card:hover {
  border-color: #3a3a44;
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
}

/* ── Badges & Tags ───────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: .02em;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-accent  { background: var(--accent-dim); color: var(--accent-text); }
.badge-info    { background: var(--info-dim); color: var(--info); }
.badge-neutral { background: rgba(255,255,255,.06); color: var(--text-secondary); }
.badge-success { background: rgba(61,186,122,.1); color: #5dd99a; }
.badge-danger  { background: rgba(224,82,82,.1); color: #ef7676; }
.badge-purple  { background: rgba(139,92,246,.1); color: #a78bfa; }
.badge-teal    { background: rgba(45,212,191,.08); color: #5eead4; }

/* ── Buttons ─────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #0a0a0c;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #ddb44e;
  box-shadow: 0 0 16px rgba(212,168,67,.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: #3a3a44;
}

.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  border-color: rgba(224,82,82,.25);
}
.btn-danger-ghost:hover {
  background: rgba(224,82,82,.08);
}

/* ── Inputs ──────────────────────────────────────── */

.input-field {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-mono);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.input-field:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

/* ── Misc ────────────────────────────────────────── */

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: dot-pulse 2.5s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .35; }
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stat-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Terminal */
.terminal {
  background: #060608;
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
  overflow-y: auto;
  white-space: pre-wrap;
}

/* Toast animations */
.toast-enter {
  transform: translateX(20px);
  opacity: 0;
}
.toast-visible {
  transform: translateX(0);
  opacity: 1;
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.toast-exit {
  transform: translateX(20px);
  opacity: 0;
  transition: all .2s ease-in;
}

/* Nav tab active marker */
.nav-tab { position: relative; }
.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
