/* [entertrade_lms_progress] blocks. Self-contained, styled from the same
   --et-* palette as the Course Archive Card so they inherit the active design's
   colors/theme. The wrapper element carries the --et-* vars inline. */

.lms-progress {
  background: var(--et-bg, #fff);
  color: var(--et-text, #333);
  border: 1px solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .08);
}

/* Radius follows the selected archive-card design. */
.et-cards--squared.lms-progress { border-radius: 0; }
.et-cards--modern.lms-progress  { border-radius: .75rem; }

/* Dark theme. */
.et-cards--theme-dark.lms-progress {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 .25rem 1.25rem rgba(0, 0, 0, .35);
}

/* Shared bar tweaks (base .lms-card-dash__bar lives in styles.css). */
.lms-progress__bar { margin-top: .6rem; }

/* ── Hero (type="latest") ─────────────────────────────────────────────── */
.lms-progress-hero {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.lms-progress-hero:hover { color: inherit; }

.lms-progress-hero__media {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 8%, transparent);
}
.lms-progress-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lms-progress-hero__body {
  position: relative;
  padding: 1.1rem 4.5rem 1.25rem 1.25rem; /* right room for the play button */
}
.lms-progress-hero__eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--et-primary, #1a3a6b);
  margin-bottom: .35rem;
}
.lms-progress-hero__title {
  margin: 0 0 .3rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}
.lms-progress-hero__meta {
  font-size: .85rem;
  opacity: .7;
}
.lms-progress-hero__play {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--et-primary, #1a3a6b);
  color: #fff;
  font-size: 1rem;
  transition: transform .15s ease, background .15s ease;
}
.lms-progress-hero:hover .lms-progress-hero__play {
  transform: scale(1.06);
  background: var(--et-tertiary, #4a90d9);
}

/* Hero progress line: flush at the very bottom of the card. */
.lms-progress-hero .lms-progress__bar {
  margin: 0;
  border-radius: 0;
  height: 5px;
}

/* ── Compact tile (type="course" | "membership") ──────────────────────── */
.lms-progress-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1rem 1.15rem 1.15rem;
}
.lms-progress-tile:hover { color: inherit; }
.lms-progress-tile__eyebrow {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: .3rem;
}
.lms-progress-tile__title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
}
.lms-progress-tile__meta {
  display: block;
  font-size: .82rem;
  opacity: .7;
  margin-top: .15rem;
}
a.lms-progress-tile { transition: transform .15s ease; }
a.lms-progress-tile:hover { transform: translateY(-2px); }

/* ── Sizes ────────────────────────────────────────────────────────────── */
.lms-progress--sm .lms-progress-hero__media { aspect-ratio: 16 / 5; }
.lms-progress--sm .lms-progress-hero__title { font-size: 1.05rem; }
.lms-progress--sm .lms-progress-tile__title { font-size: .95rem; }

.lms-progress--lg .lms-progress-hero__title { font-size: 1.6rem; }
.lms-progress--lg .lms-progress-hero__media { aspect-ratio: 16 / 8; }
.lms-progress--lg .lms-progress-tile { padding: 1.35rem 1.5rem 1.5rem; }
.lms-progress--lg .lms-progress-tile__title { font-size: 1.2rem; }
