/* ================================================
   멘토링 업무 가이드 — style.css
   색상 변경: :root 안의 변수만 수정하면 됩니다.
   폰트 변경: body의 font-family와 <head> 링크를 함께 수정하세요.
================================================ */

/* ─── 색상/폰트 변수 ─────────────────────────── */
:root {
  --bg: #ffffff;
  --surface: #f7f7f7;
  --surface2: #ffffff;
  --border: #c9c9c9;
  --accent: #4f8ef7;
  --accent2: #7c3aed;
  --accent3: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --text: #000000;
  --text2: #000000;
  --text3: #555d75;
  --mono: 'Space Mono', monospace;
  --sans: 'Noto Sans KR', sans-serif;
  --sidebar-w: 220px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ─── HEADER ─────────────────────────────── */
header {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}



header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(79,142,247,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 50%, rgba(124,58,237,.12) 0%, transparent 60%);
  pointer-events: none;
}

.badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79,142,247,.12);
  border: 1px solid rgba(79,142,247,.3);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

header h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

header h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

header p {
  color: var(--text2);
  font-size: 16px;
  max-width: 520px;
  margin: 36px auto 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--accent); color: #fff; margin-top: 24px;}
.btn-primary:hover { background: #3b7af0; transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ─── TOP NAV ─────────────────────────────── 
nav.topnav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  overflow-x: auto;
}

nav.topnav ul {
  display: flex;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  white-space: nowrap;
}

nav.topnav a {
  display: block;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}

nav.topnav a:hover { color: var(--text); border-color: var(--accent); } */

/* ─── PAGE BODY LAYOUT ──────────────────── */
.page-body {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 0;
}

/* ─── LEFT SIDEBAR ──────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: sticky;
  top: 53px;
  height: calc(100vh - 53px);
  overflow-y: auto;
  padding: 36px 0;
  border-right: 1px solid var(--border);
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.sidebar-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 0 20px;
  margin-bottom: 12px;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all .18s;
  line-height: 1.4;
}

.sidebar-nav a:hover { color: var(--text2); background: rgba(255, 255, 255, 0.03); }

.sidebar-nav a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(79,142,247,.06);
  font-weight: 500;
}

.sidebar-nav .nav-step {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text3);
  flex-shrink: 0;
  width: 16px;
  text-align: right;
  transition: color .18s;
}

.sidebar-nav a.active .nav-step { color: var(--accent); }

/* ─── MAIN CONTENT ──────────────────────── */
.main-content {
  flex: 1;
  min-width: 0;
  padding-left: 48px;
}

.container { max-width: 780px; }

section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

/* ─── QUALITY GRID ───────────────────────── */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.quality-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}

.quality-card:hover { border-color: var(--accent); }

.quality-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.quality-card .label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--text3);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quality-card .value {
  font-size: 20px;
  font-weight: 900;
  font-family: var(--mono);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.quality-card .sub { font-size: 13px; color: var(--text3); }

.quality-card .sub ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}

.quality-card .sub ul li {
  display: flex;
  gap: 7px;
  font-size: 13px;
  color: var(--text3);
  line-height: 1.5;
}

.quality-card .sub ul li::before {
  content: '·';
  color: var(--accent);
  font-weight: 900;
  flex-shrink: 0;
}

.quality-card .tag {
  display: inline-block;
  font-size: 10px;
  font-family: var(--mono);
  background: rgba(79,142,247,.15);
  color: var(--accent);
  border: 1px solid rgba(79,142,247,.3);
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 8px;
}

.quality-card .alert { font-size: 12px; }

/* ─── CHECKLIST ──────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: 12px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}

.check-item:hover { border-color: var(--accent3); }
.check-item.done { opacity: .55; }

.check-box {
  width: 22px; height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  margin-top: 1px;
}

.check-item.done .check-box { background: var(--accent3); border-color: var(--accent3); }
.check-box svg { display: none; }
.check-item.done .check-box svg { display: block; }

.check-text strong { display: block; font-size: 14px; font-weight: 700; }
.check-text span { font-size: 13px; color: var(--text2); }

.progress-bar-wrap {
  margin-top: 20px;
  background: var(--surface);
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent3), #34d399);
  border-radius: 100px;
  width: 0%;
  transition: width .4s ease;
}

.progress-label {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text3);
  font-family: var(--mono);
}

/* ─── STEP CARD ──────────────────────────── */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.step-card:hover { border-color: var(--accent); }

.step-body { padding: 24px; }

.video-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #000;
  cursor: pointer;
  display: block;
}

.video-thumb img { width: 100%; display: block; opacity: .85; transition: opacity .2s; }
.video-thumb:hover img { opacity: 1; }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 56px; height: 56px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.3);
  transition: all .2s;
}

.video-thumb:hover .play-btn {
  background: var(--accent);
  border-color: var(--accent);
  transform: translate(-50%,-50%) scale(1.08);
}

.bullet-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.bullet-list li { display: flex; gap: 10px; font-size: 14px; color: var(--text2); }

.alert .bullet-list li { color: inherit; }

.bullet-list li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--mono);
  flex-shrink: 0;
}

.bullet-list li strong { color: var(--text); }

/* ─── ALERTS ─────────────────────────────── */
.alert {
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  margin-top: 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alert-warn   { background: rgba(245,158,11,.08); border: 1px solid rgba(245,158,11,.25); color: #cc9302; }
.alert-danger { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.25);  color: #f87171; }
.alert-info   { background: rgba(79,142,247,.08); border: 1px solid rgba(79,142,247,.25); color: #6791d4; }
.alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ─── DOWNLOAD ───────────────────────────── */
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(79,142,247,.1);
  border: 1px solid rgba(79,142,247,.3);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  margin-top: 16px;
}

.download-link:hover { background: rgba(79,142,247,.2); transform: translateY(-1px); }

/* ─── FLOW ───────────────────────────────── */
.flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.flow-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  text-align: center;
  width: 230px;
  transition: border-color .2s;
}

.flow-step:hover { border-color: var(--accent); }
.flow-step .fs-icon { font-size: 22px; margin-bottom: 6px; }
.flow-step .fs-label { font-size: 13px; font-weight: 700; }
.flow-step .fs-sub { font-size: 11px; color: var(--text3); margin-top: 2px; }
.flow-arrow { color: var(--text3); font-size: 18px; align-self: center;}

/* ─── FAQ ────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  padding: 18px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color .2s;
}

.faq-q:hover { color: var(--accent); }

.faq-icon {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .3s, background .2s;
  font-size: 14px;
  color: var(--text3);
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 400px; }

.faq-a-inner {
  padding: 16px 20px 18px;
  font-size: 14px;
  color: var(--text2);
  border-top: 1px solid var(--border);
}

.faq-a-inner ul {
  margin-top: 10px;
  margin-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ─── FOOTER ─────────────────────────────── */
footer {
  padding: 48px 24px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

footer strong { color: var(--text2); }

/* ─── MOBILE ─────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .page-body { padding: 0 16px; }
  .main-content { padding-left: 0; }
}

@media (max-width: 600px) {
  .quality-grid { grid-template-columns: 1fr 1fr; }
  nav.topnav a { padding: 12px 10px; font-size: 12px; }
}

/* ─── ANIMATION ──────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

header > * { animation: fadeUp .5s ease both; }
header .badge     { animation-delay: 0s; }
header h1         { animation-delay: .08s; }
header p          { animation-delay: .16s; }
header .hero-btns { animation-delay: .24s; }
