/* =========================================================
   깔끔한 단일 페이지 Academic Homepage (순수 HTML/CSS/JS)
   - 파일: assets/css/style.css
   ========================================================= */

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #101828;
  --muted: #475467;
  --border: rgba(16, 24, 40, 0.10);
  --hover: rgba(16, 24, 40, 0.06);
  --chip: rgba(16, 24, 40, 0.04);
  --accent: #2b6cb0;

  --shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1020;
    --card: #111a33;
    --text: #e6e8f0;
    --muted: #aab1c5;
    --border: rgba(230, 232, 240, 0.14);
    --hover: rgba(230, 232, 240, 0.08);
    --chip: rgba(230, 232, 240, 0.06);
    --accent: #7aa2ff;

    --shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  }
}

/* 사용자가 버튼으로 강제 테마를 선택했을 때 (JS가 data-theme를 설정) */
html[data-theme="light"] {
  --bg: #f7f8fc;
  --card: #ffffff;
  --text: #101828;
  --muted: #475467;
  --border: rgba(16, 24, 40, 0.10);
  --hover: rgba(16, 24, 40, 0.06);
  --chip: rgba(16, 24, 40, 0.04);
  --accent: #2b6cb0;
  --shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
}

html[data-theme="dark"] {
  --bg: #0b1020;
  --card: #111a33;
  --text: #e6e8f0;
  --muted: #aab1c5;
  --border: rgba(230, 232, 240, 0.14);
  --hover: rgba(230, 232, 240, 0.08);
  --chip: rgba(230, 232, 240, 0.06);
  --accent: #7aa2ff;
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.65;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
               "Courier New", monospace;
  font-size: 0.95em;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.6rem 0.9rem;
  z-index: 999;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
}
@media (prefers-color-scheme: dark) {
  .topbar { background: rgba(17, 26, 51, 0.55); }
}
html[data-theme="dark"] .topbar { background: rgba(17, 26, 51, 0.55); }
html[data-theme="light"] .topbar { background: rgba(255, 255, 255, 0.55); }

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }

.nav {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  overflow-x: auto;
  padding: 0.25rem 0;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }

.nav a {
  white-space: nowrap;
  padding: 0.35rem 0.55rem;
  border-radius: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav a:hover {
  background: var(--hover);
  color: var(--text);
  text-decoration: none;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 0.9rem;
  width: 42px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--hover); }

.hero {
  padding: 2.4rem 0 1.2rem;
  background:
    radial-gradient(900px 380px at 10% 0%, rgba(43, 108, 176, 0.14), transparent 60%),
    radial-gradient(900px 380px at 90% 20%, rgba(122, 162, 255, 0.12), transparent 60%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.6rem;
  align-items: center;
}

.avatar {
  width: 180px;
  height: 180px;
  border-radius: 999px;
  object-fit: cover;
  border: 4px solid var(--card);
  box-shadow: var(--shadow);
  background: var(--card);
}

.hero-title {
  margin: 0;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  margin: 0.25rem 0 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.25rem;
}
.meta strong {
  display: inline-block;
  width: 92px;
  color: var(--text);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 0.95rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.btn:hover { background: var(--hover); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn-primary:hover { filter: brightness(0.95); }

.btn-ghost {
  background: transparent;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-note {
  margin: 1rem 0 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.section { padding: 0.9rem 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.2rem 1.2rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.card h3 {
  margin: 1.15rem 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }

.hint {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 타임라인 */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  border-left: 2px solid var(--border);
}
.timeline li {
  position: relative;
  padding: 0.15rem 0 0.95rem 1.15rem;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
}
.time {
  display: block;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
}
.desc { margin: 0.2rem 0 0; }

/* 연구 관심사 칩 */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.chip {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--chip);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.93rem;
}

/* Publications tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.65rem 0 0.25rem;
}
.tab-btn {
  border: 1px solid var(--border);
  background: var(--chip);
  color: var(--muted);
  padding: 0.45rem 0.7rem;
  border-radius: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}
.tab-btn:hover { background: var(--hover); }
.tab-btn.is-active {
  background: var(--card);
  color: var(--text);
  border-color: rgba(43, 108, 176, 0.35);
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.pub-item {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  padding: 0.85rem 0.9rem;
}
@media (prefers-color-scheme: dark) {
  .pub-item { background: rgba(17, 26, 51, 0.35); }
}
html[data-theme="dark"] .pub-item { background: rgba(17, 26, 51, 0.35); }
html[data-theme="light"] .pub-item { background: rgba(255, 255, 255, 0.35); }

.pub-title {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.pub-meta {
  margin-top: 0.2rem;
  color: var(--muted);
  font-weight: 650;
}

.pub-links {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.pub-links a {
  font-weight: 800;
  font-size: 0.93rem;
}

/* 일반 리스트 */
.simple-list {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}
.simple-list li { margin: 0.35rem 0; }

/* Footer */
.footer {
  padding: 2.2rem 0 2.8rem;
  color: var(--muted);
  text-align: center;
}

/* 모바일 최적화 */
@media (max-width: 760px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .avatar {
    width: 140px;
    height: 140px;
  }
  .meta strong { width: 86px; }
}

/* 인쇄용(선택) */
@media print {
  .topbar, .icon-btn { display: none !important; }
  body { background: white; }
  .card { box-shadow: none; }
}

/* ===== Ultra-clean overrides (paste at end of style.css) ===== */
:root {
  --shadow: none;
}

.hero {
  background: none !important;
  padding: 2rem 0 1rem !important;
}

.card {
  box-shadow: none !important;
  border-radius: 14px !important;
}

.pub-item {
  box-shadow: none !important;
  background: transparent !important;
}

.pub-meta strong {
  color: var(--accent);
  font-weight: 700;
}

.pub-authors {
  margin-top: 6px;
  font-size: 0.95rem;
}

.pub-venue {
  margin-top: 4px;
  font-size: 0.9rem;
  color: var(--muted);
}
