/* feed.css -- OCA Team Dashboard v2
   The Wire: vertical activity timeline.
   References tokens.css variables. No em-dashes.
*/

/* ------------------------------------------------------------------ */
/* Screen container                                                     */
/* ------------------------------------------------------------------ */

.feed-screen {
  flex: 1;
  overflow-y: auto;
  background: var(--bg);
  padding: 28px 28px 48px;
}

.feed-heading {
  font-family: 'Francois One', sans-serif;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--ink-1);
  margin: 0 0 6px;
}

.feed-subtext {
  font-family: Manrope, sans-serif;
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0 0 18px;
}

/* ------------------------------------------------------------------ */
/* Filter bar                                                           */
/* ------------------------------------------------------------------ */

.feed-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}

.feed-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-0);
  color: var(--ink-2);
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}

.feed-filter-btn:hover {
  background: var(--hover);
  color: var(--ink-1);
}

.feed-filter-btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.feed-filter-btn--persona::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--filter-dot, var(--ink-3));
  flex-shrink: 0;
}

/* ------------------------------------------------------------------ */
/* Timeline list                                                        */
/* ------------------------------------------------------------------ */

.feed-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
}

/* ------------------------------------------------------------------ */
/* Single feed item                                                     */
/* ------------------------------------------------------------------ */

.feed-item {
  display: flex;
  gap: 0;
  position: relative;
}

.feed-item__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 52px;
  flex-shrink: 0;
  padding-top: 2px;
}

.feed-item__avatar-wrap {
  z-index: 1;
  background: var(--bg);
  padding: 2px 0;
}

.feed-item__line {
  flex: 1;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  margin: 4px 0 0;
  min-height: 20px;
}

.feed-item__right {
  flex: 1;
  min-width: 0;
  padding: 0 0 28px 12px;
}

.feed-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.feed-item__name {
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-1);
}

.feed-item__ts {
  font-family: Manrope, sans-serif;
  font-size: 11px;
  color: var(--ink-3);
  margin-left: auto;
  white-space: nowrap;
}

.feed-item__desc {
  font-family: Manrope, sans-serif;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Loading + empty state                                                */
/* ------------------------------------------------------------------ */

.feed-loading {
  font-family: Manrope, sans-serif;
  font-size: 13px;
  color: var(--ink-3);
  padding: 24px 0;
}

.feed-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 64px 24px;
  text-align: center;
}

.feed-empty__icon {
  font-size: 32px;
  line-height: 1;
  opacity: .5;
}

.feed-empty__msg {
  font-family: Manrope, sans-serif;
  font-size: 14px;
  color: var(--ink-3);
  max-width: 320px;
  line-height: 1.55;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* R4: "Discuss Now" button on each Wire feed card                      */
/*     (v1->v2 regression sweep 2026-05-19)                             */
/*                                                                      */
/* v1 had this CTA on every feed card; clicking spawned a chat thread   */
/* bound to feed_card:<id> via createThreadWithContext.  The button     */
/* lives in .feed-item__actions, right-aligned under the description.   */
/* ------------------------------------------------------------------ */

.feed-item__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.feed-discuss-now-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-1);
  font-family: 'Manrope', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}

.feed-discuss-now-btn:hover {
  background: var(--hover-strong);
  border-color: var(--teal);
  color: var(--teal);
}

.feed-discuss-now-btn:active {
  transform: translateY(1px);
}
