/* ============================================================
   feed-boosty.css — Boosty post cards and modal in /feed
   ============================================================ */

/* Card */
.boosty-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  break-inside: avoid;
  margin-bottom: var(--space-5);
}

.boosty-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Preview image */
.boosty-card__preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  background: var(--surface-2);
}

.boosty-card__preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.boosty-card:hover .boosty-card__preview-img {
  transform: scale(1.04);
}

/* Body */
.boosty-card__body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.boosty-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.boosty-card__author {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-boosty);
}

.boosty-card__date {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.boosty-card__title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text);
  line-height: var(--lh-snug);
}

.boosty-card__text {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.6;
  white-space: pre-line;
  word-wrap: break-word;
}

/* Tier badge */
.boosty-card__tier {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: rgba(241, 95, 44, 0.15);
  color: var(--c-boosty);
  margin-top: auto;
  align-self: flex-start;
}

.boosty-card__tier--free {
  background: rgba(95, 208, 138, 0.15);
  color: var(--success);
}

/* Modal extras (reuses news-modal.css base) */
.boosty-modal__header-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.boosty-modal__tier {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: rgba(241, 95, 44, 0.15);
  color: var(--c-boosty);
}

.boosty-modal__image-wrap {
  margin: var(--space-3) 0;
  border-radius: var(--r-md);
  overflow: hidden;
}

.boosty-modal__image {
  width: 100%;
  display: block;
}

.boosty-modal__title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-2);
}

.boosty-modal__locked {
  color: var(--text-muted);
  font-style: italic;
  font-size: var(--fs-sm);
}

.boosty-modal__open-btn {
  gap: var(--space-2);
}
