:root {
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --accent-dark: #1e40af;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --radius: 6px;
  --max-width: 800px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

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

/* ── Navigation ── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}

nav .nav-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

nav .nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

nav .nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

nav .nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ── Profile ── */

.profile {
  padding: 36px 0 24px;
}

.profile-inner {
  display: flex;
  gap: 32px;
  align-items: center;
}

.profile-photo-wrapper {
  flex-shrink: 0;
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 2px;
}

.profile-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.profile-full {
  margin-top: 20px;
}

.profile-bio {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.profile-bio a {
  font-weight: 500;
}

.profile-interests {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-interests-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Social Icons */

.social-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: all 0.2s;
}

.social-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  opacity: 0.7;
}

.social-link img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Research Interests */

.research-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.interest-tag {
  display: inline-block;
  padding: 3px 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ── Section Common ── */

.section {
  padding: 24px 0;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* ── Academic Journey ── */

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-institution {
  font-size: 15px;
  font-weight: 700;
}

.timeline-degree {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.timeline-period {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.timeline-status {
  display: inline-block;
  padding: 1px 8px;
  background: var(--accent-light);
  color: var(--accent-dark);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

/* ── News ── */

.news-list {
  list-style: none;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  flex-shrink: 0;
  width: 90px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.news-content {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.empty-placeholder {
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ── Publications ── */

.pub-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pub-item {
  display: flex;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.pub-item:hover {
  border-color: var(--accent);
}

.pub-thumb {
  flex-shrink: 0;
  width: 160px;
  height: 100px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--border);
}

.pub-body {
  flex: 1;
  min-width: 0;
}

.pub-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.pub-venue-badge {
  flex-shrink: 0;
  display: inline-block;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.pub-highlight {
  display: inline-block;
  padding: 2px 8px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #fde68a;
}

.pub-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.pub-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-left: auto;
}

.pub-tag {
  display: inline-block;
  padding: 1px 7px;
  background: var(--border);
  color: var(--text-secondary);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
}

.pub-authors {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.pub-authors .self {
  font-weight: 700;
  color: var(--text-primary);
}

.pub-venue-text {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 8px;
}

.pub-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pub-link {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #fff;
  transition: all 0.2s;
}

.pub-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* ── Footer ── */

footer {
  margin-top: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

footer p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .profile-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .profile-full {
    text-align: center;
  }

  .profile-interests {
    flex-direction: column;
    gap: 6px;
  }

  .social-links {
    justify-content: center;
  }

  .research-interests {
    justify-content: center;
  }

  .profile-info h1 {
    font-size: 24px;
  }

  .news-item {
    flex-direction: column;
    gap: 2px;
  }

  .news-date {
    width: auto;
  }

  .pub-item {
    flex-direction: column;
  }

  .pub-thumb {
    width: 100%;
    height: 140px;
  }

  .pub-header {
    flex-direction: column;
  }

  .pub-tags {
    margin-left: 0;
  }
}
