/* ============================================================
   fundamental.css — 라이팅 펀더멘탈
   Supplementary styles — extends bootcamp-2.css
   ============================================================ */

/* ── Hero Stats Strip ── */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 64px;
}

.hero-stat {
  padding: 28px 0;
}

.hero-stat + .hero-stat {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.stat-value {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-value sup {
  font-size: 0.5em;
  color: var(--accent);
  margin-left: 4px;
  vertical-align: super;
  font-weight: 700;
}

.stat-key {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Week Jump Links ── */
.week-jump {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.week-jump a {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.week-jump a:hover {
  color: var(--text);
  border-color: rgba(255, 179, 71, 0.4);
  background: rgba(255, 179, 71, 0.06);
}

/* ── Phase title — 크게 + 또렷한 흰색 (기본 bootcamp-2.css 의 13px/뮤트 회색을 덮어씀) ── */
.phase-title {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  word-break: keep-all;
}

/* ── 주차 카드 아코디언 (details/summary) ── */
.curriculum-phase > .phase-header {
  cursor: pointer;
  list-style: none;          /* 기본 디스클로저 삼각형 제거 */
  user-select: none;
}
.curriculum-phase > .phase-header::-webkit-details-marker { display: none; }
.curriculum-phase > .phase-header::marker { content: ""; }

/* 닫혀 있을 때는 헤더 하단선 제거 (카드 테두리와 겹치지 않게) */
.curriculum-phase:not([open]) > .phase-header { border-bottom: none; }

/* 토글 화살표 (CSS 만으로 그린 ∨ → 열리면 ∧ 로 회전) */
.phase-toggle {
  margin-left: auto;
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transform-origin: 60% 60%;
  transition: transform 0.25s ease, border-color 0.2s ease;
}
.curriculum-phase[open] > .phase-header .phase-toggle {
  transform: rotate(-135deg);
}
.curriculum-phase > .phase-header:hover .phase-toggle {
  border-color: var(--accent);
}

/* ── Phase blurb — description row inside phase card ── */
.phase-blurb {
  padding: 12px 24px 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

/* ── Lesson list inside phase: flatten nested border ── */
.curriculum-phase .curriculum-list {
  border: none;
  border-radius: 0;
  margin-top: 0;
  overflow: visible;
}

/* ── Lesson English subtitle ── */
.lesson-title-en {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Badge variants ── */
.curriculum-tag--live {
  background: rgba(255, 179, 71, 0.12);
  border-color: rgba(255, 179, 71, 0.35);
  color: var(--accent);
}

.curriculum-tag--bonus {
  background: rgba(122, 166, 214, 0.10);
  border-color: rgba(122, 166, 214, 0.30);
  color: #7aa6d6;
}

.curriculum-tag--file {
  background: var(--bg-elevated);
  border-color: var(--line);
  color: var(--text-muted);
}

/* ── Outcomes 2×2 grid ── */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.outcomes-grid .outcome-label {
  display: block;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
}

.outcomes-grid .outcome-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.outcomes-grid .outcome-card p {
  font-size: var(--text-md);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Instructor works gallery (강사 참여작 3장, 교체 가능) ── */
.instructor-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.instructor-work {
  margin: 0;
}

.instructor-work img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.2s ease;
}

.instructor-work img:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 71, 0.4);
}

.instructor-work figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-stat:nth-child(3) {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero-stat:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .hero-stat + .hero-stat {
    padding-left: 0;
  }

  .hero-stat:nth-child(2),
  .hero-stat:nth-child(4) {
    padding-left: 28px;
    border-left: 1px solid var(--line);
  }

  .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .instructor-works {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
