/* css/recent.css — Recent additions card grid (index page) */

/* ========================================
   RECENT ADDITIONS SECTION
   ======================================== */

.recent-wrap {
  max-width: var(--maxw);
  margin: 1.5rem auto 2rem;
  padding: 0 1rem;
}

.recent-title {
  font-family: "Grandstander", system-ui;
  margin: 0 0 0.75rem;
  text-align: center;
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

/* Recent card uses card-base utility but with custom hover */
.recent-card {
  position: relative;
  overflow: hidden;
}

.recent-card:hover {
  transform: translateY(-3px);
  background-color: var(--bg-analogous);
  border-color: var(--ink);
  box-shadow: 0 14px 0 var(--ink), 0 16px 28px rgba(0, 0, 0, 0.28);
}

/* square thumb area */
.recent-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

/* video fallback square */
.recent-fallback {
  width: 100%;
  aspect-ratio: 1/1;
  display: grid;
  place-items: center;
  background: #000;
  color: var(--offwhite);
  font-weight: 800;
  font-size: 2rem;
}

/* meta rows (match your gallery vibe) */
.recent-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 0.6rem 0.75rem;
  gap: 0.5rem;
  align-items: center;
}

.recent-meta .tag {
  font-size: 0.82rem;
  background: var(--bg-analogous);
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 0.15rem 0.5rem;
}

.recent-credits {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 0.75rem 0.7rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

.recent-credits a {
  font-weight: 700;
  text-decoration: none;
}

.recent-credits .date {
  font-size: 0.85rem;
  opacity: 0.75;
  justify-self: end;
}

/* little play badge on video posters */
.play-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: var(--offwhite);
  border: 3px solid var(--ink, #1c1b22);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.5rem;
  font-weight: 800;
  box-shadow: 0 4px 0 var(--ink, #1c1b22);
}

/* Hide tags on cards when in lightbox (they appear in caption) */
.recent-meta .tag {
  display: none !important;
}
