/* Uploaded content cards and like buttons (projects, downloads, guides, home).
   Loaded before components.css. */

/* Video, embed, and uploaded image media keep the 16:10 card frame. */
.project-card__media--rich { aspect-ratio: 16 / 10; background: #0b0b0d; }
.project-card__media--rich img,
.project-card__media--rich video,
.project-card__media--rich iframe { display: block; width: 100%; height: 100%; border: 0; }
.project-card__media--rich img { object-fit: cover; }
.project-card__media--rich video { object-fit: contain; background: #000; }

.content-grid { margin-top: var(--space-md, 1rem); }
.content-card .download-card__actions { margin-top: 0.25rem; }

/* Like button: hidden until the like count loads. */
.like-slot { margin-top: 0.85rem; min-height: 0; }
.like-slot:not(.is-ready) { display: none; }
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0 0.9rem 0 0.75rem;
  border: 0.0625rem solid rgba(192, 192, 196, 0.35);
  border-radius: 999px;
  background: rgba(43, 43, 47, 0.5);
  color: #c0c0c4;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.like-btn__icon { fill: transparent; }
.like-btn__icon path { fill: transparent; }
.like-btn:hover { color: #f2f2f4; border-color: rgba(192, 192, 196, 0.6); }
.like-btn[aria-pressed="true"] {
  color: #ffd6dc;
  border-color: rgba(224, 40, 63, 0.75);
  background: rgba(139, 30, 45, 0.35);
  box-shadow: 0 0 1rem rgba(139, 30, 45, 0.45);
}
.like-btn[aria-pressed="true"] .like-btn__icon path { fill: #e0283f; stroke: #ff5468; }
.like-btn:focus-visible { outline: 0.1875rem solid #e2e2e6; outline-offset: 0.1875rem; }

/* Guides: a topic with published guides links to them. */
a.guide-card__tag--live { color: #f2f2f4; border-color: rgba(224, 40, 63, 0.6); text-decoration: none; }
a.guide-card__tag--live:hover { background: rgba(139, 30, 45, 0.35); }

@media (prefers-reduced-motion: reduce) {
  .like-btn { transition: none; }
}
