/* Feed — the authoritative EarshotCard (identical in NOW, EXPLORE,
   INBOX-opened sheets and YOU), Confirm/Reaction bars, the live
   strip, and the EchoSheet. Persona colors and mood gradients are
   user content and stay literal (Phase 0 §1.2). */

.feed { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ---- EarshotCard ---- */
.whisper { transition: opacity var(--t-slow); margin-bottom: 0; }
.whisper .meta-top { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; margin-bottom: 2px; flex-wrap: wrap; }
.persona-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-block; flex: 0 0 auto; }
.whisper .handle { font-weight: var(--fw-medium); color: var(--text-1); }
.intent-chip { font-size: 0.72rem; background: var(--surface-2); border-radius: 20px; padding: 2px 8px; color: var(--text-2); white-space: nowrap; }
.whisper .meta-sub { font-size: 0.78rem; color: var(--text-2); margin: 0 0 var(--sp-2); }
.whisper .meta-sub .dot { margin: 0 4px; }
.whisper-text { margin: 0 0 var(--sp-3); font-size: var(--fs-body); line-height: var(--lh-body); white-space: pre-wrap; }
.free-meta { font-size: 0.88rem; background: var(--surface-2); border-radius: var(--r-sm); padding: var(--sp-2) 10px; margin: var(--sp-2) 0 0; color: var(--text-1); }
.card-foot { margin-top: 10px; display: flex; align-items: center; gap: var(--sp-3); }
.echo-open { background: none; border: none; color: var(--accent); font-size: 0.9rem; padding: var(--sp-1) 0; cursor: pointer; }
.card-menu-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1rem;
  cursor: pointer;
  padding: var(--sp-1) var(--sp-2);
  letter-spacing: 2px;
}
.card-menu-btn:hover { color: var(--text-1); }

/* Happening event-start line on the card */
.event-meta { font-size: 0.85rem; color: var(--accent-bright); margin: var(--sp-2) 0 0; }

/* Calm waiting treatment for a just-posted Earshot (§2.3) */
.whisper.waiting { outline: 1px dashed var(--border-strong); outline-offset: -1px; }
.waiting-note { color: var(--text-2); font-size: var(--fs-meta); margin-top: var(--sp-2); }

