/* ============================================================
   EduMatch — Roadmap CSS
   Styled in accordance with assistant.html design system
   ============================================================ */

.roadmap-tabs-container {
  display: flex;
  gap: 10px;
  margin-bottom: 36px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.roadmap-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: var(--sh-sm);
}

.roadmap-tab-btn:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.roadmap-tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.roadmap-tab-btn .tab-num {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--text-2);
}

.roadmap-tab-btn.active .tab-num {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Track Overview Card */
.track-overview {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  margin-bottom: 40px;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}

.track-overview::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.track-overview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.track-overview-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 8px;
}

.track-overview-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 720px;
}

.track-progress-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-top: 24px;
}

.track-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
}

.track-progress-bar {
  height: 8px;
  background: var(--line-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.track-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff7a45);
  border-radius: var(--r-pill);
  transition: width 0.4s ease;
}

/* Timeline Stages */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 64px;
  position: relative;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 36px;
  bottom: 36px;
  width: 2px;
  background: var(--line-2);
  z-index: 1;
}

.stage-card {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 30px 28px 76px;
  position: relative;
  box-shadow: var(--sh-sm);
  transition: var(--transition);
  z-index: 2;
}

.stage-card:hover {
  border-color: rgba(252, 63, 29, 0.35);
  transform: translateX(4px);
  box-shadow: var(--sh-md);
}

.stage-icon-badge {
  position: absolute;
  left: 14px;
  top: 26px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--panel-bg);
  border: 2.5px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 0 0 4px var(--bg);
}

.stage-card.completed .stage-icon-badge {
  background: var(--good);
  border-color: var(--good);
  color: #ffffff;
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stage-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stage-date-pill {
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}

.stage-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 20px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  background: var(--bg-soft);
  padding: 16px 20px;
  border-radius: var(--r-md);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 13.5px;
  color: var(--text);
}

.check-item input {
  margin-top: 3px;
  cursor: pointer;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.check-item input:checked + span {
  text-decoration: line-through;
  color: var(--muted);
}

.protip-box {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.protip-box strong {
  color: var(--accent);
}

/* Calendar Timeline */
.calendar-section {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  margin-bottom: 64px;
  box-shadow: var(--sh-md);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.calendar-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.calendar-card:hover {
  background: var(--panel-bg);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}

.calendar-date {
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.calendar-event {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.calendar-desc {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .stage-card {
    padding: 22px 20px 22px 58px;
  }
  .stage-icon-badge {
    left: 10px;
    top: 20px;
  }
  .timeline-list::before {
    left: 24px;
  }
  .track-overview {
    padding: 24px 20px;
  }
}
