/* Discuss — AI-curated story rooms. Dark theme; the accent on this page is
   WHITE by design (never #00a8ff). Entity chips encode type by color:
   athlete=white, team=amber, story=green. Matches design_handoff_discuss/. */

.disc-page {
  --d-line: rgba(255, 255, 255, .08);
  --d-line-2: rgba(255, 255, 255, .12);
  --d-hair: rgba(255, 255, 255, .07);
  --d-ink: #fff;
  --d-ink-2: rgba(255, 255, 255, .6);
  --d-ink-3: rgba(255, 255, 255, .4);
  --d-panel: rgba(255, 255, 255, .025);
  --d-pos: #47c47d;
  --d-pos-soft: #7ee0a6;
  --d-amber: #f1b82d;
  color: var(--d-ink);
  font-variant-numeric: tabular-nums;
  min-height: 60vh;
}
.disc-wrap { margin: 0 auto; padding: 34px 28px 90px; }
.disc-feed { max-width: 1000px; }
.disc-room { max-width: 780px; padding-top: 20px; }
.disc-page a { color: inherit; }

/* ---------- shared chips ---------- */
.disc-topic-chip {
  font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .66);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--d-line);
  padding: 3px 9px; border-radius: 6px; white-space: nowrap;
}
/* inline entity chip in a take body + the composer */
.disc-chip {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: baseline;
  margin: 0 1px; padding: 1px 7px 1px 6px; border-radius: 6px;
  font-weight: 600; color: #fff; font-size: 13.5px; text-decoration: none;
  user-select: none;
}
.disc-chip .disc-chip-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }

/* ---------- LIVE / status pills ---------- */
.disc-pill {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.disc-pill-live { color: var(--d-pos-soft); background: rgba(71, 196, 125, .14); }
.disc-pill-live .disc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--d-pos); box-shadow: 0 0 7px var(--d-pos); }
.disc-pill-arch { color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }

/* ======================= FEED ======================= */
.disc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.disc-h1 { margin: 0 0 6px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.disc-feed-sub { margin: 0 0 28px; font-size: 14px; color: rgba(255, 255, 255, .5); max-width: 560px; }

/* lead room */
.disc-lead {
  position: relative; display: block; height: 300px; border-radius: 18px;
  overflow: hidden; border: 1px solid var(--d-line); text-decoration: none;
  margin-bottom: 16px; background: rgba(255, 255, 255, .04);
  transition: transform .15s ease, border-color .25s ease;
}
.disc-lead:hover { transform: translateY(-3px); border-color: var(--d-line-2); }
.disc-lead-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.disc-lead:hover .disc-lead-img { transform: scale(1.03); }
.disc-lead-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 13, 16, .96) 8%, rgba(11, 13, 16, .5) 50%, rgba(11, 13, 16, .1) 100%); }
.disc-lead-pill {
  position: absolute; top: 16px; left: 16px;
  background: rgba(71, 196, 125, .16); border: 1px solid rgba(71, 196, 125, .4); color: var(--d-pos-soft);
}
.disc-lead-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px; }
.disc-lead-chips { display: flex; gap: 7px; margin-bottom: 11px; flex-wrap: wrap; }
.disc-lead-title { margin: 0 0 12px; font-size: 23px; line-height: 1.22; font-weight: 800; letter-spacing: -.01em; max-width: 720px; }
.disc-meta { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--d-ink-2); }
.disc-meta b { color: #fff; font-weight: 700; }
.disc-meta-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; }

/* lead-card hero chips read on the photo */
.disc-lead .disc-topic-chip { color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .1); border-color: transparent; }

