/* page hero, filter-bar, filter-btn, toggle → components.css */

/* ── Feed ─────────────────────────────────────────────── */
.feed-section {
  padding: 2rem 0 4rem;
}

.exchanges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: start;
}

/* ── Exchange card ────────────────────────────────────── */
.exchange-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Subtle top accent line */
.exchange-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.exchange-card--taken::before {
  background: linear-gradient(90deg, var(--border), transparent);
}

.exchange-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.exchange-card__badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.exchange-card__time {
  font-size: 0.78rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.exchange-card__question {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── What they offer ──────────────────────────────────── */
.exchange-card__offer {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exchange-card__offer-label {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* ── Card footer ──────────────────────────────────────── */
.exchange-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.exchange-card__poster {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.exchange-card__poster strong { color: var(--text); font-weight: 500; }

/* Status badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
}
.status-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-badge--available { color: var(--success); background: rgba(16,185,129,0.12); }
.status-badge--taken     { color: var(--gold);    background: var(--gold-dim); }
.status-badge--completed { color: var(--text-dim); background: var(--surface-2); }

/* ── Load more ────────────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 2.5rem; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 700px) {
  .exchanges-grid { grid-template-columns: 1fr; }
}

/* ── "Reading due" action badge ───────────────────────── */
.status-badge--action {
  color: var(--petal);
  background: var(--rose-dim);
  border: 1px solid rgba(240,171,252,0.28);
  animation: pulse-badge 2.5s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.65; }
}

/* ── Incomplete action strip inside card ─────────────── */
.exchange-card__action-strip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  background: rgba(124,58,237,0.10);
  border: 1px solid rgba(196,150,255,0.28);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--purple-light);
  font-weight: 500;
}

/* ── My Exchanges section label ───────────────────────── */
.section-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── See-all link ─────────────────────────────────────── */
.see-all-link {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.see-all-link:hover { color: var(--gold-light); }
