/**
 * FeatureNews.VIP — card components.
 * Entertainer, flyer, episode, and article card styles.
 */

/* Shared grids */
.fnv-grid {
  display: grid;
  gap: var(--fnv-sp-3);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) { .fnv-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 560px) { .fnv-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .fnv-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 560px) { .fnv-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .fnv-grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Base media card */
.fnv-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--fnv-r-sm);
  background: var(--fnv-card);
  transition: border-color var(--fnv-dur) var(--fnv-ease), box-shadow var(--fnv-dur) var(--fnv-ease), transform var(--fnv-dur) var(--fnv-ease);
}

.fnv-card:hover {
  border-color: oklch(0.74 0.13 85 / 0.6);
  box-shadow: var(--fnv-shadow-neon);
}

/* Hidden cards (archive filters + "view more" collapse). Higher specificity than
   the .fnv-card display rule, so no !important needed. */
.fnv-card[hidden] { display: none; }

.fnv-card__media {
  position: relative;
  overflow: hidden;
}

.fnv-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--fnv-ease);
}

.fnv-card:hover .fnv-card__media img { transform: scale(1.05); }

/* Aspect ratios per card type */
.fnv-card--portrait .fnv-card__media { aspect-ratio: 4 / 5; }
.fnv-card--flyer .fnv-card__media { aspect-ratio: 3 / 4; }
.fnv-card--square .fnv-card__media { aspect-ratio: 1 / 1; }
.fnv-card--wide .fnv-card__media { aspect-ratio: 16 / 9; }

/* Gradient scrim for overlay-text cards */
.fnv-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--fnv-bg) 0%, oklch(0.08 0 0 / 0.4) 45%, transparent 100%);
}

.fnv-card__overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: var(--fnv-sp-3);
}

.fnv-card__title {
  margin: 0;
  font-family: var(--fnv-font-display);
  font-weight: 600;
  line-height: 1.15;
  font-size: var(--fnv-text-lg);
  color: var(--fnv-fg);
}

.fnv-card__title--xl { font-size: var(--fnv-text-xl); }

/* Overlay titles (entertainer / flyer) are uppercase + tracked, like the Lovable cards. */
.fnv-card--portrait .fnv-card__title { text-transform: uppercase; letter-spacing: 0.08em; }
.fnv-card--flyer .fnv-card__title { text-transform: uppercase; letter-spacing: 0.05em; }

/* Eyebrow + "View ›" link inside the overlay. */
.fnv-card__overlay .fnv-card__eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 0.6875rem; /* 11px minimum — was 10px */
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fnv-primary);
}
.fnv-card__view {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fnv-primary);
}

/* Flyer date badge: gold + sharp (overrides the shared dark pill). */
.fnv-card--flyer .fnv-card__pill {
  background: var(--fnv-primary);
  color: #0A0A0A;
  border-radius: var(--fnv-r-sm);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.fnv-card--flyer .fnv-card__pill .fnv-icon { color: #0A0A0A; }

.fnv-card__row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  color: var(--fnv-muted-fg);
  font-size: 0.75rem;
}

.fnv-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* Date pill (flyer / episode badge top-left) */
.fnv-card__pill {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--fnv-r-pill);
  background: oklch(0.08 0 0 / 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.6875rem; /* 11px minimum — was 10px */
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fnv-fg);
}

.fnv-card__pill .fnv-icon { color: var(--fnv-primary); width: 13px; height: 13px; }

/* Play/mic overlay for episodes */
.fnv-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.08 0 0 / 0.4);
  opacity: 0;
  transition: opacity var(--fnv-dur) var(--fnv-ease);
}

.fnv-card:hover .fnv-card__play { opacity: 1; }

.fnv-card__play span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--fnv-r-pill);
  background: var(--fnv-grad-neon);
  color: var(--fnv-primary-fg);
  box-shadow: var(--fnv-shadow-glow);
}

.fnv-card__play .fnv-icon { width: 24px; height: 24px; }

/* Card body (non-overlay) */
.fnv-card__body { padding: var(--fnv-sp-3); }

.fnv-card__excerpt {
  margin: 8px 0 0;
  color: var(--fnv-muted-fg);
  font-size: var(--fnv-text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Whole-card link */
.fnv-card__link { color: inherit; display: block; }
.fnv-card__link:hover { color: inherit; }

/* Instagram strip tiles */
.fnv-ig-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 560px) { .fnv-ig-strip { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .fnv-ig-strip { grid-template-columns: repeat(6, 1fr); } }

.fnv-ig-tile {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--fnv-border);
  border-radius: var(--fnv-r-md);
}

.fnv-ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--fnv-ease); }
.fnv-ig-tile:hover img { transform: scale(1.1); }

.fnv-ig-tile__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.08 0 0 / 0.5);
  color: var(--fnv-primary);
  opacity: 0;
  transition: opacity var(--fnv-dur) var(--fnv-ease);
}

.fnv-ig-tile:hover .fnv-ig-tile__overlay { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .fnv-card,
  .fnv-card__media img,
  .fnv-card__play,
  .fnv-ig-tile img,
  .fnv-ig-tile__overlay { transition: none; }
}
