/* ============================================================
   RelicScape — Dev Progress Tracker styles
   Builds on styles.css tokens (loaded first).
   ============================================================ */

:root {
  --st-done:   #4ade80;
  --st-wip:    #facc15;
  --st-todo:   #f87171;
  --st-echo:   #c084fc;
}

.prog-hero {
  padding: clamp(120px, 16vw, 170px) 0 clamp(30px, 5vw, 50px);
  text-align: center;
  position: relative;
}

.prog-updated {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 16px;
  background: var(--panel);
}

/* ---------- Summary meter ---------- */
.prog-summary { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }

.prog-meter {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(248, 113, 113, 0.18);
  border: 1px solid var(--line-2);
}

.prog-meter-fill { height: 100%; transition: width 0.6s var(--ease); }
.prog-meter-fill--done { background: linear-gradient(90deg, #22c55e, var(--st-done)); }
.prog-meter-fill--wip  { background: linear-gradient(90deg, #eab308, var(--st-wip)); }

.prog-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.prog-legend strong { color: var(--ink); }

.prog-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 1px;
}
.prog-dot--done { background: var(--st-done); box-shadow: 0 0 8px rgba(74, 222, 128, 0.6); }
.prog-dot--wip  { background: var(--st-wip);  box-shadow: 0 0 8px rgba(250, 204, 21, 0.6); }
.prog-dot--todo { background: var(--st-todo); box-shadow: 0 0 8px rgba(248, 113, 113, 0.6); }

/* ---------- Sections ---------- */
.prog-section { margin-bottom: clamp(48px, 7vw, 80px); }

.prog-section-head { margin-bottom: 24px; }

.prog-section-head h3 {
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.prog-section-count {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 1px;
}

.prog-section-blurb { color: var(--muted); margin: 8px 0 0; max-width: 640px; }

/* ---------- Card grid ---------- */
.prog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}

.prog-card {
  --st: var(--st-todo);
  --st-soft: rgba(248, 113, 113, 0.12);
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--st);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.prog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.prog-card--done { --st: var(--st-done); --st-soft: rgba(74, 222, 128, 0.12); }
.prog-card--wip  { --st: var(--st-wip);  --st-soft: rgba(250, 204, 21, 0.12); }
.prog-card--todo { --st: var(--st-todo); --st-soft: rgba(248, 113, 113, 0.12); }

.prog-card-media {
  position: relative;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background:
    radial-gradient(ellipse at 50% 100%, var(--st-soft), transparent 70%),
    var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.prog-card-media img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5));
}

.prog-card--todo .prog-card-media img { filter: grayscale(0.55) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); opacity: 0.8; }

.prog-card-media--fallback::after {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--st);
  opacity: 0.75;
}

.prog-echo {
  position: absolute;
  top: 10px;
  left: -30px;
  transform: rotate(-35deg);
  width: 110px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 3px;
  padding: 4px 0;
  color: #14061f;
  background: linear-gradient(90deg, #a855f7, var(--st-echo));
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.45);
  z-index: 1;
}

.prog-card-body { padding: 14px 16px 16px; }

.prog-card-body h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.3;
}

.prog-card-note {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.prog-pill {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--st);
  background: var(--st-soft);
  border: 1px solid var(--st);
}

@media (max-width: 480px) {
  .prog-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .prog-card-media { height: 118px; }
}
