/* ============================================
   Stella Yeayeun Park â€” Academic Website
   Matching Google Sites aesthetic exactly
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Times New Roman', Times, serif;
  color: #000;
  background: #fff;
  line-height: 1.5;
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: #1155cc;
  text-decoration: underline;
}
a:hover {
  color: #1155cc;
  text-decoration: underline;
}

/* --- Header / Navigation --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 60px;
  border-bottom: none;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  box-shadow: none;
  min-height: 52px;
}

.site-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none;
  margin-right: auto;
  flex-shrink: 1;
}
.site-brand:hover {
  text-decoration: none;
}
.site-brand .brand-logo {
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav a {
  padding: 6px 14px;
  border-radius: 3px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 15px;
  font-weight: 400;
  color: #000;
  text-decoration: none;
  transition: background 0.15s;
}
.site-nav a:hover {
  background: rgba(0,0,0,0.05);
  text-decoration: none;
}
.site-nav a.active {
  background: #3c4043;
  color: #fff;
  font-weight: 400;
}
.site-nav .nav-search {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  color: #5f6368;
  cursor: pointer;
  text-decoration: none;
}
.site-nav .nav-search:hover {
  background: rgba(0,0,0,0.05);
  border-radius: 3px;
}
.site-nav .nav-search svg {
  width: 18px;
  height: 18px;
}

/* Hamburger button — hidden on desktop */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  color: #5f6368;
  line-height: 1;
}

/* --- Page Container --- */
.page-container {
  max-width: 100%;
  margin: 0;
  padding: 32px 60px 40px;
  flex: 1;
}

/* --- Page Title (Research, CV) --- */
.page-title {
  text-align: center;
  font-family: 'Times New Roman', Times, serif;
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 40px;
  color: #000;
  letter-spacing: 0.5px;
}

/* --- Home Page --- */
.home-hero {
  text-align: center;
  margin-bottom: 32px;
}
.home-hero h1 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 4px;
  white-space: nowrap;
}
.home-hero .subtitle {
  font-family: 'Times New Roman', Times, serif;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  letter-spacing: 0.2px;
}

.home-content {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}
.home-photo {
  flex-shrink: 0;
  width: 280px;
}
.home-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.home-bio {
  flex: 1;
}
.home-bio p {
  margin-bottom: 14px;
  font-size: 15px;
  color: #000;
  line-height: 1.5;
  text-align: justify;
}
.home-bio .contact-line {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.5;
}

.home-bio .contact-line:first-of-type {
  margin-top: 16px;
}
.home-bio .contact-line strong {
  font-weight: 700;
}
.home-bio .contact-line a {
  color: #000;
  text-decoration: underline;
}

.download-cv {
  display: inline-block;
  margin-top: 36px;
  color: #1a73e8;
  font-size: 15px;
  font-weight: 400;
  text-decoration: underline;
}
.download-cv:hover {
  text-decoration: underline;
}

/* --- Research Page --- */
.section-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 20px 0 6px;
  color: #000;
}
.section-heading:first-child {
  margin-top: 0;
}

.publication {
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.35;
}
.publication em {
  font-style: italic;
}

.paper-list {
  list-style: none;
  padding: 0;
  counter-reset: paper;
}
.paper-list li {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.35;
  padding-left: 22px;
  position: relative;
}
.paper-list li::before {
  counter-increment: paper;
  content: counter(paper) ".";
  position: absolute;
  left: 0;
  font-weight: 400;
}
.paper-list li .status {
  display: block;
  padding-left: 16px;
  font-style: italic;
  color: #000;
  font-size: 15px;
  line-height: 1.35;
}

/* --- CV Page --- */
.cv-embed-container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}
.cv-embed-container iframe {
  width: 100%;
  height: 900px;
  border: none;
  display: block;
}
.cv-fallback {
  text-align: center;
  padding: 24px;
  font-size: 14px;
  color: #666;
}

/* --- CV HTML Version --- */
.cv-html {
  max-width: 780px;
  margin: 0 auto;
}
.cv-header-block {
  text-align: center;
  margin-bottom: 24px;
}
.cv-header-block h2 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
}
.cv-header-block .cv-contact {
  font-size: 13.5px;
  color: #5f6368;
}

