/* ==========================================================================
   과학영재교육 연구실 — 전남대학교 물리교육과
   상징색(네이비) 기반 학술 스타일
   ========================================================================== */

:root {
  --navy-900: #04294c;
  --navy-700: #063a6b;
  --navy-500: #1a5591;
  --navy-100: #e8eef5;
  --gold: #b8892f;
  --gold-soft: #f6efe1;

  --text: #1b2530;
  --text-muted: #5b6b7b;
  --text-faint: #8494a3;
  --bg: #ffffff;
  --surface: #f6f8fa;
  --line: #e3e9ef;

  --maxw: 1080px;
  --radius: 6px;
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy-500); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 700; letter-spacing: -0.02em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand { display: flex; flex-direction: column; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand strong {
  font-size: 1.06rem;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}
.brand span {
  font-size: 0.76rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 13px;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav a:hover { background: var(--navy-100); color: var(--navy-700); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy-700); font-weight: 700; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 11px;
  font-size: 0.9rem;
  color: var(--navy-700);
  cursor: pointer;
}

/* ---------- 히어로 ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-500) 100%);
  color: #fff;
  padding: 88px 0 76px;
}
.hero .eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 14px;
}
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 18px; }
.hero p {
  max-width: 44em;
  margin: 0;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.86);
}
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: #fff; color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-soft); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- 페이지 헤더(하위 페이지) ---------- */
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 54px 0 46px;
}
.page-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--navy-900); }
.page-head p { margin: 12px 0 0; color: var(--text-muted); max-width: 46em; }
.breadcrumb { font-size: 0.82rem; color: var(--text-faint); margin: 0 0 12px; }
.breadcrumb a { color: var(--text-faint); }

/* ---------- 섹션 ---------- */
section { padding: 66px 0; }
section + section { border-top: 1px solid var(--line); }
section.tight { padding: 46px 0; }

.section-title {
  font-size: 1.35rem;
  color: var(--navy-900);
  margin-bottom: 8px;
  padding-left: 13px;
  border-left: 4px solid var(--gold);
}
.section-lead { color: var(--text-muted); margin: 0 0 30px; max-width: 46em; }

/* ---------- 카드 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(255px, 100%), 1fr));
  gap: 20px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.card:hover { border-color: var(--navy-500); transform: translateY(-2px); }
.card h3 { font-size: 1.05rem; color: var(--navy-700); margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- 프로필 ---------- */
.profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}
.profile-photo {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-name { font-size: 1.6rem; color: var(--navy-900); }
.profile-name small {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.01em;
  margin-top: 4px;
}
.profile-role { color: var(--gold); font-weight: 600; margin: 10px 0 22px; }

/* ---------- 정의 목록(표 형태) ---------- */
.dl { margin: 0; }
.dl > div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.dl > div:last-child { border-bottom: 1px solid var(--line); }
.dl dt { color: var(--text-faint); font-size: 0.88rem; font-weight: 600; }
.dl dd { margin: 0; }

/* ---------- 타임라인 ---------- */
.timeline { list-style: none; margin: 0; padding: 0 0 0 20px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px #fff;
}
.timeline .yr { font-size: 0.84rem; color: var(--text-faint); font-weight: 600; }
.timeline .what { display: block; }

/* ---------- 목록 ---------- */
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li {
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy-500);
}

/* ---------- 태그 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 100px;
  background: var(--navy-100);
  color: var(--navy-700);
  font-size: 0.86rem;
  font-weight: 600;
}
.tag-gold { background: var(--gold-soft); color: var(--gold); }

/* ---------- 논문 목록 ---------- */
.pub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pub-toolbar label { font-size: 0.88rem; color: var(--text-muted); font-weight: 600; }
.pub-toolbar input, .pub-toolbar select {
  font-family: inherit;
  font-size: 0.92rem;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
}
.pub-toolbar input { flex: 1 1 220px; min-width: 0; }
.pub-count { margin-left: auto; font-size: 0.86rem; color: var(--text-faint); }

.pub-year {
  font-size: 1.1rem;
  color: var(--navy-700);
  margin: 34px 0 10px;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--navy-100);
}
.pub-year:first-of-type { margin-top: 0; }

.pub-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pub-list li {
  padding: 13px 0 13px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 0.95rem;
}
.pub-list li:last-child { border-bottom: none; }
.pub-list li::before {
  content: "▪";
  position: absolute;
  left: 8px;
  top: 12px;
  color: var(--gold);
  font-size: 0.8rem;
}
.pub-list .venue { color: var(--text-muted); }
.pub-list .me { font-weight: 700; color: var(--navy-700); }
.no-result { padding: 40px 0; text-align: center; color: var(--text-faint); }

/* ---------- 강조 박스 ---------- */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-500);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.callout h3 { font-size: 1rem; color: var(--navy-700); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- 통계 ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: #fff; padding: 26px 22px; text-align: center; }
.stat b { display: block; font-size: 1.9rem; color: var(--navy-700); line-height: 1.2; }
.stat span { font-size: 0.86rem; color: var(--text-muted); }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 46px 0 34px;
  font-size: 0.9rem;
}
.site-footer a { color: rgba(255, 255, 255, 0.86); }
.site-footer .foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer strong { color: #fff; display: block; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .copyright {
  padding-top: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 반응형 ---------- */
@media (max-width: 860px) {
  .profile { grid-template-columns: 1fr; gap: 26px; }
  .profile-photo { max-width: 220px; }
  .site-footer .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .site-header .wrap { position: relative; }
  .hero { padding: 62px 0 54px; }
  section { padding: 48px 0; }
  .dl > div { grid-template-columns: 1fr; gap: 2px; }
  .pub-count { margin-left: 0; width: 100%; }
}

@media print {
  .site-header, .site-footer, .pub-toolbar, .hero .actions { display: none; }
  body { font-size: 11pt; }
}
