/* ==========================================================================
   Bootcamps on the events page. Uses the site tokens from style.css
   (--saffron, --navy, Inter) and adds only what this band needs.
   ========================================================================== */

/* ── The bootcamp that is open now ──────────────────────────────────────── */
.bootcamp-live { box-shadow: 0 24px 60px -40px rgba(3, 13, 26, .45); }
.bootcamp-live__media { position: relative; min-height: 260px; background: #f1f5f9; }
.bootcamp-live__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bootcamp-live__placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 1.5rem; text-align: center;
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 12px, #f1f5f9 12px, #f1f5f9 24px);
  color: #94a3b8; font-size: .8rem; font-weight: 600;
}

/* ── Status badges ──────────────────────────────────────────────────────── */
.bootcamp-badge {
  position: absolute; top: 1rem; left: 1rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  font-size: .68rem; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.bootcamp-badge--open { background: rgba(19, 136, 8, .92); color: #fff; }
.bootcamp-badge--warn { background: rgba(180, 83, 9, .92); color: #fff; }
.bootcamp-badge--done { background: rgba(15, 23, 42, .78); color: #fff; }

/* ── Key facts under the title ──────────────────────────────────────────── */
.bootcamp-meta { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bootcamp-meta dt {
  font-size: .66rem; font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; color: #94a3b8;
}
.bootcamp-meta dd { margin: .2rem 0 0; font-weight: 700; color: #030d1a; font-size: .95rem; line-height: 1.35; }

/* A closed bootcamp shows the reason where the button was, never a dead button. */
.bootcamp-closed-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 1rem 2rem; border-radius: 1rem;
  background: #f1f5f9; color: #64748b;
  font-weight: 700; font-size: 1rem;
  border: 1px dashed #cbd5e1; cursor: not-allowed;
}

/* ── Archive cards ──────────────────────────────────────────────────────── */
.bootcamp-past {
  display: flex; flex-direction: column;
  border: 1px solid #e2e8f0; border-radius: 18px;
  background: #fff; overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.bootcamp-past:hover { border-color: #cbd5e1; transform: translateY(-2px); }
.bootcamp-past__media { position: relative; aspect-ratio: 16 / 10; background: #e2e8f0; }
.bootcamp-past__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* Finished editions read as archive, not as something you can still join. */
  filter: grayscale(100%); opacity: .72; transition: filter .3s, opacity .3s;
}
.bootcamp-past:hover .bootcamp-past__media img { filter: grayscale(55%); opacity: .88; }

@media (max-width: 767px) {
  .bootcamp-live__media { min-height: 200px; aspect-ratio: 16 / 10; }
  .bootcamp-meta { grid-template-columns: 1fr; gap: .75rem; }
  .bootcamp-closed-btn, .bootcamp-live .btn-saffron { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .bootcamp-past, .bootcamp-past__media img { transition: none; }
  .bootcamp-past:hover { transform: none; }
}
