/*
 * play-styles.css
 * Shared styles for play, pilot, and short-pieces pages.
 * Used alongside portfolio-styles.css (which provides :root vars, nav, footer).
 *
 * Page types covered:
 *   Type 1: Produced Play (dodi, american-fast, a-distinct-society)
 *   Type 2: Workshop Play (the-triumphant, the-in-between)
 *   Type 3: Unproduced Play (riparian-states, fountains-of-youth, pareidolia, the-yacoubian-building)
 *   Type 4: TV Pilot (crocodiles, all-our-pretty-songs)
 *   Type 5: Short Pieces (short-pieces)
 *
 * Updated: April 11, 2026
 * Reconciled with Dodi gold standard. Legacy classes removed (award-label,
 * scroll-card--quote/--photo, quote-highlights, scroll-arrows, quote-source,
 * scrollStrip keyframes). All pages now use award-pill, scroll-card--landscape/
 * --portrait, quote-source-inline, scroll-nav, and requestAnimationFrame.
 */

/* ============================================
   PLAY HERO (Types 1–3)
   ============================================ */
.play-hero {
  position: relative;
  width: 100%;
  height: clamp(350px, 48vh, 500px);
  overflow: hidden;
  background: #1a1a1a;
}
.play-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  animation: heroZoom 4s ease-out forwards;
  transform-origin: center center;
}
.play-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d4a3e 0%, #1a2e26 100%);
}
.play-hero-placeholder span {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.play-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2rem, 5vw, 4rem);
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 30%, transparent 55%);
}
.play-hero-overlay h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 500;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7), 0 2px 16px rgba(0,0,0,0.5), 0 4px 40px rgba(0,0,0,0.3);
  opacity: 0;
  animation: heroTextIn 1s ease-out 0.3s forwards;
}
.hero-tagline {
  opacity: 0;
  animation: heroTextIn 1s ease-out 0.6s forwards;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-top: 0.4rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 2px 16px rgba(0,0,0,0.4);
}
.dev-badge,
.workshop-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-top: 0.8rem;
  backdrop-filter: blur(4px);
}
@keyframes heroTextIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CONTENT SECTION (Types 1–3)
   ============================================ */
.content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem);
}
.content-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.content-top.no-poster {
  display: block;
}
.synopsis-text p {
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 1rem;
  max-width: 780px;
}
.synopsis-meta {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}
.synopsis-meta a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-light);
  transition: opacity 0.2s;
}
.synopsis-meta a:hover {
  opacity: 0.7;
}

/* Commissioned credit — accent color (confirmed March 29, 2026) */
.commissioned {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-accent);
  margin-top: 0.3rem;
}

/* ============================================
   PLAY INFO BOX (Type 1)
   White card with accent gradient top bar,
   specs, publisher, purchase buttons.
   ============================================ */
.play-info-box {
  background: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  min-width: 240px;
}
.play-info-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-accent), var(--color-accent-light));
}
.play-info-specs {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 0.8rem;
  letter-spacing: 0.02em;
}
.play-info-specs .dot {
  color: var(--color-accent-light);
  margin: 0 0.3rem;
}
.play-info-publisher {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  text-align: center;
  padding-bottom: 0.8rem;
  margin-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-divider);
}
.play-info-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.play-btn {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--color-accent);
  border-radius: 4px;
  color: var(--color-accent);
  transition: background 0.2s, color 0.2s;
}
.play-btn:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================
   POSTER CAROUSEL (in info-row, Type 1)
   ============================================ */
.poster-carousel {
  width: 100px;
  flex-shrink: 0;
  cursor: pointer;
  align-self: start;
}
.poster-carousel-inner {
  position: relative;
  width: 100px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  border: 1px solid var(--color-divider);
}
.poster-carousel-inner img {
  width: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.poster-carousel-inner img:first-child {
  position: relative;
}
.poster-carousel-inner img.active {
  opacity: 1;
  z-index: 1;
}
.poster-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}
.poster-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-divider);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
  padding: 0;
}
.poster-dot.active {
  background: var(--color-accent);
}

/* Poster placeholder (used on pages awaiting real posters) */
.poster-carousel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.poster-placeholder {
  width: 140px;
  height: 210px;
  margin: 0 auto 0.6rem;
  border-radius: 4px;
  background: #e0dbd4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   POSTER LIGHTBOX (Type 1)
   Dark blurred overlay for enlarged posters.
   ============================================ */
.poster-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.88);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.poster-lightbox.open {
  display: flex;
}
.poster-lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 6px;
  box-shadow: 0 12px 60px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 510;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 510;
}
.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}
.lightbox-nav--prev {
  left: 1.5rem;
}
.lightbox-nav--next {
  right: 1.5rem;
}

/* ============================================
   INFO ROW (Types 1–3)
   ============================================ */
.info-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: 1.2rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-divider);
}
.info-row.no-poster {
  grid-template-columns: 1fr 1fr 1fr;
}
.info-col-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.info-col ul {
  list-style: none;
}
.info-col li {
  font-size: 1.02rem;
  line-height: 1.6;
  padding: 0.25rem 0;
}
.info-col li a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-light);
}
.info-col .year {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-left: 0.4rem;
}


