@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,500;1,600&display=swap');

/* ============================================================
   Publication cards
   ============================================================ */

.scholar-link {
  font-size: 0.88em;
  color: #555;
  margin-bottom: 1.5em;
}

.pub-card {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 1.1em 1.3em;
  margin-bottom: 1em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s;
}

.pub-card:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.pub-title {
  font-size: 0.97em;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 0.3em;
}

.pub-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.pub-title a:hover {
  color: #0066cc;
}

.pub-authors {
  font-size: 0.83em;
  color: #555;
  margin: 0.15em 0;
}

.my-name {
  color: #1d4ed8;
  font-weight: 700;
}

.pub-venue {
  font-size: 0.83em;
  color: #e07b00;
  font-weight: 500;
  font-style: italic;
  margin: 0.1em 0 0.45em 0;
}

.pub-note {
  margin-top: 0.4em;
  font-size: 0.55em;
  color: #444;
  display: flex;
  gap: 1em;
}

.pub-links {
  margin-top: 0.5em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.pub-links a {
  font-size: 0.78em;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.15s;
  border: 1px solid transparent;
}

/* Paper = blue */
.btn-paper {
  background: #dbeafe;
  color: #1d4ed8 !important;
  border-color: #93c5fd !important;
}
.btn-paper:hover {
  background: #1d4ed8 !important;
  color: #fff !important;
}

/* Project = purple */
.btn-project {
  background: #ede9fe;
  color: #6d28d9 !important;
  border-color: #c4b5fd !important;
}
.btn-project:hover {
  background: #6d28d9 !important;
  color: #fff !important;
}

/* Code = green */
.btn-code {
  background: #dcfce7;
  color: #15803d !important;
  border-color: #86efac !important;
}
.btn-code:hover {
  background: #15803d !important;
  color: #fff !important;
}

/* ============================================================
   Search + Filter controls
   ============================================================ */

.pub-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  align-items: center;
  margin-bottom: 1.2em;
}

#pub-search {
  flex: 1;
  min-width: 180px;
  padding: 5px 12px;
  font-size: 0.88em;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  outline: none;
}

#pub-search:focus {
  border-color: #0066cc;
}

.pub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.filter-btn {
  font-size: 0.78em;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #f5f7fa;
  color: #555;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-btn.active, .filter-btn:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

/* Tag-specific filter button colors */
.filter-btn.tag-llm.active { background: #6d28d9; border-color: #6d28d9; }
.filter-btn.tag-ts.active  { background: #0369a1; border-color: #0369a1; }
.filter-btn.tag-ai4s.active { background: #15803d; border-color: #15803d; }

/* ============================================================
   Publication tags (inline badges)
   ============================================================ */

.pub-tag {
  display: inline-block;
  font-size: 0.68em;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tag-llm  { background: #ede9fe; color: #6d28d9; border: 1px solid #c4b5fd; }
.tag-ts   { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.tag-ai4s { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }

/* ============================================================
   About page
   ============================================================ */

.about-intro {
  margin-bottom: 1.8em;
  line-height: 1.75;
  font-size: 0.97em;
}

.research-interests {
  margin-top: 1.2em;
}

.research-interests h3 {
  font-size: 0.95em;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.8em;
  border-bottom: 2px solid #0066cc;
  padding-bottom: 0.3em;
  display: inline-block;
}

html[data-theme="dark"] .research-interests h3 {
  color: #f1f5f9 !important;
}

.research-focus {
  font-family: inherit;
  font-size: 0.95em;
  font-style: italic;
  font-weight: 400;
  color: #333;
  line-height: 1.65;
  margin: 0.6em 0 0 0;
}

html[data-theme="dark"] .research-focus {
  color: #e2e8f0 !important;
}

.mission-statement {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.35em;
  line-height: 1.6;
  color: #1e293b;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border-left: 4px solid #6366f1;
  padding: 1em 1.3em;
  border-radius: 0 8px 8px 0;
  margin: 0 0 1.5em 0;
  letter-spacing: 0.01em;
}

.mission-statement strong {
  font-style: italic;
  font-weight: 600;
  color: #4338ca;
}

html[data-theme="dark"] .mission-statement {
  color: #e2e8f0;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-left-color: #818cf8;
}

html[data-theme="dark"] .mission-statement strong {
  color: #a5b4fc;
}

/* Beyond Research section */
.open-to {
  font-size: 0.88em;
  color: #0f766e;
  background: #f0fdfa;
  border-left: 3px solid #5eead4;
  padding: 0.5em 0.9em;
  border-radius: 0 6px 6px 0;
  margin-bottom: 1.5em;
}

.about-hobbies {
  margin-top: 1.8em;
  padding: 1.1em 1.3em;
  background: linear-gradient(135deg, #f0fdfa 0%, #e6fffa 100%);
  border: 1px solid #99f6e4;
  border-radius: 12px;
}

.about-hobbies h3 {
  font-size: 0.95em;
  font-weight: 500;
  color: #0f766e;
  margin-bottom: 0.3em;
  border-bottom: none;
  padding-bottom: 0;
  display: inline-block;
  font-family: 'Georgia', serif;
  letter-spacing: 0.01em;
}

.hobby-intro {
  font-size: 0.82em;
  color: #5eead4;
  margin: 0.2em 0 0.9em 0;
  font-style: italic;
}

.hobby-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.82em;
  font-weight: 400;
  color: #555;
  background: #fff;
  border: 1px solid #99f6e4;
  border-radius: 20px;
  padding: 3px 12px;
  box-shadow: 0 1px 2px rgba(15,118,110,0.06);
  white-space: nowrap;
}

.hobby-item em {
  color: #5eead4;
  font-style: normal;
  font-size: 0.88em;
}

.hobby-section {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  margin-bottom: 0.55em;
  flex-wrap: wrap;
}

.hobby-section:last-child {
  margin-bottom: 0;
}

.hobby-category {
  flex-shrink: 0;
  font-size: 0.75em;
  font-weight: 700;
  color: #0f766e;
  width: 4.5em;
}

.hobby-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  flex: 1;
}

.hobby-invite-inline {
  font-size: 0.72em;
  color: #0f766e;
  font-style: italic;
  margin: 0.2em 0 0 5.1em;
}

/* Page title */
.page__title {
  font-size: 1.3em !important;
  margin-bottom: 0.6em;
}
