/* LFCBD — feed page (briefings grid) */

/* ---- Feed controls ---- */
.feed-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feed-search {
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: var(--font-ui);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feed-search::placeholder {
  color: var(--ink-muted);
}

.feed-search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.feed-status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-filter {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: var(--font-ui);
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-badge);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.status-filter:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.status-filter.active {
  color: var(--accent);
  background: #EEF2FF;
  border-color: var(--accent);
}

/* ---- Cards grid ---- */
.feed-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.feed-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.feed-card:hover {
  transform: translateY(-2px);
  border-color: #D6D3D1;
  box-shadow: 0 8px 24px rgba(24, 24, 27, 0.08);
}

.feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.feed-card-header-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feed-card-opportunity {
  font-size: var(--font-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.feed-card-status {
  font-size: var(--font-xs);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-badge);
}

.status-in-review {
  background: #EEF2FF;
  color: var(--accent);
}

.status-pursuing {
  background: #FEF3C7;
  color: var(--amber);
}

.status-passing {
  background: #F0FDF4;
  color: var(--green);
}

.status-unknown {
  background: var(--bg);
  color: var(--ink-muted);
}

.feed-card-title {
  font-size: var(--font-card-title);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.feed-card:hover .feed-card-title {
  color: var(--accent);
}

.feed-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-badge);
}

.feed-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 2px;
}

.feed-card-date {
  font-size: var(--font-xs);
  color: var(--ink-muted);
}

.comment-count-badge {
  font-size: var(--font-xs);
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 1px 8px;
  border-radius: var(--radius-badge);
}

.vote-tally {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.vote-go {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--green);
}

.vote-no-go {
  font-size: var(--font-xs);
  font-weight: 600;
  color: var(--red);
}

.unread-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

/* ---- Empty state ---- */
.feed-cards .feed-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  background: var(--surface);
}

.feed-empty-hint {
  margin-top: 6px;
  font-size: var(--font-ui);
  color: var(--ink-muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .feed-controls {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .feed-cards {
    grid-template-columns: 1fr;
  }

  .vote-tally {
    margin-left: 0;
  }
}
