/* ─── 기본 리셋 ─── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', system-ui, sans-serif;
  font-feature-settings: 'tnum';
  line-height: 1.55;
  color: #0f172a;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, #1e293b 0%, transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #020617 100%);
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ─── 모바일 우선 레이아웃 ─── */
.card {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 8px 0 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 8px;
}

.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
  background: #1e293b;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #475569 0%, #1e293b 100%);
  color: #f8fafc;
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #f8fafc;
  line-height: 1.2;
}

.name-en {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-top: -4px;
}

.title-block {
  margin-top: 8px;
}

.title-org {
  font-size: 15px;
  font-weight: 600;
  color: #cbd5e1;
}

.title-role {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

.bio {
  font-size: 14px;
  color: #cbd5e1;
  margin-top: 8px;
  line-height: 1.7;
  max-width: 360px;
}

/* ─── 빠른 액션 (3-grid) ─── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.action-btn {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.action-btn:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.1);
}

@media (hover: hover) {
  .action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

.action-icon {
  font-size: 22px;
  line-height: 1;
}

.action-label {
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
}

/* ─── 메인 링크 ─── */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #f8fafc;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.link-row:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.1);
}

@media (hover: hover) {
  .link-row:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

.link-icon {
  font-size: 24px;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.link-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.link-title {
  font-size: 15px;
  font-weight: 600;
  color: #f1f5f9;
}

.link-sub {
  font-size: 12px;
  color: #94a3b8;
}

.link-arrow {
  font-size: 18px;
  color: #64748b;
  flex-shrink: 0;
}

/* ─── 전문 분야 ─── */
.specialties {
  margin-top: 8px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-left: 4px;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.specialty-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.specialty-emoji {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.specialty-name {
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
}

.specialty-desc {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ─── 푸터 ─── */
.footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
}

.footer-meta {
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.05em;
}

.footer-copy {
  font-size: 11px;
  color: #475569;
  margin-top: 12px;
  letter-spacing: 0.02em;
}

/* ─── Tablet+ (Optional center on large screens) ─── */
@media (min-width: 768px) {
  .card {
    padding-top: 56px;
    padding-bottom: 64px;
  }
  .name { font-size: 32px; }
  .avatar-wrap, .avatar { width: 160px; height: 160px; }
  .avatar-fallback { font-size: 72px; }
}