.cv-section {
  margin-bottom: 18px;
}
.cv-section-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-bottom: 1.5px solid #000;
  padding-bottom: 3px;
  margin-bottom: 8px;
  color: #000;
}

.cv-entry {
  display: flex;
  gap: 20px;
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.35;
}
.cv-entry .cv-date {
  flex-shrink: 0;
  width: 90px;
  color: #000;
  font-size: 14px;
}
.cv-entry .cv-detail {
  flex: 1;
}
.cv-entry .cv-detail strong {
  font-weight: 600;
}
.cv-entry .cv-detail .cv-sub {
  padding-left: 16px;
  color: #000;
  font-size: 14px;
}
.cv-entry .cv-detail .cv-sub em {
  font-style: italic;
}

.cv-item-list {
  list-style: disc;
  padding-left: 28px;
  font-size: 14px;
}
.cv-item-list li {
  margin-bottom: 4px;
  line-height: 1.35;
}
.cv-item-list li .status {
  display: block;
  padding-left: 16px;
  font-style: italic;
  font-size: 13.5px;
}

.cv-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 4px;
}
.cv-table td {
  padding: 1px 0;
  vertical-align: top;
}
.cv-table .cv-year {
  width: 100px;
}

.cv-updated {
  text-align: right;
  font-style: italic;
  font-size: 13px;
  color: #888;
  margin-top: 36px;
}

/* --- Footer --- */
.site-footer {
  text-align: right;
  padding: 16px 60px;
  font-size: 13px;
  color: #000;
  border-top: none;
  margin-top: auto;
}

/* --- Search Overlay --- */
.search-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
}
.search-overlay.active {
  display: flex;
}
.search-box {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  width: 90%;
  max-width: 540px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.search-box input {
  width: 100%;
  padding: 10px 14px;
  font-size: 16px;
  font-family: 'Times New Roman', Times, serif;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
}
.search-box input:focus {
  border-color: #1155cc;
}
.search-results {
  margin-top: 16px;
  max-height: 400px;
  overflow-y: auto;
}
.search-results a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #000;
}
.search-results a:hover {
  background: #f5f5f5;
}
.search-results .result-title {
  font-weight: 600;
  color: #1155cc;
  font-size: 15px;
}
.search-results .result-snippet {
  font-size: 13px;
  color: #555;
  margin-top: 2px;
}
.search-results .no-results {
  padding: 12px 8px;
  color: #888;
  font-size: 14px;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 700px) {
  .site-header {
    padding: 6px 12px;
    min-height: 48px;
  }

  /* Show hamburger, hide nav links by default */
  .hamburger-btn {
    display: block;
    order: -1;
  }

  .site-brand {
    flex: 1;
    justify-content: center;
  }
  .site-brand .brand-logo {
    height: 44px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 8px 0;
    z-index: 99;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav a {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 0;
    width: 100%;
    text-align: left;
  }
  .site-nav a.active {
    background: #3c4043;
    color: #fff;
    border-radius: 0;
  }
  .site-nav .nav-search {
    padding: 10px 20px;
    justify-content: flex-start;
  }

  /* Right-side search icon in header (mobile) */
  .mobile-search-btn {
    display: block;
  }

  .page-container {
    padding: 20px 16px 60px;
  }

  .home-hero {
    margin-bottom: 20px;
  }
  .home-hero h1 {
    font-size: 20px;
    letter-spacing: 1.5px;
    white-space: nowrap;
  }
  .home-hero .subtitle {
    font-size: 12px;
  }

  .page-title {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .home-content {
    flex-direction: column;
    gap: 20px;
  }
  .home-photo {
    width: 100%;
    margin: 0;
  }
  .home-photo img {
    width: 100%;
    display: block;
  }

  .home-bio p {
    font-size: 14px;
  }
  .home-bio .contact-line {
    font-size: 14px;
  }

  .cv-embed-container iframe {
    height: 600px;
  }
  .cv-entry {
    flex-direction: column;
    gap: 2px;
  }
  .cv-entry .cv-date {
    width: auto;
    font-weight: 500;
  }
}

/* Mobile search button (magnifying glass in header) */
.mobile-search-btn {
  display: none;
  background: none;
  border: none;
  color: #5f6368;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.mobile-search-btn svg {
  width: 20px;
  height: 20px;
}
@media (max-width: 700px) {
  .mobile-search-btn {
    display: block;
  }
}
