/* light-theme: manual
   roadmap.html "Quest-Log" layer (assets/js/quest-log.js). */

.ql-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-width: 520px;
  margin: 1.2rem auto 1rem;
  font-size: 0.85rem;
  color: var(--nx-muted, #94a3b8);
}
.ql-progress-label { display: inline-flex; align-items: center; gap: 0.4rem; color: #f59e0b; font: 700 0.75rem "JetBrains Mono", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.ql-progress-bar { flex: 1; min-width: 160px; height: 8px; border-radius: 4px; background: rgba(148, 163, 184, 0.16); overflow: hidden; }
.ql-progress-bar i {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #34d399);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.ql-progress.is-on .ql-progress-bar i { transform: scaleX(1); }
.ql-progress-num b { color: #34d399; }

/* status badge in the card corner */
.ql-badge {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font: 700 0.66rem "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tl-item.left .ql-badge { right: auto; left: 0.9rem; }
.ql-done .ql-badge { color: #34d399; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); }
.ql-active .ql-badge { color: #fbbf24; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.4); animation: qlPulse 2s ease-in-out infinite; }
.ql-planned .ql-badge { color: #94a3b8; background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.25); }
@keyframes qlPulse { 50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12), 0 0 16px rgba(245, 158, 11, 0.3); } }

/* check mark on finished nodes */
.ql-check {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #10b981;
  color: #fff;
  font-size: 0.62rem;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25), 0 0 14px rgba(16, 185, 129, 0.6);
}

/* planned quests: drifting mist over the card, clears on hover / focus */
.ql-planned .tl-card > :not(.ql-mist):not(.ql-badge):not(.tl-card-glow):not(.tl-card-shimmer) { transition: opacity 0.5s ease; opacity: 0.55; }
.ql-mist {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(148, 163, 184, 0.16), transparent 70%),
    radial-gradient(50% 60% at 80% 70%, rgba(148, 163, 184, 0.12), transparent 70%);
  background-size: 200% 100%;
  animation: qlMist 14s ease-in-out infinite alternate;
  transition: opacity 0.5s ease;
}
@keyframes qlMist { to { background-position: 100% 0; } }
.ql-planned .tl-card:hover > :not(.ql-mist), .ql-planned .tl-card:focus-within > :not(.ql-mist) { opacity: 1; }
.ql-planned .tl-card:hover .ql-mist, .ql-planned .tl-card:focus-within .ql-mist { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .ql-active .ql-badge, .ql-mist { animation: none; }
  .ql-progress-bar i { transition: none; }
}

html[data-theme="light"] .ql-progress-bar { background: rgba(15, 23, 42, 0.08); }
html[data-theme="light"] .ql-mist { background: radial-gradient(60% 50% at 20% 30%, rgba(226, 232, 240, 0.7), transparent 70%), radial-gradient(50% 60% at 80% 70%, rgba(226, 232, 240, 0.6), transparent 70%); background-size: 200% 100%; }
html[data-theme="light"] .ql-done .ql-badge { color: #047857; }
html[data-theme="light"] .ql-active .ql-badge { color: #b45309; }
