/* ══════════════════════════════════════════════════════════════
   JOURNEY VIEW - Coachplan & Unified Timeline
   ══════════════════════════════════════════════════════════════ */

.journey-view {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.coach-plan-overview {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.milestone-cards {
  display: grid;
  gap: 16px;
}

.milestone-card {
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s;
}

.milestone-card:hover {
  border-color: #8b7fc7;
  box-shadow: 0 4px 12px rgba(139, 127, 199, 0.1);
}

.milestone-card.milestone-achieved {
  background: #f0fdf4;
  border-color: #86efac;
}

.milestone-card.milestone-overdue {
  background: #fef2f2;
  border-color: #fca5a5;
}

.milestone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.milestone-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
}

.milestone-card-description {
  color: #6b7280;
  margin-bottom: 12px;
  line-height: 1.5;
}

.milestone-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #6b7280;
}

.milestone-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.milestone-progress .progress-bar {
  flex: 1;
}

.milestone-progress .progress-text {
  font-weight: 600;
  color: #8b7fc7;
  min-width: 45px;
  text-align: right;
}

.milestone-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.journey-timeline {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e5e7eb;
}

.timeline-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 14px;
  border: 1px solid #e5e7eb;
  background: white;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #f3f4f6;
}

.filter-btn.active {
  background: #8b7fc7;
  color: white;
  border-color: #8b7fc7;
}

.timeline-events {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.timeline-event {
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 32px;
  bottom: -20px;
  width: 2px;
  background: #e5e7eb;
}

.timeline-event:last-child::before {
  display: none;
}

.timeline-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.timeline-marker-activity {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.timeline-marker-irl {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.timeline-marker-milestone {
  background: linear-gradient(135deg, #10b981, #059669);
}

.irl-summary-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.irl-avg {
  font-size: 1.1rem;
  color: #1f2937;
}

.irl-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #6b7280;
}

.irl-scores span {
  padding: 4px 10px;
  background: white;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

.structured-data {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.data-section {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.6;
}

.data-section strong {
  color: #1f2937;
  margin-right: 6px;
}

.badge-traction { background: #dbeafe; color: #1e40af; }
.badge-product { background: #e0e7ff; color: #4338ca; }
.badge-team { background: #fce7f3; color: #be185d; }
.badge-funding { background: #fef3c7; color: #b45309; }
.badge-partnership { background: #d1fae5; color: #065f46; }
