/* Reverb — Design tokens (Font Awesome inspired: cream + sky-blue + magenta + yellow) */
:root {
  /* White / near-white surfaces */
  --bg: #FFFFFF;
  --bg-1: #FAFAF8;
  --bg-2: #F2F2EF;
  --bg-3: #E5E5E1;
  --line: rgba(24,30,50,0.08);
  --line-strong: rgba(24,30,50,0.14);
  --text: #15243D;
  --text-2: #4B5B73;
  --text-3: #8A93A3;
  --text-4: #C2C9D2;

  /* Primary — sky blue (echoing waves) */
  --accent: #3D8FE0;
  --accent-soft: #6FB1ED;
  --accent-deep: #1F6DC2;
  --accent-tint: rgba(61,143,224,0.13);
  --accent-tint-2: rgba(61,143,224,0.22);

  /* Secondary — magenta (for NEW, fresh moments) */
  --magenta: #E63B7A;
  --magenta-tint: rgba(230,59,122,0.13);
  --magenta-deep: #B91F58;

  /* Tertiary — sunny yellow (streaks, awards) */
  --yellow: #F9C557;
  --yellow-tint: rgba(249,197,87,0.20);
  --yellow-deep: #C7901E;

  /* Semantic */
  --good: #2E9968;
  --bad: #DA3D33;
  --warn: #E0A218;

  /* Type */
  --serif: 'Instrument Serif', 'Source Serif Pro', Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Geist', system-ui, sans-serif; /* used at heavy weights for headlines */
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

.rv {
  font-family: var(--sans);
  color: var(--text);
  letter-spacing: -0.01em;
}

.rv-serif { font-family: var(--serif); font-style: italic; letter-spacing: -0.015em; }
.rv-mono { font-family: var(--mono); font-feature-settings: 'tnum' on, 'ss01' on; }

/* Display — FA-style heavy sans for headlines */
.rv-display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.rv-overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.rv-mark { width: 22px; height: 22px; display:inline-block; }

@keyframes rv-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.1); }
}
.rv-pulse { animation: rv-pulse 2.4s ease-in-out infinite; }

@keyframes rv-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

/* Generic card */
.rv-card {
  background: var(--bg-1);
  border: 0.5px solid var(--line);
  border-radius: 22px;
}

/* Pills */
.rv-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 5px 9px; border-radius: 999px;
  text-transform: uppercase;
}

/* Source chip (citation) */
.rv-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 6px;
  border-radius: 999px;
  background: var(--bg-1);
  border: 0.5px solid var(--line-strong);
  font-size: 12px; font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}
.rv-chip .favicon {
  width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: #fff;
}

/* Tab bar (bottom nav) */
.rv-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 14px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.94) 28%, var(--bg) 70%);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 9;
}
.rv-tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 600; color: var(--text-3);
}
.rv-tab.active { color: var(--accent); }

/* Mini player */
.rv-mini {
  position: absolute; left: 10px; right: 10px; bottom: 78px;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid var(--line-strong);
  border-radius: 16px;
  padding: 8px 10px 8px 8px;
  display: flex; align-items: center; gap: 10px;
  z-index: 8;
  box-shadow: 0 8px 24px rgba(24,30,50,0.10);
}

/* Scroll content area */
.rv-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  position: relative; overflow: hidden;
  color: var(--text);
  font-family: var(--sans);
}

/* Hide scrollbar */
.rv-screen ::-webkit-scrollbar { display: none; }
.rv-screen * { scrollbar-width: none; }

/* Subtle texture (very faint) */
.rv-screen::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(24,30,50,0.012) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(24,30,50,0.012) 0%, transparent 40%);
  mix-blend-mode: multiply;
}