/* Award pill — badge style (Type 1, confirmed March 29) */
.award-pill {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  background: rgba(139,58,47,0.08);
  border: 1px solid rgba(139,58,47,0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  margin-right: 0.4rem;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ============================================
   SCROLL STRIP (Types 1–2)
   Uses requestAnimationFrame loop (confirmed).
   CSS @keyframes kept as fallback for pages
   not yet migrated to RAF.
   ============================================ */
.scroll-strip-section {
  background: var(--color-dark);
  padding: clamp(2rem, 3.5vw, 2.8rem) 0;
  overflow: hidden;
  position: relative;
}

/* Scroll arrows — centered below strip in .scroll-nav */
.scroll-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
}
.scroll-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.25s;
}
.scroll-arrow:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}


.scroll-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
  align-items: center;
}

.scroll-card {
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.scroll-card:hover {
  transform: scale(1.03);
  border-color: var(--color-accent-light);
  z-index: 5;
}

/* Landscape cards — wide */
.scroll-card--landscape {
  width: 580px;
}
.scroll-card--landscape img {
  width: 100%;
  height: auto;
  display: block;
}

/* Portrait cards — natural width at fixed height */
.scroll-card--portrait {
  width: auto;
}
.scroll-card--portrait img {
  width: auto;
  height: 500px;
  display: block;
}

/* Placeholder cards (pages awaiting real photos) */
.scroll-card-placeholder {
  width: 520px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Quote overlay — positioned per card via inline styles (Type 1)
   Bespoke positioning confirmed March 29: each composition is
   tailored to the photo using absolute positioning. */
.scroll-card .quote-overlay {
  position: absolute;
  pointer-events: none;
}

/* Quote text — font-style: normal (confirmed March 29, not italic) */
.quote-text {
  font-family: var(--font-display);
  font-style: normal;
  color: #fff;
  line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8), 0 2px 20px rgba(0,0,0,0.6);
}

/* Quote source inline — on same line or below quote */
.quote-source-inline {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-top: 0.3rem;
}


/* ============================================
   VIDEOS (Types 1–2)
   ============================================ */
.videos-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem) clamp(1.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}
.section-heading {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.video-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-bottom: 2px solid var(--color-accent-light);
  border-radius: 8px;
  overflow: hidden;
}
.video-card iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}
.video-card-info {
  padding: 0.8rem 1.2rem;
}
.video-card-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================
   PILOT HERO (Type 4)
   ============================================ */
.pilot-hero {
  position: relative;
  height: clamp(300px, 50vh, 500px);
  overflow: hidden;
}
.pilot-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.pilot-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42,39,37,0.85) 0%, rgba(42,39,37,0.3) 50%, rgba(42,39,37,0.15) 100%);
}
.pilot-hero-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}
.pilot-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.pilot-format {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-top: 0.5rem;
}

/* ============================================
   PILOT CONTENT (Type 4)
   ============================================ */
.pilot-content {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4rem);
}
.pilot-logline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
  font-style: normal;
  color: var(--color-text);
}
.pilot-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.genre-tag {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--color-divider);
  border-radius: 20px;
  color: var(--color-text-secondary);
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.8rem;
}
.divider {
  height: 1px;
  background: var(--color-divider);
  margin: 0 0 1.5rem;
}
.awards-list {
  list-style: none;
}
.awards-list li {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  padding: 0.3rem 0;
}
.awards-list li strong {
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.awards-list .year {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  opacity: 0.6;
  margin-left: 0.3rem;
}

/* ============================================
   SHORT PIECES (Type 5)
   ============================================ */
.page-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.page-subtitle {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-bottom: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.6;
}
.piece-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-divider);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 1.6rem 2rem;
  margin-bottom: 1.2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.piece-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.piece-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.piece-meta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.piece-desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.piece-video {
  margin-top: 1rem;
  aspect-ratio: 16/9;
  border-radius: 6px;
  overflow: hidden;
}
.piece-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.piece-credit {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ============================================
   FADE-UP ANIMATIONS (all page types)
   IntersectionObserver adds .visible class
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  /* Play pages */
  .content-top { grid-template-columns: 1fr; }
  .play-info-box { min-width: unset; max-width: 360px; margin: 0 auto; }
  .poster-carousel { margin-left: auto; margin-right: auto; }
  .info-row { grid-template-columns: 1fr; gap: 1.2rem; }
  .info-row.no-poster { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .scroll-card--landscape { width: 360px; }
  .scroll-card--portrait img { height: 360px; }

  /* Hide quote overlays on mobile */
  .scroll-card .quote-overlay { display: none; }
  .quote-source-inline { font-size: 0.5rem; }

  /* Pilot pages */
  .pilot-hero { height: 260px; }

  /* Short pieces */
  .piece-card { padding: 1.2rem 1.4rem; }
}
