/* =============================================================================
   Fictioneer Child Theme V5.6 — play-card slots (echoro.net cross-promotion)

   Two slots share this file (dependency: fcv3-home.css, which carries the fcv3
   tokens for both colour modes):

     .fcv5-play-card    Chapter-end card: one <a> inside an <aside>, rendered
                        after the prev/next navigation (never inside the text).
                        Two variants: ._ongoing / ._ending.
     .fcv5-play-button  Story page actions row: a parent .button with a short
                        label, slotted behind the V5.3 PDF button.

   Every colour goes through an fcv3 token with a dark-scope fallback, so the
   card stays readable even if a slot ever renders outside body.fcv3-dark.
   ========================================================================== */

/* == CHAPTER-END CARD ===================================================== */

.fcv5-play-card {
  position: relative;
  z-index: 1; /* above the parent's absolutely-positioned .main__background plate */
  margin: 2rem auto 0;
  max-width: 100%;
}

.fcv5-play-card__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--fcv3-border, rgba(51, 65, 85, 0.4));
  border-radius: var(--fcv3-radius-card, 16px);
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(168, 85, 247, 0.1)),
    var(--fcv3-card, #0f172a);
  color: var(--fcv3-fg, #f1f5f9);
  text-decoration: none;
  box-shadow: var(--fcv3-shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fcv5-play-card__link:hover,
.fcv5-play-card__link:focus-visible {
  border-color: var(--fcv3-border-hover, rgba(6, 182, 212, 0.4));
  box-shadow: var(--fcv3-shadow-hover);
  color: var(--fcv3-fg, #f1f5f9);
  text-decoration: none;
  transform: translateY(-1px);
}

.fcv5-play-card__art {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: var(--fcv3-radius-lg, 10px);
  object-fit: cover;
  background: var(--fcv3-muted, #1e293b);
}

.fcv5-play-card__art._placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--fcv3-primary, #06b6d4);
}

.fcv5-play-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fcv5-play-card__eyebrow {
  font-family: var(--fcv3-font, system-ui);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fcv3-primary, #06b6d4);
}

.fcv5-play-card__name {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fcv3-fg-muted, #94a3b8);
}

.fcv5-play-card__title {
  font-family: var(--fcv3-font, system-ui);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.25;
}

.fcv5-play-card__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--fcv3-fg-muted, #94a3b8);
}

.fcv5-play-card__cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--fcv3-radius-pill, 9999px);
  background: var(--fcv3-primary, #06b6d4);
  color: var(--fcv3-primary-contrast, #052027);
  font-family: var(--fcv3-font, system-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

/* "Rewrite the ending" variant: violet accent instead of cyan */
.fcv5-play-card._ending .fcv5-play-card__link {
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(6, 182, 212, 0.1)),
    var(--fcv3-card, #0f172a);
}

.fcv5-play-card._ending .fcv5-play-card__eyebrow {
  color: #a855f7;
}

.fcv5-play-card._ending .fcv5-play-card__cta {
  background: #a855f7;
  color: #ffffff;
}

/* Site tag + plays sit under the card, right-aligned — same "echoro.net" chip
   language as the front-page rail. */
.fcv5-play-card__meta {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--fcv3-font, system-ui);
  font-size: 0.6875rem;
  color: var(--fcv3-fg-muted, #94a3b8);
}

.fcv5-play-card__stat i {
  margin-right: 2px;
}

/* Phones: art shrinks, blurb goes (the pitch line stays), CTA drops to its
   own full-width row so nothing overflows at 320px. */
@media (max-width: 639px) {
  .fcv5-play-card {
    margin-top: 1.5rem;
  }

  .fcv5-play-card__link {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }

  .fcv5-play-card__art {
    flex-basis: 56px;
    width: 56px;
    height: 56px;
  }

  .fcv5-play-card__desc {
    display: none;
  }

  .fcv5-play-card__cta {
    flex: 1 0 100%;
    justify-content: center;
  }
}

/* == STORY PAGE BUTTON ==================================================== */

/* Parent .button does the heavy lifting; only the shape and the icon gap. */
.button.fcv5-play-button {
  border-radius: var(--fcv3-radius-pill, 9999px);
}

.button.fcv5-play-button .fa-gamepad {
  margin-right: 6px;
}

/* Phones (same rule the PDF button applies to its siblings): the visible
   label is the whole point, so it never hides — see edd.php / fcv3-story.css. */
@media (max-width: 639px) {
  .button.fcv5-play-button .fcv5-play-button__label {
    font-size: 0.8125rem;
  }
}
