/* Exact replica of academic website styling with enhancements */

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-padding-top: 74px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #24292e;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
}

/* Navigation */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e1e4e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1012px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.site-title {
  font-size: 18px;
  font-weight: 600;
  color: #24292e;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #586069;
  text-decoration: none;
  font-weight: 400;
  font-size: 14px;
  transition: color 0.15s ease-in-out;
}

.nav-link:hover,
.nav-link.active {
  color: #0366d6;
}

/* Mobile navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: #586069;
  margin: 2px 0;
  transition: 0.3s;
}

/* Main content wrapper */
.wrapper {
  max-width: 1012px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-content {
  padding: 24px 0;
}

/* Profile section - matches reference exactly */
.profile-section {
  display: flex;
  margin-bottom: 32px;
  align-items: flex-start;
  gap: 24px;
}

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

.profile-img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e1e4e8;
}

.profile-content {
  flex-grow: 1;
}

.profile-name {
  font-size: 32px;
  font-weight: 600;
  color: #24292e;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.profile-title {
  font-size: 18px;
  color: #586069;
  margin: 0 0 16px 0;
  font-weight: 400;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #586069;
}

.contact-item i {
  width: 16px;
  text-align: center;
  color: #586069;
}

.contact-item a {
  color: #0366d6;
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* Main content */
.main-content {
  font-size: 16px;
  line-height: 1.6;
}

.bio {
  color: #24292e;
  margin-bottom: 16px;
  text-align: justify;
}

h1, h2, h3, h4, h5, h6 {
  color: #24292e;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
  margin-top: 24px;
}

h1 {
  font-size: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e1e4e8;
  margin-top: 0;
}

h2 {
  font-size: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e1e4e8;
  margin-top: 32px;
}

h3 {
  font-size: 20px;
  margin-top: 24px;
  margin-bottom: 8px;
}

p {
  margin-bottom: 16px;
  color: #24292e;
}

a {
  color: #0366d6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Enhanced Research Interests Grid */
.research-interests-grid {
  display: grid;
  gap: 24px;
  margin-top: 16px;
}

.research-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  background: #f6f8fa;
  transition: background-color 0.15s ease;
}

.research-item:hover {
  background: #f0f4f8;
}

.research-visual {
  flex-shrink: 0;
  width: 120px;
}

.research-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #d0d7de;
  background: #ffffff;
}

.research-content {
  flex-grow: 1;
}

.research-content h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.research-content p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* News list enhancements */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 12px;
  background: #f6f8fa;
  border-radius: 6px;
  border-left: 3px solid #0366d6;
}

.news-list strong {
  color: #0366d6;
  font-weight: 600;
}