/* Own-card state chips (YOU → My Earshots) */
.state-chip {
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  border-radius: var(--r-full);
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.state-chip.live { background: var(--accent-soft); color: var(--accent); }
.state-chip.pending { background: rgba(255, 180, 84, 0.15); color: var(--warning); }
.state-chip.hidden-state { background: rgba(255, 122, 122, 0.13); color: var(--danger); }
.mine-expiry { color: var(--text-3); font-size: var(--fs-caption); margin-top: var(--sp-2); }

/* Image / vibe card bodies */
.whisper-bgimg { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); background-size: cover; background-position: center; overflow: hidden; margin: 0 0 var(--sp-3); background-color: var(--surface-2); }
.whisper-bgimg.preview { touch-action: none; user-select: none; -webkit-user-select: none; }
.overlay-text { position: absolute; transform: translate(-50%, -50%); margin: 0; width: 88%; text-align: center; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,0.75), 0 1px 3px rgba(0,0,0,0.9); line-height: var(--lh-tight); white-space: pre-wrap; overflow-wrap: break-word; }
.font-sans { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.font-serif { font-family: Georgia, "Times New Roman", serif; }
.font-mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.font-hand { font-family: "Segoe Script", "Bradley Hand", "Comic Sans MS", cursive; }
.font-bold { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 800; }
.size-s { font-size: 15px; }
.size-m { font-size: 22px; }
.size-l { font-size: 30px; }

/* ---- Good Ear badge chip (Phase 3): name only, beside the handle.
   Uses the restrained violet secondary, like the YOU tier badge. ---- */
.tier-chip {
  display: inline-block;
  background: var(--accent-2-soft);
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
  border-radius: var(--r-full);
  padding: 0 7px;
  font-size: var(--fs-caption);
  font-weight: var(--fw-bold);
  white-space: nowrap;
  vertical-align: baseline;
}

/* ---- ConfirmBar ---- */
.confirm-bar { display: flex; align-items: center; gap: var(--sp-2); margin: var(--sp-2) 0; flex-wrap: wrap; }
.confirm-state { font-size: 0.85rem; font-weight: var(--fw-medium); color: var(--text-1); }
.confirm-btn { border-radius: 16px; padding: 5px 12px; font-size: 0.8rem; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-1); cursor: pointer; }
.confirm-btn.yes.active { background: var(--positive); border-color: var(--positive); color: #fff; }
.confirm-btn.no.active { background: var(--negative); border-color: var(--negative); color: #fff; }
.confirm-btn:disabled { opacity: 0.6; }

/* ---- ReactionBar ---- */
.reaction-bar { display: flex; gap: 6px; flex-wrap: wrap; margin: var(--sp-1) 0 10px; }
.reaction-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: var(--r-full);
  padding: 6px 12px;
  font-size: var(--fs-body-sm);
  cursor: pointer;
}
.reaction-btn:hover { border-color: var(--accent); }
.reaction-btn.active { border-color: var(--accent); color: var(--text-1); background: var(--accent-soft); }
.reaction-btn:disabled { opacity: 0.6; }
.rcount { font-size: var(--fs-caption); margin-left: 2px; }

/* ---- Live strip (NOW) ---- */
.live-section { margin: 0 0 6px; }
.live-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
.live-card { scroll-snap-align: start; flex: 0 0 180px; text-align: left; background: var(--surface-1); border: 1px solid var(--accent); border-radius: var(--r-md); padding: 10px; color: var(--text-1); font-size: 0.82rem; position: relative; cursor: pointer; }
.live-card .live-icon { font-size: 1.3rem; display: block; margin: 2px 0 4px; }
.live-card .live-text { color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.live-card .live-place { display: block; margin-top: 6px; font-size: 0.75rem; color: var(--text-2); }
.live-dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.live-badge { color: var(--live); font-weight: var(--fw-medium); }

/* "↑ New Earshots" chip (§2.1): refresh never yanks scroll) */
.new-chip {
  position: sticky;
  top: calc(var(--sp-2) + var(--safe-top));
  z-index: 5;
  display: block;
  margin: 0 auto var(--sp-3);
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--r-full);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-meta);
  font-weight: var(--fw-bold);
  cursor: pointer;
  box-shadow: var(--shadow-pop);
}

/* ---- EchoSheet ---- */
.echo-sheet { display: flex; flex-direction: column; overflow: hidden; }
.echo-original { background: var(--surface-2); border-radius: var(--r-md); padding: 10px; margin-bottom: var(--sp-2); }
.echo-original .whisper-bgimg { aspect-ratio: 16 / 9; margin-bottom: 6px; }
.echo-original .whisper { background: transparent; border: none; box-shadow: none; padding: 0; margin: 0; }
.echo-list { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-3); overflow-y: auto; }
.echo { background: var(--surface-2); border-radius: var(--r-md); padding: var(--sp-2) 10px; }
.echo .echo-meta { font-size: 0.78rem; color: var(--text-2); display: flex; align-items: center; gap: 5px; margin-bottom: var(--sp-1); flex-wrap: wrap; }
.echo .echo-meta .persona-dot { width: 16px; height: 16px; }
.echo .echo-meta .dot { margin: 0 2px; }
.echo p { margin: 0; font-size: var(--fs-body-sm); color: var(--text-1); }
.echo .echo-block-btn { margin-left: auto; }
.echo-form { display: flex; gap: var(--sp-2); align-items: flex-start; }
.echo-form textarea {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-size: var(--fs-body);
  padding: var(--sp-2) 10px;
  resize: vertical;
  font-family: inherit;
  min-width: 0;
}
.echo-form button {
  flex: 0 0 auto;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: var(--r-full);
  padding: 10px 18px;
  font-weight: var(--fw-bold);
  cursor: pointer;
}
.echo-form button:disabled { opacity: 0.5; }
