/**
 * hospice-journey-tracker.css
 * 📋 나의 호스피스 5단계 실전 여정 트래커 & 온 가족 카톡 1장 공유 스타일시트
 */

.journey-tracker-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 0;
  border: 1.5px solid #dcfce7;
  box-shadow: 0 4px 16px rgba(45, 106, 79, 0.08);
  box-sizing: border-box;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.journey-tracker-card.outer-expanded {
  padding: 16px 16px 14px 16px;
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.12);
}

.journey-tracker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.journey-tracker-header:hover {
  opacity: 0.92;
}

.journey-header-right {
  display: flex;
  align-items: center;
  gap: 7px;
}

.journey-outer-arrow {
  font-size: 11px;
  color: #15803d;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.journey-tracker-card.outer-expanded .journey-outer-arrow {
  transform: rotate(180deg);
}

/* 외부 아코디언 바디 컨테이너 (게이지 바 + 5단계 목록 + 카톡 버튼) */
.journey-tracker-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, margin-top 0.3s ease;
}

.journey-tracker-card.outer-expanded .journey-tracker-body {
  max-height: 1400px;
  opacity: 1;
  pointer-events: auto;
  margin-top: 10px;
}

.journey-tracker-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.journey-tracker-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #1b4332;
  letter-spacing: -0.02em;
}

.journey-progress-badge {
  font-size: 11px;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 2px 7px;
  border-radius: 6px;
}

/* 프로그레스 바 */
.journey-progress-bar-bg {
  width: 100%;
  height: 7px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.journey-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #2d6a4f, #52b788);
  border-radius: 4px;
  transition: width 0.35s ease;
}

/* 5단계 체크리스트 컨테이너 */
.journey-steps-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.journey-step-item {
  display: flex;
  flex-direction: column;
  padding: 9px 11px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.journey-step-item.completed {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.journey-step-item.expanded {
  border-color: #86efac;
  box-shadow: 0 3px 10px rgba(34, 197, 94, 0.08);
}

/* 아코디언 헤더 (체크박스 + 제목 + 상태 뱃지 + 화살표) */
.journey-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.journey-step-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.journey-step-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.journey-step-checkbox:hover {
  border-color: #16a34a;
  transform: scale(1.05);
}

.journey-step-item.completed .journey-step-checkbox {
  background: #16a34a;
  border-color: #16a34a;
}

.journey-step-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.journey-step-item.completed .journey-step-name {
  color: #166534;
}

.journey-step-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.journey-step-badge {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 5px;
}

.journey-step-item.completed .journey-step-badge {
  color: #15803d;
  background: #dcfce7;
}

/* 아코디언 회전 화살표 */
.journey-accordion-arrow {
  font-size: 10px;
  color: #94a3b8;
  display: inline-block;
  transition: transform 0.25s ease;
  line-height: 1;
  padding: 2px;
}

.journey-step-item.expanded .journey-accordion-arrow {
  transform: rotate(180deg);
  color: #16a34a;
}

/* 아코디언 바디 (상세 설명 & 바로가기 액션 링크) */
.journey-step-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out, opacity 0.2s ease-out;
}

.journey-step-item.expanded .journey-step-body {
  max-height: 240px;
  opacity: 1;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.journey-guide-text {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.45;
}

.journey-tip-box {
  background: #eff6ff;
  padding: 6px 9px;
  border-radius: 6px;
  font-size: 11px;
  color: #1e40af;
  line-height: 1.4;
  margin-top: 6px;
}

.journey-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 10px;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.journey-action-btn:hover {
  background: #dcfce7;
  border-color: #4ade80;
}


/* 온 가족 카톡 1장 공유 버튼 */
.journey-share-btn {
  margin-top: 10px;
  width: 100%;
  padding: 9px 0;
  background: #fee500;
  color: #191919;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease;
}

.journey-share-btn:hover {
  background: #fdd800;
}

