/* engineering-roadmap-inline.css — animated dynamic timeline page */

:root {
  --rm-bg:        var(--bg-deep, #04060a);
  --rm-bg-2:      var(--bg-surface, #0a0e16);
  --rm-text:      var(--text, #d8e4f5);
  --rm-dim:       var(--muted, #5b6c89);
  --rm-border:    var(--border, rgba(95, 200, 255, 0.18));
  --rm-accent:    var(--info, #5fc8ff);
  --rm-purple:    var(--purple, #a78bfa);
  --rm-gold:      var(--warning, #fbbf24);
  --rm-green:     var(--accent, #34d399);
  --rm-blue:      var(--info, #60a5fa);
  --rm-pink:      #f472b6;
  --rm-glow:      0 0 24px rgba(95, 200, 255, 0.45);
}

html, body { background: var(--rm-bg); color: var(--rm-text); margin: 0; padding: 0; min-height: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

.rm-app {
  max-width: 1380px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  display: flex; flex-direction: column; gap: 18px;
}

/* Header */
.rm-header {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(95, 200, 255, 0.08), rgba(167, 139, 250, 0.06));
  border: 1px solid var(--rm-border);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.rm-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.12), transparent 55%);
  pointer-events: none;
  animation: rm-shimmer 6s ease-in-out infinite;
}
@keyframes rm-shimmer {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.rm-back {
  display: inline-block; padding: 5px 12px;
  border-radius: 10px;
  background: rgba(95, 200, 255, 0.1);
  border: 1px solid rgba(95, 200, 255, 0.25);
  color: var(--rm-accent);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}
.rm-back:hover { background: rgba(95, 200, 255, 0.2); }
.rm-title {
  font-family: 'Orbitron', monospace;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin: 4px 0 8px 0;
  background: linear-gradient(90deg, var(--rm-accent), var(--rm-gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.18));
}
.rm-headline {
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.rm-ring {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--rm-gold) 0deg, var(--rm-accent) 270deg, transparent 270deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.3);
  animation: rm-ring-rotate 18s linear infinite;
}
.rm-ring::before {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 50%;
  background: var(--rm-bg-2);
}
.rm-ring-num {
  position: relative; z-index: 1;
  font-family: 'Orbitron', monospace;
  font-size: 30px;
  font-weight: 900;
  color: var(--rm-gold);
}
.rm-ring-lbl {
  position: relative; z-index: 1;
  font-size: 10px;
  color: var(--rm-dim);
  letter-spacing: 0.1em;
  margin-top: -2px;
}
@keyframes rm-ring-rotate {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}
.rm-headline-text { flex: 1; min-width: 220px; }
.rm-verdict {
  font-size: 18px;
  font-weight: 800;
  color: var(--rm-text);
  margin-bottom: 4px;
}
.rm-verdict.platinum {
  background: linear-gradient(90deg, var(--rm-gold), var(--rm-pink), var(--rm-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rm-platinum-glow 3s ease-in-out infinite;
}
@keyframes rm-platinum-glow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 8px rgba(251, 191, 36, 0.4)); }
  50%      { filter: brightness(1.3) drop-shadow(0 0 20px rgba(251, 191, 36, 0.7)); }
}
.rm-counts { font-size: 11.5px; color: var(--rm-dim); }
.rm-countdown {
  text-align: center;
  padding: 10px 18px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 12px;
}
.rm-countdown-num {
  font-family: 'Orbitron', monospace;
  font-size: 28px;
  font-weight: 900;
  color: var(--rm-purple);
  line-height: 1;
}
.rm-countdown-lbl { font-size: 9.5px; color: var(--rm-dim); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* Cards */
.rm-card {
  background: linear-gradient(180deg, rgba(20, 28, 45, 0.55), rgba(20, 28, 45, 0.25));
  border: 1px solid var(--rm-border);
  border-radius: 16px;
  padding: 18px 22px;
}
.rm-card-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--rm-text);
  letter-spacing: 0.02em;
}

/* Sparkline */
.rm-sparkline-card { padding: 14px 18px 8px; }
.rm-sparkline { width: 100%; height: 80px; display: block; }
.rm-sparkline-line {
  fill: none;
  stroke: url(#rm-spark-grad);
  stroke-width: 2.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}
.rm-sparkline-area { fill: url(#rm-spark-area); }
.rm-sparkline-dot { fill: var(--rm-gold); filter: drop-shadow(0 0 6px var(--rm-gold)); }

/* Filters */
.rm-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.rm-chip {
  padding: 6px 12px;
  background: rgba(95, 200, 255, 0.06);
  border: 1px solid rgba(95, 200, 255, 0.25);
  color: var(--rm-text);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.rm-chip:hover { background: rgba(95, 200, 255, 0.16); }
.rm-chip.active {
  background: linear-gradient(135deg, var(--rm-accent), var(--rm-gold));
  color: var(--rm-bg);
  border-color: var(--rm-gold);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.35);
}

/* Timeline */
.rm-timeline-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(95, 200, 255, 0.04), transparent 70%);
}
.rm-timeline { width: 100%; height: 100%; display: block; }
.rm-now-cursor {
  position: absolute;
  top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--rm-gold), transparent);
  pointer-events: none;
  transition: left 1.5s linear;
}
.rm-now-pulse {
  position: absolute;
  top: 50%; left: -6px;
  width: 14px; height: 14px;
  background: var(--rm-gold);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 18px var(--rm-gold), 0 0 32px rgba(251, 191, 36, 0.5);
  animation: rm-now-pulse 1.4s ease-in-out infinite;
}
@keyframes rm-now-pulse {
  0%, 100% { transform: translateY(-50%) scale(1); opacity: 1; }
  50%      { transform: translateY(-50%) scale(1.45); opacity: 0.7; }
}
.rm-now-label {
  position: absolute;
  top: -18px; left: -18px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--rm-gold);
}

/* Waypoints (SVG circles) */
.rm-waypoint {
  cursor: pointer;
  transition: transform 0.2s;
}
.rm-waypoint:hover { transform: scale(1.18); }
.rm-waypoint-circle-milestone { fill: var(--rm-green); }
.rm-waypoint-circle-score     { fill: var(--rm-gold); }
.rm-waypoint-circle-waypoint  { fill: var(--rm-purple); }
.rm-waypoint-circle-upcoming  { fill: var(--rm-blue); opacity: 0.6; stroke-dasharray: 2 2; }
.rm-waypoint-glow { filter: blur(4px); opacity: 0.7; }
.rm-waypoint-label {
  font-size: 9px;
  fill: var(--rm-dim);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-anchor: middle;
}
.rm-line-base {
  stroke: rgba(95, 200, 255, 0.18);
  stroke-width: 2;
  stroke-linecap: round;
}
.rm-line-progress {
  stroke: url(#rm-line-grad);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

/* Detail / events */
.rm-detail {
  padding: 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--rm-border);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--rm-text);
  margin-bottom: 14px;
  min-height: 60px;
}
.rm-events { display: flex; flex-direction: column; gap: 8px; }
.rm-event {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 14px;
  border-left: 3px solid var(--rm-accent);
  background: rgba(95, 200, 255, 0.04);
  border-radius: 0 10px 10px 0;
  transition: all 0.18s;
  cursor: pointer;
}
.rm-event:hover { background: rgba(95, 200, 255, 0.1); transform: translateX(3px); }
.rm-event-icon { font-size: 18px; line-height: 1.3; }
.rm-event-meta { flex: 1; }
.rm-event-title { font-weight: 700; font-size: 12.5px; }
.rm-event-date  { font-size: 10.5px; color: var(--rm-dim); margin-top: 2px; }
.rm-event[data-kind="milestone"] { border-left-color: var(--rm-green); }
.rm-event[data-kind="score"]     { border-left-color: var(--rm-gold); }
.rm-event[data-kind="waypoint"]  { border-left-color: var(--rm-purple); }
.rm-event[data-kind="upcoming"]  { border-left-color: var(--rm-blue); border-left-style: dashed; }

@media (max-width: 720px) {
  .rm-headline { gap: 14px; }
  .rm-ring { width: 88px; height: 88px; }
  .rm-ring-num { font-size: 22px; }
  .rm-title { font-size: 20px; }
  .rm-timeline-wrap { height: 220px; }
}
