/* ============================================
   연수 자료실 — 공용 디자인 시스템
   (연수 PPT 디자인 계열: 다크 + 그라디언트)
   ============================================ */

:root {
  /* color — PPT와 동일 팔레트 */
  --bg: #0B0B11;
  --bg-2: #101019;
  --surface: #17171F;
  --surface-2: #1E1E29;
  --line: #2A2A36;
  --ink: #FFFFFF;
  --muted: #9C9CB0;
  --soft: #D7D7E2;
  --cyan: #2EE6E6;
  --pink: #FF3D71;
  --grad: linear-gradient(120deg, #2EE6E6 0%, #6E8BFF 48%, #FF3D71 100%);

  /* 연수별 테마색 — 새 연수 추가 시 하나씩 사용 */
  --s1: #34DD8A; --s2: #19CFCB; --s3: #36B6FF;
  --s4: #5B72FF; --s5: #A861FF; --s6: #FF5A5E;
  --g1: linear-gradient(120deg, #34DD8A, #19C9C0);
  --g2: linear-gradient(120deg, #19CFCB, #36B6FF);
  --g3: linear-gradient(120deg, #36B6FF, #5B7CFF);
  --g4: linear-gradient(120deg, #5B72FF, #8A6BFF);
  --g5: linear-gradient(120deg, #A861FF, #E069FF);
  --g6: linear-gradient(120deg, #FF5A5E, #FF9159);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  position: relative;
}

/* ---- glow 장식 ---- */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .35;
  pointer-events: none;
  z-index: -1;
}
.glow.cyan { background: var(--cyan); }
.glow.pink { background: var(--pink); }

/* ---- 타이포 ---- */
.eyebrow {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--theme, var(--grad));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.h-title {
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 14px 0 10px;
}

.grad-text {
  background: var(--theme, var(--grad));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { font-size: 17px; font-weight: 500; color: var(--soft); }
.desc { font-size: 15px; color: var(--muted); }

/* ---- chip ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--soft);
}
.chip .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--theme, var(--grad));
  flex: none;
}

/* ---- play 모티프 ---- */
.play {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--theme, var(--grad));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.play::after {
  content: '';
  width: 0; height: 0;
  margin-left: 5px;
  border-left: 17px solid #0B0B11;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

/* ---- card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
a.card:hover {
  transform: translateY(-2px);
  border-color: var(--theme-solid, #444);
  background: var(--surface-2);
}

.badge {
  width: 48px; height: 48px;
  border-radius: 14px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 800;
  background: var(--theme, var(--grad));
  color: #0B0B11;
}

.card-body { flex: 1; min-width: 0; }
.card-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.card-sub { font-size: 14px; color: var(--muted); margin-top: 3px; }
.card-arrow { color: var(--muted); font-size: 20px; flex: none; }

.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }

/* ---- 다운로드 버튼 카드 ---- */
.dl-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  flex: none;
}
.card.pending { opacity: .55; pointer-events: none; }
.card.pending .dl-meta { color: var(--pink); border-color: rgba(255,61,113,.4); }

/* ---- 섹션 ---- */
.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 44px 0 0;
}

/* ---- 경고 박스 ---- */
.notice {
  margin-top: 28px;
  background: rgba(255, 61, 113, .08);
  border: 1px solid rgba(255, 61, 113, .35);
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--soft);
}
.notice b { color: #FF6B92; }

/* ---- 뒤로가기 ---- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 28px;
}
.back:hover { color: var(--ink); }

/* ---- QR 버튼 / 오버레이 ---- */
.qr-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: #0B0B11;
  background: var(--theme, var(--grad));
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .5);
}

.qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  cursor: pointer;
  text-align: center;
  padding: 24px;
}
.qr-overlay.open { display: flex; }
.qr-overlay .qr-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.qr-overlay .qr-box {
  background: #fff;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 24px;
}
.qr-overlay .qr-box canvas { display: block; width: min(56vh, 70vw) !important; height: auto !important; }
.qr-overlay .qr-url { font-size: clamp(15px, 2.5vw, 24px); font-weight: 600; color: var(--soft); word-break: break-all; }
.qr-overlay .qr-hint { font-size: 14px; color: var(--muted); }

/* ---- footer ---- */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
