/* ===========================
   AI & BM Lab — Shared Styles
   =========================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;600;700&family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --primary: #1a2340;
  --accent: #c8102e;
  --accent2: #2563eb;
  --text: #1c1c1c;
  --text-muted: #6b7280;
  --border: #e2ded6;
  --shadow: 0 2px 16px rgba(26,35,64,0.07);
  --radius: 4px;
  --font-serif: 'Noto Serif KR', serif;
  --font-sans: 'Noto Sans KR', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

/* ── NAV ── */
nav {
  background: var(--primary);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.nav-logo span { color: #f59e0b; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; text-decoration: none; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* ── HERO ── */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 72px 40px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,0.18) 0%, transparent 70%);
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: #f59e0b;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.7;
}

/* ── SECTIONS ── */
.section { padding: 56px 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ── CARDS ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(26,35,64,0.1); }
.card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── PROFILE ── */
.profile-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  box-shadow: var(--shadow);
}
.profile-img {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  color: rgba(255,255,255,0.3);
  flex-shrink: 0;
}
.profile-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.profile-title { font-size: 14px; color: var(--accent); font-weight: 500; margin-bottom: 16px; }
.profile-info li { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; list-style: none; padding-left: 14px; position: relative; }
.profile-info li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

/* ── AWARD BANNER ── */
.award-banner {
  background: linear-gradient(135deg, #1a2340 0%, #2d3a5e 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.award-icon { font-size: 36px; flex-shrink: 0; }
.award-text h3 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 4px; }
.award-text p { font-size: 13px; color: rgba(255,255,255,0.7); }

/* ── TABLE ── */
.pub-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.pub-table th {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 12px 16px;
  text-align: left;
}
.pub-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.pub-table tr:hover td { background: #f0eeea; }

/* ── FOOTER ── */
footer {
  background: var(--primary);
  color: rgba(255,255,255,0.6);
  padding: 32px 40px;
  font-size: 13px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { font-family: var(--font-serif); font-weight: 700; color: #fff; font-size: 15px; }

/* ── VERSION BADGE ── */
.version-badge {
  position: fixed;
  bottom: 20px; right: 20px;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  z-index: 999;
  cursor: default;
}
.version-badge.control { background: #374151; color: #d1d5db; }
.version-badge.treatment { background: #065f46; color: #6ee7b7; }

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .hero { padding: 48px 20px; }
  .profile-block { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  footer { padding: 24px 20px; }
}

.profile-img-real {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}
.award-img {
  width: 100%; max-width: 480px;
  border-radius: var(--radius);
  margin: 12px 0;
}
