/* ==========================================================================
   MEDIA PAGE — layout specific to this page.

   Rewritten for the simplified index redesign (header + category pills +
   one unified grid + Load more + Photo stories + quote wall). Only rules
   still actually used are kept: .section-label, .quote-wall/.quote-card*,
   and .post-grid/.post-card* (media/show.blade.php's own "Related" section
   loads this same file and still uses those two). Everything belonging to
   the removed hero/latest/type-cards/collections/rails/filter-drawer
   sections — plus a chunk of already-dead CSS from an earlier merge that
   didn't match anything actually rendered on this page even before this
   redesign (.featured-card, .video-grid, .podcast-list, .press-grid,
   .sticky-player, .post-toolbar, .post-hero-grid, .post-header/.article-*,
   .post-media-embed/.post-podcast-block/.post-gallery-*, .share-row,
   .author-card, .article-nav) — is gone, not just unreferenced.
   ========================================================================== */

.media-page-head { padding: var(--sp-10) 0 var(--sp-2); text-align: center; }
.media-page-head h1 { font-size: var(--fs-2xl); margin: 0 0 var(--sp-2); }
.media-page-head p { font-size: var(--fs-base); color: var(--muted); margin: 0 auto; max-width: 520px; }

/* ---------- Category pills ---------- */
.media-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin: var(--sp-6) 0 var(--sp-10); }
/* Kit spec: 14px vertical padding on pill buttons — scoped to this page's
   pills rather than changing the shared .chip rule (site.css) sitewide. */
.media-categories .chip { padding: 14px 20px; }

.section-label { margin-top: var(--sp-10); }
.section-label:first-of-type { margin-top: 0; }

/* ---------- Unified media grid + card ---------- */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 780px) { .media-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .media-grid { grid-template-columns: 1fr; } }

.media-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.media-card-media { position: relative; aspect-ratio: 4/3; background: var(--gradient-brand); }
.media-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-card-media-placeholder { width: 100%; height: 100%; background: var(--gradient-brand); }
.media-card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%; background: rgba(11, 27, 43, 0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 15px;
}
.media-card-body { padding: var(--sp-4) var(--sp-5); }
.media-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: var(--sp-2); }
.media-card-tag {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  padding: 3px 9px; border-radius: var(--r-full); background: rgba(4, 81, 203, 0.08); color: var(--primary);
}
.media-card-meta { font-size: var(--fs-xs); color: var(--muted); }
.media-card-title { font-size: var(--fs-md); font-weight: 800; line-height: 1.35; margin: 0 0 var(--sp-3); }
.media-card-link { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-sm); font-weight: 700; color: var(--primary); text-decoration: none; }
.media-card-link:hover { color: var(--secondary); }
.media-card-link i { font-size: 14px; }

.media-load-more { display: flex; margin: var(--sp-8) auto 0; }

