/* ============================================
   PAAAL v2 — Journey Hub Page
   ============================================ */

/* --- Progress Stepper --- */
.journey-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 32px auto 40px;
  max-width: 600px;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.stepper-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E5E7EB;
  border: 3px solid #E5E7EB;
  transition: all 200ms ease;
  position: relative;
}

.stepper-step.completed .stepper-dot {
  background: #4F46E5;
  border-color: #4F46E5;
}

.stepper-step.completed .stepper-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
}

.stepper-step.current .stepper-dot {
  background: #fff;
  border-color: #4F46E5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
}

.stepper-label {
  font-size: 12px;
  font-weight: 500;
  color: #9CA3AF;
  white-space: nowrap;
}

.stepper-step.completed .stepper-label,
.stepper-step.current .stepper-label {
  color: #4F46E5;
  font-weight: 600;
}

.stepper-line {
  flex: 1;
  height: 3px;
  background: #E5E7EB;
  margin: 0 4px;
  margin-bottom: 24px;
  border-radius: 2px;
  transition: background 200ms ease;
}

.stepper-line.filled {
  background: #4F46E5;
}

/* --- Journey Cards --- */
.journey-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.journey-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 200ms ease, border-color 200ms ease;
}

.journey-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border-color: #C7D2FE;
}

.journey-card.highlight {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.journey-card-icon {
  width: 48px;
  height: 48px;
  background: #EEF2FF;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.journey-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.journey-card-desc {
  font-size: 14px;
  color: #6B7280;
  line-height: 1.5;
  margin: 0;
}

.journey-card-cta {
  margin-top: auto;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

.journey-card-cta.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* --- Checklist inside Setup card --- */
.journey-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #6B7280;
}

.checklist-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
}

.checklist-icon.done {
  background: #059669;
  color: #fff;
}

.checklist-icon.done::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  margin-top: -1px;
}

.checklist-icon.pending {
  background: #E5E7EB;
  border: 2px solid #D1D5DB;
}

.checklist-icon.current {
  background: #fff;
  border: 2px solid #4F46E5;
}

.checklist-item.current-step {
  color: #4F46E5;
  font-weight: 600;
}

/* --- Plan Summary inside Execute card --- */
.journey-plan-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-summary-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
}

.plan-summary-label {
  color: #9CA3AF;
  font-weight: 500;
  white-space: nowrap;
  min-width: 90px;
}

.plan-summary-value {
  color: #1F2937;
  font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .journey-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .journey-stepper {
    gap: 0;
    margin: 24px 8px 32px;
  }

  .stepper-label {
    font-size: 10px;
  }

  .stepper-dot {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .journey-card {
    padding: 20px 18px;
  }
}