.highlight {
  background: #fff5b4;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Education and Experience entries */
.education-entry,
.experience-entry {
  display: flex;
  margin-bottom: 24px;
  gap: 16px;
}

.education-period,
.experience-period {
  flex-shrink: 0;
  width: 120px;
  font-size: 14px;
  color: #586069;
  font-weight: 400;
  padding-top: 2px;
}

.education-details,
.experience-details {
  flex-grow: 1;
}

.education-details strong,
.experience-details strong {
  color: #24292e;
  font-weight: 600;
}

.education-details em,
.experience-details em {
  color: #586069;
  font-style: italic;
}

/* Publication badges and tags */
.publication-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.journal { background: #e1f5fe; color: #01579b; }
.badge.conference { background: #f3e5f5; color: #4a148c; }
.badge.patent { background: #fff3e0; color: #e65100; }
.badge.preprint { background: #f1f8e9; color: #33691e; }
.badge.under-review { background: #fff8e1; color: #f57f17; }
.badge.accepted { background: #e8f5e8; color: #2e7d32; }
.badge.oral { background: #e3f2fd; color: #1565c0; }
.badge.award { background: #fff9c4; color: #f9a825; }
.badge.korea { background: #fce4ec; color: #c2185b; }
.badge.midl { background: #f3e5f5; color: #6a1b9a; }
.badge.korean-conference { background: #f1f8e9; color: #388e3c; }

.publication-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  background: #f6f8fa;
  color: #586069;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #e1e4e8;
}

/* Publication items */
.publication-item {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f6f8fa;
}

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

.publication-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #24292e;
  margin-bottom: 8px;
  line-height: 1.4;
  margin-top: 0;
}

.publication-authors {
  color: #586069;
  margin-bottom: 4px;
  font-style: italic;
  font-size: 14px;
}

.publication-authors strong {
  color: #24292e;
  font-weight: 600;
  font-style: normal;
}

.publication-venue {
  color: #0366d6;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 8px;
}

.publication-description {
  color: #24292e;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* Publication links */
.publication-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.publication-link {
  background: #f6f8fa;
  color: #0366d6;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e1e4e8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.publication-link:hover {
  background: #0366d6;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.publication-link i {
  font-size: 10px;
}

/* Awards section */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.award-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #f6f8fa;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
  transition: transform 0.2s ease;
}

.award-item:hover {
  transform: translateY(-2px);
}

.highlight-award {
  background: linear-gradient(135deg, #fff9c4 0%, #fff3e0 100%);
  border-color: #f9a825;
}

.award-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.award-content h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #24292e;
}

.award-date {
  font-size: 12px;
  color: #586069;
  font-weight: 600;
  margin-bottom: 8px;
}

.award-description {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  color: #24292e;
}

/* Academic service */
.service-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #f6f8fa;
  border-radius: 8px;
  border: 1px solid #e1e4e8;
}

.service-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.service-content h3 {
  font-size: 16px;
  margin: 0 0 8px 0;
  color: #24292e;
}

.service-content p {
  font-size: 14px;
  margin: 0;
  color: #586069;
}

/* Page headers */
.page-header {
  text-align: center;
  padding: 32px 0;
  margin-bottom: 32px;
  background: #f6f8fa;
  margin: 0 -16px 32px -16px;
  border-bottom: 1px solid #e1e4e8;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 8px;
  border-bottom: none;
  padding-bottom: 0;
}

.page-header p {
  color: #586069;
  font-size: 16px;
  margin: 0;
}

/* Footer */
.site-footer {
  background: #fafbfc;
  border-top: 1px solid #e1e4e8;
  padding: 24px 0;
  margin-top: 48px;
  font-size: 12px;
  color: #586069;
}

.footer-container {
  max-width: 1012px;
  margin: 0 auto;
  padding: 0 16px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: #586069;
  font-size: 16px;
  transition: color 0.15s ease-in-out;
}

.footer-links a:hover {
  color: #0366d6;
}

/* Responsive design */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
  }

  .wrapper {
    padding: 0 16px;
  }

  .profile-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .profile-img {
    width: 150px;
    height: 150px;
  }

  .profile-name {
    font-size: 28px;
  }

  .profile-title {
    font-size: 16px;
  }

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

  .research-visual {
    width: 100%;
  }

  .research-img {
    height: 120px;
  }

  .awards-grid {
    grid-template-columns: 1fr;
  }

  .education-entry,
  .experience-entry {
    flex-direction: column;
    gap: 4px;
  }

  .education-period,
  .experience-period {
    width: auto;
    font-weight: 600;
    color: #24292e;
  }

  .nav-menu {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background: white;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding-top: 32px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-top: 1px solid #e1e4e8;
    box-shadow: 0 1px 3px rgba(27,31,35,0.12);
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    padding: 8px 16px;
    font-size: 16px;
  }

  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .page-header {
    margin: 0 -16px 32px -16px;
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  .profile-img {
    width: 120px;
    height: 120px;
  }

  .profile-name {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  h3 {
    font-size: 18px;
  }

  .research-item {
    padding: 12px;
  }

  .award-item {
    padding: 16px;
  }
}