/* ---------- Quote wall (flat, one brand color per card) ---------- */
.quote-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-bottom: var(--sp-10); }
@media (max-width: 700px) { .quote-wall { grid-template-columns: 1fr; } }
.quote-card { border-radius: var(--r-lg); padding: var(--sp-5); color: #fff; display: flex; flex-direction: column; justify-content: space-between; min-height: 190px; transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease); }
.quote-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quote-mark { font-size: var(--fs-h3); line-height: 1; opacity: 0.5; margin-bottom: 6px; }
.quote-text { font-size: var(--fs-sm); font-weight: 600; line-height: 1.5; margin: 0 0 var(--sp-4); }
.quote-source-row { display: flex; align-items: center; gap: 10px; }
.quote-source-name { font-size: var(--fs-xs); font-weight: 700; }
.quote-source-org { font-size: 10px; opacity: 0.85; }

/* ---------- Post grid + card (still used by media/show.blade.php's "Related" section) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
@media (max-width: 780px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: block; text-decoration: none; color: inherit; }
.post-card-media { position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); margin-bottom: var(--sp-4); box-shadow: var(--shadow-sm); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card-media-placeholder { width: 100%; height: 100%; background: var(--gradient-brand); }
.post-card-type {
  position: absolute; top: var(--sp-3); left: var(--sp-3); z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(4, 20, 40, 0.65); backdrop-filter: blur(4px); color: #fff; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 12px; border-radius: var(--r-full);
}
.post-card-type svg { width: 14px; height: 14px; }
.post-card-title { font-size: var(--fs-md); font-weight: 700; margin: 4px 0 6px; line-height: 1.4; }
.post-card-excerpt { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; margin: 0 0 var(--sp-2); }
.post-card-meta { font-size: var(--fs-xs); color: var(--muted); margin: 0; }

/* ==========================================================================
   KNOWLEDGE CARD & PODCAST CARD — kept for potential reuse elsewhere (kit
   slides 10/11); no longer referenced by this page's own grid, which now
   uses .media-card for every content type instead of switching component
   per type.
   ========================================================================== */
.knowledge-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  padding: var(--sp-5); background: #fff;
}
.knowledge-card-media { aspect-ratio: 16 / 9; border-radius: var(--r-md); display: block; margin: calc(var(--sp-5) * -1) calc(var(--sp-5) * -1) var(--sp-4); overflow: hidden; }
.knowledge-card-media img { height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); width: 100%; }
.knowledge-card:hover .knowledge-card-media img { transform: scale(1.04); }
.knowledge-card-label {
  font-size: var(--fs-xs); font-weight: 700; color: var(--navy); text-transform: uppercase;
  letter-spacing: 0.6px; margin-bottom: var(--sp-2);
}
.knowledge-card-title { font-size: var(--fs-md); font-weight: 700; line-height: 1.35; margin: 0 0 var(--sp-2); }
.knowledge-card-summary { font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; margin: 0 0 var(--sp-3); flex: 1; }
.knowledge-card-footer { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }

.podcast-card { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4); background: #fff; }
.podcast-card-art {
  position: relative; flex-shrink: 0; width: 64px; height: 64px; border-radius: var(--r-md);
  overflow: hidden; background: var(--surface); display: flex; align-items: center; justify-content: center;
}
.podcast-card-art img { width: 100%; height: 100%; object-fit: cover; }
.podcast-card-art-placeholder { width: 100%; height: 100%; background: var(--gradient-brand); }
.podcast-card-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(4, 20, 40, 0.35); color: #fff;
}
.podcast-card-body { flex: 1; min-width: 0; }
.podcast-card-title { display: block; font-size: var(--fs-sm); font-weight: 700; color: inherit; text-decoration: none; line-height: 1.4; }
.podcast-card-title:hover { color: var(--navy); }
.podcast-card-subtitle { font-size: var(--fs-xs); color: var(--muted); margin: 2px 0 0; }
.podcast-card-duration { flex-shrink: 0; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   PHOTO STORIES — CSS-column masonry of real curated photography.
   ========================================================================== */
.photo-masonry { columns: 4; column-gap: var(--sp-4); margin-bottom: var(--sp-16); }
@media (max-width: 900px) { .photo-masonry { columns: 3; } }
@media (max-width: 640px) { .photo-masonry { columns: 2; } }
.photo-masonry-item { position: relative; break-inside: avoid; margin-bottom: var(--sp-4); border-radius: var(--r-lg); overflow: hidden; }
.photo-masonry-item img { width: 100%; display: block; transition: transform var(--dur-slow) var(--ease); }
.photo-masonry-item:hover img { transform: scale(1.05); }
.photo-masonry-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 27, 43, 0.7) 0%, transparent 45%); opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.photo-masonry-item:hover::after { opacity: 1; }
.photo-masonry-label { position: absolute; bottom: var(--sp-3); left: var(--sp-3); z-index: 2; color: #fff; font-size: var(--fs-xs); font-weight: 700; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.photo-masonry-item:hover .photo-masonry-label { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .photo-masonry-item img { transition: none !important; }
  .photo-masonry-item:hover img { transform: none !important; }
}