/* other open rooms */
.disc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.disc-card {
  display: flex; flex-direction: column; border: 1px solid var(--d-line);
  border-radius: 16px; background: var(--d-panel); padding: 18px 20px; text-decoration: none;
  transition: transform .15s ease, border-color .25s ease;
}
.disc-card:hover { transform: translateY(-3px); border-color: var(--d-line-2); }
.disc-card-top { display: flex; gap: 7px; margin-bottom: 11px; align-items: center; flex-wrap: wrap; }
.disc-card .disc-topic-chip { font-size: 10.5px; padding: 2px 8px; }
.disc-card-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--d-pos-soft); }
.disc-card-live .disc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--d-pos); }
.disc-card-title { margin: 0 0 9px; font-size: 16.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
.disc-card-summary { margin: 0 0 14px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .5); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.disc-card-foot { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; color: rgba(255, 255, 255, .5); }
.disc-card-foot b { color: #fff; font-weight: 700; }
.disc-card-go { margin-left: auto; font-weight: 700; color: #fff; }

/* archived */
.disc-arch-head { margin: 34px 0 14px; display: flex; align-items: center; gap: 12px; }
.disc-arch-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--d-ink-3); }
.disc-arch-rule { flex: 1; height: 1px; background: var(--d-line); }
.disc-arch-row {
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--d-hair);
  border-radius: 14px; background: rgba(255, 255, 255, .012); padding: 14px 18px;
  text-decoration: none; opacity: .78; margin-bottom: 10px; transition: opacity .15s ease;
}
.disc-arch-row:hover { opacity: 1; }
.disc-arch-tag { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); padding: 3px 9px; border-radius: 6px; }
.disc-arch-title { margin: 0; font-size: 14.5px; font-weight: 700; color: rgba(255, 255, 255, .82); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-arch-count { font-size: 12px; color: var(--d-ink-3); white-space: nowrap; }
.disc-arch-count b { color: var(--d-ink-2); font-weight: 700; }

/* ======================= ROOM ======================= */
.disc-back {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 18px;
  padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1);
  background: transparent; color: var(--d-ink-2); font: 600 12px Inter, sans-serif; cursor: pointer;
}
.disc-back:hover { color: #fff; border-color: var(--d-line-2); }

.disc-header { border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: var(--d-panel); padding: 22px 24px; margin-bottom: 22px; }
.disc-header-status { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; flex-wrap: wrap; }
.disc-header-date { font-size: 12px; color: var(--d-ink-3); }
.disc-header-count { margin-left: auto; font-size: 12px; color: var(--d-ink-2); }
.disc-header-count b { color: #fff; font-weight: 700; }
.disc-header-title { margin: 0 0 12px; font-size: 22px; line-height: 1.26; font-weight: 800; letter-spacing: -.01em; }
.disc-ai-eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--d-ink-3); margin-bottom: 9px; }
.disc-ai-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .45); }
.disc-summary { margin: 0 0 16px; font-size: 13.5px; line-height: 1.62; color: rgba(255, 255, 255, .66); }
.disc-pins { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.disc-pins .disc-topic-chip { padding: 3px 10px; border-radius: 7px; }
.disc-pins-div { width: 1px; height: 16px; background: var(--d-line-2); margin: 0 3px; }
.disc-pins-label { font-size: 11px; color: var(--d-ink-3); }
.disc-source { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .55); }
.disc-read-full { margin-left: auto; font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.disc-read-full:hover { text-decoration: underline; }

/* composer */
.disc-composer { position: relative; border: 1px solid var(--d-line-2); border-radius: 14px; background: rgba(255, 255, 255, .03); padding: 14px 16px; margin-bottom: 10px; }
.disc-composer.is-reply { margin: 12px 0 6px; }
.disc-input { min-height: 48px; font-size: 14px; line-height: 1.6; color: #fff; white-space: pre-wrap; word-break: break-word; outline: none; }
.disc-input:empty:before { content: attr(data-placeholder); color: rgba(255, 255, 255, .32); }
.disc-composer.is-reply .disc-input { min-height: 34px; font-size: 13.5px; }
.disc-composer-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 11px; border-top: 1px solid var(--d-hair); }
.disc-kbd-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--d-ink-3); }
.disc-kbd { font-family: Inter, sans-serif; font-size: 10px; font-weight: 700; color: var(--d-ink-2); background: rgba(255, 255, 255, .08); border: 1px solid var(--d-line-2); border-radius: 4px; padding: 1px 6px; }
.disc-enter-hint { margin-left: auto; font-size: 11px; color: rgba(255, 255, 255, .3); }
/* white primary button — Pico resets (no blue fill / focus shadow) */
.disc-post-btn {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; width: auto;
  padding: 7px 15px; border-radius: 8px; border: none; background: #fff; color: #0f1216;
  font: 700 12.5px Inter, sans-serif; cursor: pointer; box-shadow: none;
}
.disc-post-btn:hover { background: rgba(255, 255, 255, .88); }
.disc-post-btn:focus { box-shadow: none; outline: none; }
.disc-post-btn:disabled { opacity: .5; cursor: default; }

