/* WalkSpy /watch/{id} — comment-drawer (real-time chat) styles.
 *
 * The watch surface itself moved to walk-page.css with the .wp-* namespace
 * in PR1 (May 2026). The .ww-stage / .ww-pip / .ww-player / .ww-camstrip /
 * .ww-actions / .ww-map / .ww-timeline / .ww-aside / .ww-comments-stub
 * blocks were stripped at the same time — they had no markup left.
 *
 * The comment-drawer component still uses these .ww-chat* classes, so this
 * file lives on as the chat stylesheet. If/when the chat moves to its own
 * file, this whole file can go.
 */

.ww-chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ww-chat__list { flex: 1; overflow-y: auto; padding: var(--w-space-2) 0; margin: 0; }
.ww-chat__empty {
  text-align: center; padding: var(--w-space-6);
  color: var(--w-fg-muted);
  font: var(--w-weight-regular) var(--w-text-sm)/var(--w-leading-snug) var(--w-font);
}

.ww-chat-thread { padding: var(--w-space-3) 0; border-bottom: 1px solid var(--w-border); }
.ww-chat-thread:last-child { border-bottom: 0; }
.ww-chat-replies {
  margin-top: var(--w-space-2);
  padding-left: calc(36px + var(--w-space-3));
  display: flex; flex-direction: column; gap: var(--w-space-2);
}

.ww-chat-msg {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--w-space-3);
  padding: var(--w-space-2) 0;
}
.ww-chat-msg--reply { padding: var(--w-space-2); background: var(--w-bg-alt); border-radius: var(--w-radius-sm); }
.ww-chat-msg__avatar {
  width: 36px; height: 36px;
  border-radius: var(--w-radius-circle);
  object-fit: cover;
  background: var(--w-bg-alt);
}
.ww-chat-msg--reply .ww-chat-msg__avatar { width: 28px; height: 28px; }
.ww-chat-msg__body { min-width: 0; }
.ww-chat-msg__head {
  display: flex; align-items: baseline; gap: var(--w-space-2);
  font: var(--w-weight-regular) var(--w-text-sm)/1.2 var(--w-font);
}
.ww-chat-msg__head strong { color: var(--w-fg); font-weight: var(--w-weight-semibold); }
.ww-chat-msg__head time { color: var(--w-fg-subtle); font-size: var(--w-text-xs); }
.ww-chat-msg__text {
  margin-top: 2px;
  font: var(--w-weight-regular) var(--w-text-base)/var(--w-leading-snug) var(--w-font);
  color: var(--w-fg);
  word-wrap: break-word;
}
.ww-chat-msg--reply .ww-chat-msg__text { font-size: var(--w-text-sm); }
.ww-chat-msg__reply {
  margin-top: 4px;
  background: none; border: 0; padding: 0;
  font: var(--w-weight-medium) var(--w-text-xs)/1 var(--w-font);
  color: var(--w-brand-600);
  cursor: pointer;
}
.ww-chat-msg__reply:hover { text-decoration: underline; }

.ww-chat-composer { padding: var(--w-space-3) 0 0; border-top: 1px solid var(--w-border); margin-top: var(--w-space-3); }
.ww-chat-composer--guest { border-top: 0; padding: var(--w-space-3) 0 0; }
.ww-chat-composer__reply-context {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--w-space-2) var(--w-space-3);
  background: var(--w-brand-50);
  border-radius: var(--w-radius-sm);
  margin-bottom: var(--w-space-2);
  font: var(--w-weight-regular) var(--w-text-sm)/1 var(--w-font);
  color: var(--w-brand-700);
}
.ww-chat-composer__reply-context button {
  background: none; border: 0; padding: 0;
  font-size: var(--w-text-lg); line-height: 1;
  color: var(--w-brand-700); cursor: pointer;
}
.ww-chat-composer__row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: var(--w-space-2);
  align-items: end;
}
.ww-chat-composer__avatar {
  width: 32px; height: 32px;
  border-radius: var(--w-radius-circle);
  object-fit: cover;
  background: var(--w-bg-alt);
}
.ww-chat-composer textarea {
  resize: none;
  width: 100%;
  padding: var(--w-space-2) var(--w-space-3);
  font: var(--w-weight-regular) var(--w-text-base)/var(--w-leading-snug) var(--w-font);
  color: var(--w-fg);
  background: var(--w-surface);
  border: 1px solid var(--w-border-strong);
  border-radius: var(--w-radius-md);
  min-height: 40px;
  max-height: 160px;
}
.ww-chat-composer textarea:focus-visible {
  outline: none;
  border-color: var(--w-brand-500);
  box-shadow: var(--w-shadow-glow);
}
