/* ============================================================
   THE DROP — Shared components (static export)
   Bottom nav, buttons, pills, list rows, bottom sheets / modals,
   read tracker, category badge. Used across pages.
   ============================================================ */

/* ---- Glass bottom nav (fixed) ------------------------------------- */
.nav-wrap {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--phone-max); z-index: 60;
  padding: 30px 20px calc(20px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, var(--navFade0) 0%, var(--navFade1) 55%, var(--navFade2) 100%);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--navBg);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--navBorder);
  border-radius: 22px; padding: 12px 6px;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,.4), inset 0 1px 0 var(--navHi);
}
.nav__item {
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--navIdle); background: none; border: none;
}
.nav__item--active { color: var(--accent); }
.nav__item img { width: 30px; height: 30px; object-fit: contain; display: block; }

/* ---- Buttons ------------------------------------------------------- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); border: none; border-radius: var(--radius-btn);
  padding: 11px 16px; cursor: pointer;
  box-shadow: 0 8px 20px -9px rgba(255,106,43,.75);
  transition: box-shadow .15s ease, transform .15s ease;
}
.btn-primary:hover { box-shadow: 0 12px 26px -9px rgba(255,106,43,.95); transform: translateY(-1px); }
.btn-primary__label { font-size: 13.5px; font-weight: 800; color: #fff; letter-spacing: -.01em; }

.btn-block {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); border: none; border-radius: 14px; padding: 15px;
  color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -.01em; cursor: pointer;
  box-shadow: 0 10px 26px -10px rgba(255,106,43,.8);
}
.btn-ghost {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: none; border: 1px dashed var(--segBorder); border-radius: 14px; padding: 15px;
  color: var(--text2); font-size: 13.5px; font-weight: 700; cursor: pointer;
}

/* glass icon button (floating back over imagery) */
.btn-glass {
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(8,9,11,.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* ---- Category badge (solid chip on cards) -------------------------- */
.cat-badge {
  display: inline-flex; padding: 4px 9px; border-radius: 7px;
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #fff;
}
.cat-badge--world  { background: rgba(111,168,255,.85); }
.cat-badge--nation { background: rgba(75,227,167,.85); color: #0B0C0E; }
.cat-badge--sports { background: rgba(244,192,78,.9); color: #0B0C0E; }
.cat-badge--people { background: rgba(255,143,160,.9); color: #0B0C0E; }
.cat-badge--tech   { background: rgba(167,139,250,.85); }

/* ---- Read tracker (Today's Drop daily goal — USP) ------------------ */
.readtrack {
  display: inline-flex; align-items: baseline;
  font-family: var(--font); font-size: 22px; font-weight: 900; letter-spacing: -.01em; line-height: 1;
}
.readtrack__num { color: var(--accent); }
.readtrack__denom { color: var(--meta2); }
/* goal-reached pill (JS toggles .readtrack--done) */
.readtrack--done {
  align-items: center; gap: 7px;
  background: var(--accentTint); border: 1px solid var(--accentBorder);
  padding: 5px 12px 5px 6px; border-radius: var(--radius-pill);
  cursor: pointer; animation: goalPop .42s cubic-bezier(.22,1.2,.36,1);
}
.readtrack__check {
  width: 20px; height: 20px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.readtrack--done .readtrack__done-label { font-size: 15px; font-weight: 900; color: var(--accent); letter-spacing: -.01em; }

/* ---- Shared list row (category / results / breaking modal) --------- */
.row {
  display: flex; gap: 13px; align-items: center;
  padding: 12px 0; border-top: 1px solid var(--line3); cursor: pointer;
}
.row__thumb {
  width: 60px; height: 60px; flex: 0 0 auto;
  border-radius: 11px; overflow: hidden; background: var(--surface);
}
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__body { min-width: 0; flex: 1 1 auto; }
.row__head { font-family: var(--font); font-size: 13.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
.row__meta { font-family: var(--font-mono); font-size: 9.5px; color: var(--meta); letter-spacing: .04em; margin-top: 6px; display: block; }

/* ---- Bottom sheet / modal primitives ------------------------------- */
.sheet-overlay {
  position: fixed; inset: 0; z-index: 80; display: none;
}
.sheet-overlay.open { display: block; }
.sheet-scrim { position: absolute; top: 50px; left: 0; right: 0; bottom: 0; background: rgba(4,4,6,.74); animation: fadeIn .2s ease-out; }
.sheet {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: var(--phone-max); max-height: calc(100% - 50px); overflow-y: auto;
  background: var(--bg); border-top: 1px solid var(--surfaceBorder);
  border-radius: 24px 24px 0 0; animation: sheetUp .3s ease-out;
}
.sheet__grab-row { display: flex; justify-content: center; padding: 10px 0 0; }
.sheet__grab { width: 38px; height: 4px; border-radius: 2px; background: var(--segBorder); }
.sheet__head { padding: 27px 20px 14px; border-bottom: 1px solid var(--hairline); }
.sheet__head-row { display: flex; align-items: flex-start; justify-content: space-between; }
.sheet__title { font-family: var(--font); font-size: 27px; font-weight: 900; letter-spacing: -.025em; line-height: 1; margin: 0; color: var(--text); display: flex; align-items: center; gap: 9px; }
.sheet__title .accent { color: var(--accent); }
.sheet__meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.sheet__date { font-family: var(--font); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--undInk); }
.sheet__meta .sheet__dot { color: var(--text3); }
.sheet__sub { font-size: 12.5px; color: var(--text3); }
.sheet__close {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--surfaceBorder); background: var(--surface);
  color: var(--text3); font-size: 14px; cursor: pointer; margin-left: 12px;
}

/* live indicator dot */
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: dropPulse 1.6s infinite; }

/* ---- Search modal ---- */
.search-field { display: flex; align-items: center; gap: 10px; margin-top: 22px; background: var(--surface); border: 1px solid var(--surfaceBorder); border-radius: 13px; padding: 11px 14px; }
.search-input { flex: 1 1 auto; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-family: var(--font); font-size: 15px; }
.search-input::placeholder { color: var(--text3); }
.search-body { padding: 8px 20px 30px; }
.search-cap { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text3); margin-bottom: 12px; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.search-chips--row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.search-chips--row .search-chip { flex: 0 0 auto; }
.search-chip { display: inline-flex; align-items: center; gap: 7px; background: var(--pillBg); border: 1px solid var(--pillBorder); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.search-chip__dot { width: 7px; height: 7px; border-radius: 50%; }
.search-chip--active { background: var(--accentTint); border-color: var(--accentBorder); color: var(--accent); }
.search-results { display: flex; flex-direction: column; }

/* Search drops down from the top (below the status bar) */
#searchModal .sheet { top: 50px; bottom: auto; max-height: calc(100% - 60px); border-radius: 0 0 24px 24px; animation: dropDown .28s cubic-bezier(.22,.61,.36,1); }
#searchModal .sheet__head { border-bottom: none; }

/* ---- Sheet list container (breaking modal) ------------------------- */
.sheet-list { padding: 0 16px 26px; }

/* ---- Two Takes cards ----------------------------------------------- */
.tt-context-wrap { padding: 4px 20px 10px; }
.tt-context { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; color: var(--meta); text-transform: uppercase; }
.tt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 22px 18px 22px; }
@media (max-width: 360px) { .tt-cards { grid-template-columns: 1fr; } }
.tt-cards--stack { grid-template-columns: 1fr; }
.tt-card { border-radius: 16px; padding: 15px 14px; display: flex; flex-direction: column; }
.tt-card.take-a { background: var(--ttA-tint); border: 1px solid var(--ttA-border); }
.tt-card.take-b { background: var(--ttB-tint); border: 1px solid var(--ttB-border); }
.tt-card__head { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; }
.tt-badge { width: 24px; height: 24px; border-radius: 7px; font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.tt-card.take-a .tt-badge { background: var(--ttA-tint); color: var(--ttA); }
.tt-card.take-b .tt-badge { background: var(--ttB-tint); color: var(--ttB); }
.tt-kicker { font-family: var(--font); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.tt-card.take-a .tt-kicker { color: var(--ttA); }
.tt-card.take-b .tt-kicker { color: var(--ttB); }
.tt-h { font-size: 15px; font-weight: 800; line-height: 1.18; letter-spacing: -.01em; margin: 0 0 9px; color: var(--text); }
.tt-p { font-size: 12.5px; line-height: 1.5; color: var(--text2); margin: 0 0 12px; }
.tt-attr { margin-top: auto; font-family: var(--font-mono); font-size: 9px; color: var(--meta2); letter-spacing: .04em; }

/* Two Takes — A/B vote poll */
.tt-poll { margin: 4px 18px 22px; background: var(--surface); border: 1px solid var(--surfaceBorder); border-radius: 14px; padding: 14px 15px; }
.tt-poll-q { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 11px; }
.tt-poll-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tt-vote { text-align: center; padding: 10px 0; border-radius: 10px; font-family: var(--font); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.tt-vote--a { background: var(--ttA-tint); border: 1px solid var(--ttA-border); color: var(--ttA); }
.tt-vote--b { background: var(--ttB-tint); border: 1px solid var(--ttB-border); color: var(--ttB); }
.tt-vote--chosen { box-shadow: inset 0 0 0 1.5px currentColor; font-weight: 800; }

/* Two Takes — post-vote confirmation page (no data-collection language) */
.tt-done { text-align: center; padding: 64px 30px 70px; min-height: 38vh; display: flex; flex-direction: column; align-items: center; justify-content: center; animation: fadeIn .45s ease; }
.tt-done__line { font-family: var(--font); font-size: 30px; line-height: 1.1; font-weight: 900; letter-spacing: -.03em; color: var(--text); max-width: 13ch; text-wrap: balance; }
.tt-done__line .accent { color: var(--accent); display: block; margin-top: 10px; }

/* Bottom-sheet fade-out (applied just before close) */
.sheet-overlay { transition: opacity .4s ease; }
.sheet-overlay--closing { opacity: 0; }

/* The Front Page — headlines (scannable) */
.fp-sheet { position: relative; display: flex; flex-direction: column; }
.fp-head { position: sticky; top: 0; z-index: 2; padding: 26px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--hairline); }
.fp-head__row { display: flex; align-items: flex-start; justify-content: space-between; }
.fp-title { font-family: var(--font); font-size: 27px; font-weight: 900; letter-spacing: -.025em; line-height: 1; margin: 0; color: var(--text); }
.fp-title .accent { color: var(--accent); }
.fp-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.fp-date { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--undInk); }
.fp-meta .fp-dot { color: var(--text3); }
.fp-sub { font-size: 12.5px; color: var(--text3); }
.fp-close { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--surfaceBorder); background: var(--surface); color: var(--text3); display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: 12px; }
.fp-body { padding: 4px 24px 40px; }
/* Front Page: absolutely-positioned fixed-height scroll container.
   top rests at the status-bar bottom (50px), fills to the screen edge, and
   scrolls internally — so the sticky .fp-head locks against the status bar
   while the body scrolls up underneath it (content passes under the divider). */
#frontPage .sheet { position: absolute; top: 50px; bottom: 0; max-height: none; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: 0; }
.fp-sec { padding: 16px 0; border-top: 1px solid var(--hairline); }
.fp-sec:first-child { border-top: none; }
.fp-sec__label { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.fp-sec__tick { width: 3px; height: 12px; border-radius: 2px; flex: 0 0 auto; }
.fp-hl { display: flex; gap: 11px; align-items: flex-start; font-family: var(--font); font-size: 14.5px; line-height: 1.4; font-weight: 400; letter-spacing: -.005em; color: var(--text2); padding: 5px 0; text-wrap: pretty; }
.fp-hl__bullet { flex: 0 0 auto; width: 4px; height: 4px; border-radius: 50%; background: var(--sec, var(--accent)); margin-top: 9px; }

/* ───────── Country / band switch overlay ───────── */
/* Translucent overlay shown while content refetches.
   Previous content stays visible underneath so the switch feels
   responsive rather than blank. */
.drop-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  z-index: 80;            /* above bottom nav (70), below modals */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .18s ease-out;
}
.drop-overlay--show {
  opacity: .82;
  pointer-events: auto;
}
.drop-overlay__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.drop-overlay__spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid var(--accentBg, rgba(255,106,43,.2));
  border-top-color: var(--accent, #FF6A2B);
  animation: dropSpin .8s linear infinite;
}
.drop-overlay__label {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: .82;
}
@keyframes dropSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .drop-overlay__spinner { animation: none; }
  .drop-overlay { transition: none; }
}

/* ───────── Coming Soon empty state ───────── */
.coming-soon {
  padding: 64px 22px;
  text-align: center;
  color: var(--ink);
}
.coming-soon__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accentBg, rgba(255,106,43,.14));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.coming-soon__title {
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 10px;
}
.coming-soon__title em { color: var(--accent, #FF6A2B); font-style: normal; }
.coming-soon__body {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--inkMuted, var(--ink));
  opacity: .76;
  max-width: 320px;
  margin: 0 auto 20px;
}
.coming-soon__cta {
  display: inline-block;
  padding: 12px 22px;
  border: none;
  background: var(--accent, #FF6A2B);
  color: var(--onAccent, #fff);
  border-radius: 999px;
  font-family: 'Archivo', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.coming-soon__cta:hover { opacity: .92; }