/* slash dropdown */
.disc-slash {
  position: absolute; z-index: 50; width: 340px; max-width: 88%;
  background: #1a1f26; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5); overflow: hidden; padding-bottom: 4px;
}
.disc-slash-head { padding: 7px 12px 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--d-ink-3); }
.disc-slash-row { display: flex; align-items: center; gap: 11px; padding: 9px 12px; cursor: pointer; }
.disc-slash-row.is-active { background: rgba(255, 255, 255, .07); }
.disc-slash-av { flex: none; }
.disc-slash-main { min-width: 0; flex: 1; }
.disc-slash-label { font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disc-slash-sub { font-size: 11px; color: rgba(255, 255, 255, .45); }
.disc-slash-tag { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 5px; }
.disc-slash-empty { padding: 14px 12px; font-size: 12px; color: var(--d-ink-3); }

/* notice (guest / archived) */
.disc-notice { display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: rgba(255, 255, 255, .02); padding: 15px 18px; margin-bottom: 10px; }
.disc-notice-text { font-size: 13px; color: var(--d-ink-2); }
.disc-notice-btn { margin: 0; margin-left: auto; width: auto; padding: 7px 14px; border-radius: 8px; border: none; background: #fff; color: #0b0d10; font: 700 12.5px Inter, sans-serif; cursor: pointer; text-decoration: none; box-shadow: none; }
.disc-notice-btn:hover { background: rgba(255, 255, 255, .88); }

/* sort toggle */
.disc-sort-row { display: flex; align-items: center; gap: 10px; margin: 16px 2px 6px; }
.disc-sort-h { font-size: 13px; font-weight: 700; color: #fff; }
.disc-seg { margin-left: auto; display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.disc-seg-btn { margin: 0; width: auto; padding: 5px 13px; border-radius: 6px; border: none; cursor: pointer; font: 700 12px Inter, sans-serif; background: transparent; color: var(--d-ink-3); box-shadow: none; }
.disc-seg-btn.is-on { background: rgba(255, 255, 255, .12); color: #fff; }
.disc-seg-btn:focus { box-shadow: none; outline: none; }

/* thread */
.disc-thread { display: block; }
.disc-take { padding: 18px 0; border-top: 1px solid var(--d-hair); }
.disc-row { display: flex; gap: 11px; }
.disc-av { flex: none; }
.disc-post-main { flex: 1; min-width: 0; }
.disc-post-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.disc-author { font-size: 13px; font-weight: 700; color: #fff; }
.disc-post-time { font-size: 11.5px; color: rgba(255, 255, 255, .35); }
.disc-post-body { font-size: 13.5px; line-height: 1.6; color: rgba(255, 255, 255, .82); margin-bottom: 9px; word-break: break-word; }
.disc-post-foot { display: flex; align-items: center; gap: 10px; }
.disc-vote {
  display: inline-flex; align-items: center; gap: 6px; margin: 0; width: auto;
  padding: 4px 9px; border-radius: 7px; border: 1px solid var(--d-line-2);
  background: transparent; color: rgba(255, 255, 255, .55); font: 700 12px Inter, sans-serif;
  cursor: pointer; box-shadow: none;
}
.disc-vote:focus { box-shadow: none; outline: none; }
.disc-vote .disc-caret { font-size: 11px; }
.disc-vote.is-voted { border-color: rgba(71, 196, 125, .5); background: rgba(71, 196, 125, .12); color: var(--d-pos-soft); }
.disc-reply-btn, .disc-del-btn { margin: 0; width: auto; padding: 4px 9px; border-radius: 7px; border: none; background: transparent; color: var(--d-ink-3); font: 600 12px Inter, sans-serif; cursor: pointer; box-shadow: none; }
.disc-reply-btn:hover, .disc-del-btn:hover { color: #fff; }
.disc-del-btn:hover { color: #e76f6d; }
.disc-del-btn { margin-left: auto; }
.disc-replies { margin-top: 14px; margin-left: 15px; padding-left: 16px; border-left: 2px solid var(--d-line); display: flex; flex-direction: column; gap: 16px; }
.disc-reply { }

.disc-empty { padding: 40px 0; text-align: center; color: var(--d-ink-3); font-size: 13.5px; }

/* ---------- skeletons ---------- */
.disc-skel { display: block; background: rgba(255, 255, 255, .05); border-radius: 8px; position: relative; overflow: hidden; }
.disc-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .04), transparent); animation: discShimmer 1.3s infinite; }
@keyframes discShimmer { 100% { transform: translateX(100%); } }
.disc-skel-eyebrow { width: 120px; height: 11px; margin-bottom: 10px; }
.disc-skel-h1 { width: 300px; height: 26px; margin-bottom: 10px; }
.disc-skel-sub { width: 440px; max-width: 90%; height: 14px; margin-bottom: 26px; }
.disc-skel-lead { width: 100%; height: 300px; border-radius: 18px; margin-bottom: 16px; }
.disc-skel-card { height: 150px; border-radius: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .disc-grid { grid-template-columns: 1fr; }
  .disc-wrap { padding: 24px 18px 80px; }
  .disc-h1 { font-size: 25px; }
  .disc-lead { height: 240px; }
}
