/* Vista Roadmap
   (archivo: css/pages/roadmap.css) */
/* ============================================================
   ROADMAP VIEW
   ============================================================ */
#roadmap-view {
  display: none;
  flex-direction: column;
  min-height: 60vh;
  background: #060606;
}

#roadmap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 12px;
  border-bottom: 1px solid #111;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(180deg, #0d0d0d 0%, #060606 100%);
}
#roadmap-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.45rem;
  color: var(--yellow-bright);
  text-shadow: 0 0 24px rgba(255,215,0,0.4), 2px 2px 0 rgba(0,0,0,0.8);
  letter-spacing: 3px;
  line-height: 1.1;
}
#roadmap-subtitle {
  font-family: 'Fredoka', sans-serif;
  font-size: 0.75rem;
  color: #3a3a3a;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Progress bar strip */
#roadmap-progress-bar-wrap {
  position: relative;
  width: 180px;
  height: 22px;
  background: #111;
  border: 1.5px solid #1e1e1e;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
#roadmap-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1a5c1a, #39ff14);
  border-radius: 5px;
  transition: width 1s ease;
  box-shadow: 0 0 12px rgba(57,255,20,0.35);
}
#roadmap-progress-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fredoka One', cursive;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
  pointer-events: none;
}

#roadmap-scroll-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 16px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #1e1e1e #060606;
}
#roadmap-scroll-wrap:active { cursor: grabbing; }
#roadmap-scroll-wrap::-webkit-scrollbar { height: 5px; }
#roadmap-scroll-wrap::-webkit-scrollbar-track { background: #060606; }
#roadmap-scroll-wrap::-webkit-scrollbar-thumb { background: #1e1e1e; border-radius: 3px; }
#roadmap-canvas { display: block; }

/* Entrada de la vista roadmap (cabecera y leyenda) */
#roadmap-view.rm-anim #roadmap-header { animation: rmHeadIn .48s cubic-bezier(.34,1.56,.64,1) both; }
#roadmap-view.rm-anim #roadmap-legend { animation: rmHeadIn .55s cubic-bezier(.34,1.56,.64,1) .5s both; }
#roadmap-view.rm-anim #roadmap-next-card { animation: rmPopIn .5s cubic-bezier(.34,1.56,.64,1) .35s both; }
@keyframes rmHeadIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes rmPopIn  { from { opacity: 0; transform: scale(.82); }        to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #roadmap-view.rm-anim #roadmap-header,
  #roadmap-view.rm-anim #roadmap-legend,
  #roadmap-view.rm-anim #roadmap-next-card { animation: none; }
}

#roadmap-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 20px 14px;
  border-top: 1px solid #0f0f0f;
  flex-wrap: wrap;
}
.rm-legend-item {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Fredoka', sans-serif;
  font-size: 0.73rem;
  color: #444;
}
.rm-legend-dot {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid transparent;
}
.rm-dot-main  { background: #0d2040; border-color: #2a6bcc; }
.rm-dot-extra { background: #1e0d00; border-color: #cc6600; }
.rm-dot-done  { background: #071a07; border-color: #39ff14; }
.rm-dot-next  { background: #1a1200; border-color: #FFD700; }
.rm-legend-sep { color: #1e1e1e; font-size: 1rem; }

/* RM Tooltip */
#rm-tooltip {
  position: fixed;
  z-index: 700;
  pointer-events: none;
  display: none;
  background: #0a0a0a;
  border: 1.5px solid #1e1e1e;
  border-radius: 12px;
  padding: 12px 15px;
  max-width: 230px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.03);
  font-family: 'Fredoka', sans-serif;
  animation: fadeInDetail .15s ease;
}

