/* ══════════════════════════════════════════════════════════════════════════
   Poker Super League — Media / blog archive page.

   Reuses the shared nav, video modal (`.modal-*`), CTA and footer from
   `styles.css`. Adds the hero article, the card grid, and the type/date meta.
   ══════════════════════════════════════════════════════════════════════════ */

.md-header { padding: clamp(40px, 7vw, 72px) 0 clamp(24px, 4vw, 36px); }
.md-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  color: var(--psl-blue); text-decoration: none;
}
.md-back:hover { color: #5cc0ef; }
.md-h1 { font-size: clamp(30px, 6vw, 46px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 6px; color: #fff; }
.md-sub { font-size: 16px; margin: 0; }

/* Shared meta row: type label + date */
.md-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.md-type { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--psl-blue); }
.md-date { font-size: 12px; color: color-mix(in srgb, var(--color-text) 50%, transparent); }
.md-dot { width: 3px; height: 3px; border-radius: 50%; background: color-mix(in srgb, var(--color-text) 35%, transparent); }

/* Play badge (videos) */
.md-play {
  border-radius: 50%; background: color-mix(in srgb, var(--psl-red) 90%, transparent);
  display: grid; place-items: center; pointer-events: none;
  transition: transform .18s, background .18s;
}

/* ── Hero article ── */
.md-hero {
  position: relative; display: block; width: 100%; text-align: left;
  border: 0; padding: 0; margin-bottom: clamp(28px, 5vw, 44px);
  border-radius: 18px; overflow: hidden; cursor: pointer;
  min-height: clamp(320px, 46vw, 460px);
  background: linear-gradient(135deg, #23293a, #12151d); color: var(--color-text); font: inherit;
}
.md-hero-img { position: absolute; inset: 0; }
.md-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.md-hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,9,14,.92), rgba(8,9,14,.2) 55%, rgba(8,9,14,.35)); pointer-events: none; }
.md-hero .md-play { position: absolute; top: 24px; left: 24px; width: 60px; height: 60px; }
.md-hero:hover .md-play { transform: scale(1.08); background: var(--psl-red); }
.md-hero-body { position: absolute; left: clamp(20px, 4vw, 34px); right: clamp(20px, 4vw, 34px); bottom: clamp(20px, 4vw, 30px); pointer-events: none; }
.md-hero-headline { font-size: clamp(24px, 4vw, 38px); font-weight: 800; letter-spacing: -.015em; margin: 12px 0 8px; max-width: 24ch; color: #fff; }
.md-hero-excerpt { font-size: clamp(15px, 2vw, 17px); margin: 0; max-width: 60ch; color: color-mix(in srgb, var(--color-text) 78%, transparent); }

/* ── Card grid ── */
.md-grid-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 60%, transparent); margin: 0 0 18px; }
.md-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px;
  padding-bottom: clamp(40px, 8vw, 72px);
}
.md-card {
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  border: 0; padding: 0; overflow: hidden; border-radius: 16px;
  background: var(--color-surface); box-shadow: var(--shadow-sm);
  color: var(--color-text); font: inherit;
  transition: box-shadow .18s, transform .18s;
}
.md-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.md-card:hover .md-play { transform: scale(1.08); background: var(--psl-red); }

.md-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #2a2f3f, #14171f); }
.md-thumb img { width: 100%; height: 100%; object-fit: cover; }
.md-thumb .md-play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; }
.md-thumb .md-length {
  position: absolute; right: 8px; bottom: 8px; font-family: ui-monospace, Menlo, monospace;
  font-size: 11px; font-weight: 600; color: #fff; background: rgba(8,9,14,.72);
  padding: 2px 6px; border-radius: 5px;
}
/* Article cards use a quieter format glyph instead of a play badge. */
.md-thumb .md-doc {
  position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; background: color-mix(in srgb, var(--psl-blue) 24%, transparent);
  pointer-events: none;
}
.md-thumb .md-doc svg { color: #bfe4f6; }

.md-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }
.md-card-headline { font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; }
.md-card-excerpt { font-size: 13px; line-height: 1.5; margin: 0; color: color-mix(in srgb, var(--color-text) 60%, transparent); }

/* Modal additions (date row + article variant) */
.modal-media .md-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; }
.modal-date { font-size: 12px; color: color-mix(in srgb, var(--color-text) 55%, transparent); margin-left: 10px; }
.modal-body + .modal-body { margin-top: 12px; }
