/* ============================================================
   roadmap.css — Roadmap page styles
   Ported and extended from data_analyst_roadmap.html
   ============================================================ */

/* Color variables per phase */
:root {
  --c-blue:   #4a9eff;
  --c-green:  #3ddc84;
  --c-orange: #FF8C1E;
  --c-purple: #a78bfa;
  --c-gold:   #fbbf24;
}

/* Background grid overlay */
.roadmap-page { position: relative; }
.roadmap-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(129,140,248,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129,140,248,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}
.roadmap-page > * { position: relative; z-index: 1; }

/* --- Timeline bar --- */
.timeline-bar {
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid var(--border);
}
.tl-item {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  cursor: default;
  transition: background 0.2s;
}
.tl-item:not(:last-child) { border-right: 1px solid var(--border); }
.tl-item:hover { background: rgba(255,255,255,0.02); }
.tl-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.tl-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.tl-weeks { font-size: 10px; color: var(--text-muted); }

/* --- Phases container --- */
.phases { display: flex; flex-direction: column; gap: 16px; }

/* --- Single phase card --- */
.phase {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.phase:hover { border-color: rgba(255,255,255,0.1); }

.phase-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}
.phase-header:hover { background: rgba(255,255,255,0.02); }

.phase-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.phase-info { flex: 1; min-width: 0; }
.phase-title { font-size: 17px; font-weight: 700; margin-bottom: 3px; }
.phase-sub { font-size: 12px; color: var(--text-muted); }
.phase-deadline {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  flex-shrink: 0;
  white-space: nowrap;
}
.phase-arrow {
  color: var(--text-muted);
  font-size: 11px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.phase-arrow.open { transform: rotate(90deg); }

/* Phase body (collapsible) */
.phase-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border);
}
.phase-body.open { display: block; }

/* Section labels inside phase */
.sec-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 20px 0 10px;
}

/* --- Skills --- */
.skills-wrap { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 4px; }
.skill {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}
.skill:hover { border-color: rgba(255,255,255,0.2); color: var(--text-primary); }
.skill.core {
  border-color: rgba(255,140,30,0.35);
  color: var(--accent);
  background: rgba(255,140,30,0.07);
}

/* --- Weekly task list --- */
.task-list { display: flex; flex-direction: column; gap: 1px; }
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.task-row:last-child { border-bottom: none; }
.task-week {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  min-width: 64px;
  padding-top: 2px;
  flex-shrink: 0;
}
.task-content { flex: 1; min-width: 0; }
.task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.task-detail { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.task-dl {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(220,38,38,0.12);
  color: #f87171;
  border: 1px solid rgba(220,38,38,0.2);
  flex-shrink: 0;
  white-space: nowrap;
  margin-top: 1px;
}

/* --- Project box --- */
.project-box {
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.project-box::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 3px;
  height: 100%;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.project-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.project-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* --- Outcomes --- */
.outcome-list { display: flex; flex-direction: column; gap: 7px; }
.outcome-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.outcome-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

/* --- Rules box --- */
.rules-box {
  background: var(--bg-secondary);
  border: 1px solid rgba(255,140,30,0.2);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 32px;
}
.rules-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.rule-item:last-child { border-bottom: none; }
.rule-dot { color: var(--accent); font-size: 16px; line-height: 1.3; flex-shrink: 0; }

/* ============================================================
   Phase color themes
   ============================================================ */

/* Phase 1: Blue — Excel */
.c-blue .phase-icon { background: rgba(74,158,255,0.12); color: var(--c-blue); }
.c-blue .phase-title { color: var(--c-blue); }
.c-blue .phase-deadline { background: rgba(74,158,255,0.1); color: var(--c-blue); border: 1px solid rgba(74,158,255,0.2); }
.c-blue .project-box::before { background: var(--c-blue); }
.c-blue .project-tag { color: var(--c-blue); }
.c-blue .outcome-dot { background: var(--c-blue); }

/* Phase 2: Green — SQL */
.c-green .phase-icon { background: rgba(61,220,132,0.12); color: var(--c-green); }
.c-green .phase-title { color: var(--c-green); }
.c-green .phase-deadline { background: rgba(61,220,132,0.1); color: var(--c-green); border: 1px solid rgba(61,220,132,0.2); }
.c-green .project-box::before { background: var(--c-green); }
.c-green .project-tag { color: var(--c-green); }
.c-green .outcome-dot { background: var(--c-green); }

/* Phase 3: Orange — Power BI */
.c-orange .phase-icon { background: rgba(255,140,30,0.12); color: var(--c-orange); }
.c-orange .phase-title { color: var(--c-orange); }
.c-orange .phase-deadline { background: rgba(255,140,30,0.1); color: var(--c-orange); border: 1px solid rgba(255,140,30,0.2); }
.c-orange .project-box::before { background: var(--c-orange); }
.c-orange .project-tag { color: var(--c-orange); }
.c-orange .outcome-dot { background: var(--c-orange); }

/* Phase 4: Purple — Python */
.c-purple .phase-icon { background: rgba(167,139,250,0.12); color: var(--c-purple); }
.c-purple .phase-title { color: var(--c-purple); }
.c-purple .phase-deadline { background: rgba(167,139,250,0.1); color: var(--c-purple); border: 1px solid rgba(167,139,250,0.2); }
.c-purple .project-box::before { background: var(--c-purple); }
.c-purple .project-tag { color: var(--c-purple); }
.c-purple .outcome-dot { background: var(--c-purple); }

/* Phase 5: Gold — Job Ready */
.c-gold .phase-icon { background: rgba(251,191,36,0.12); color: var(--c-gold); }
.c-gold .phase-title { color: var(--c-gold); }
.c-gold .phase-deadline { background: rgba(251,191,36,0.1); color: var(--c-gold); border: 1px solid rgba(251,191,36,0.2); }
.c-gold .project-box::before { background: var(--c-gold); }
.c-gold .project-tag { color: var(--c-gold); }
.c-gold .outcome-dot { background: var(--c-gold); }

/* --- Resources: Videos --- */
.res-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 4px;
}
.res-video-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.res-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.res-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.res-video-title {
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
}
.res-video-title a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.res-video-title a:hover { color: var(--accent); }

/* --- Resources: Articles & Links --- */
.res-links { display: flex; flex-direction: column; gap: 1px; margin-bottom: 4px; }
.res-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.2s;
}
.res-link-row:last-child { border-bottom: none; }
.res-link-row:hover { opacity: 0.8; }
.res-link-type {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  flex-shrink: 0;
}
.res-link-type.article { background: rgba(74,158,255,0.12); color: var(--c-blue); border: 1px solid rgba(74,158,255,0.2); }
.res-link-type.link    { background: rgba(255,255,255,0.06); color: var(--text-muted); border: 1px solid var(--border); }
.res-link-title { flex: 1; font-size: 13px; color: var(--text-secondary); min-width: 0; }
.res-link-arrow { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }

/* --- Mobile --- */
@media (max-width: 600px) {
  .timeline-bar { flex-direction: column; }
  .tl-item:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }
  .task-row { flex-wrap: wrap; }
  .task-dl { margin-top: 6px; }
  .phase-header { padding: 16px; gap: 12px; }
  .phase-body { padding: 0 16px 20px; }
}
