/* ==========================================================================
   HearSayBench Academic Project Page Stylesheet (Nerfies / OVMM Style)
   ========================================================================== */

body {
  font-family: 'Noto Sans', 'Inter', sans-serif;
  color: #2b2b2b;
  background-color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3, h4, .publication-title {
  font-family: 'Google Sans', 'Noto Sans', sans-serif;
  color: #222222;
}

.alt-bg {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef;
}

/* Venue Tag */
.venue-tag {
  margin-bottom: 1rem;
}

.publication-venue {
  font-size: 0.95rem;
  font-weight: 600;
  color: #3273dc;
  background: #eef3fc;
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  border: 1px solid #d0e1f9;
  display: inline-block;
}

/* Title & Authors */
.publication-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem !important;
}

.publication-authors {
  font-size: 1.2rem;
  font-family: 'Google Sans', sans-serif;
  margin-bottom: 0.5rem;
}

.publication-authors a {
  color: #3273dc;
  font-weight: 500;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.affiliation-block {
  color: #666;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* Action Links & Pill Buttons */
.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.publication-links .button {
  font-weight: 600;
  font-size: 0.92rem;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

/* Epigraph Box */
.epigraph-box {
  margin: 1.2rem auto 1.8rem;
  max-width: 600px;
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  padding: 0.85rem 1.25rem;
  border-radius: 0 8px 8px 0;
  text-align: center;
}

.epigraph-quote {
  font-family: 'Castoro', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: #1e293b;
  margin-bottom: 0.2rem;
}

.epigraph-author {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 600;
}

.email-block {
  color: #64748b;
  font-size: 0.88rem;
  margin-top: 0.4rem;
}

.taxonomy-box {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 12px;
}

.text-danger {
  color: #dc2626;
}

.abstract-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4a4a4a;
}

/* Metric Cards */
.key-cards {
  margin-top: 1.5rem;
}

.metric-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.icon-color {
  color: #3273dc;
  margin-right: 0.4rem;
}

/* Leaderboard Controls & Table */
.leaderboard-controls {
  margin-bottom: 1rem;
}

.table-container {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  background: #fff;
  overflow-x: auto;
}

.leaderboard-table {
  font-size: 0.9rem;
}

.leaderboard-table th {
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  white-space: nowrap;
}

.leaderboard-table th.sortable {
  cursor: pointer;
}

.leaderboard-table th.sortable:hover {
  background: #e2e8f0;
}

.model-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.badge-tag {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
}

.highlight-cell {
  font-weight: 700;
  color: #2563eb;
  font-size: 0.98rem;
}

.safety-cell {
  font-weight: 600;
  color: #059669;
}

/* Scenario Cards */
.scenario-card-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

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

.scenario-id-tag {
  font-family: monospace;
  font-size: 0.8rem;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
}

.scenario-cat-tag {
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #64748b;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.scenario-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #64748b;
}

.prompt-box {
  background: #f8fafc;
  border-left: 3px solid #3b82f6;
  padding: 0.65rem;
  font-style: italic;
  font-size: 0.88rem;
  color: #334155;
  border-radius: 0 4px 4px 0;
}

.weird-prior-text {
  font-size: 0.85rem;
  color: #dc2626;
}

.impediment-text {
  font-size: 0.85rem;
  color: #d97706;
}

.counter-tag {
  color: #64748b;
  font-size: 0.9rem;
}

/* Figures Box */
.figure-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  text-align: center;
}

.figure-box img {
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-top: 0.5rem;
}

/* BibTeX Box */
.citation-box {
  position: relative;
  background: #272822;
  border-radius: 8px;
  overflow: hidden;
}

.copy-bib-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 10;
}

.citation-box pre {
  background: transparent;
  color: #f8f8f2;
  padding: 1.5rem;
  font-family: 'Consolas', 'Fira Code', monospace;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Footer */
.footer {
  background-color: #f8f9fa;
  padding: 3rem 1.5rem 3rem;
  border-top: 1px solid #e9ecef;
}

.footer a {
  color: #3273dc;
}

.footer a:hover {
  text-decoration: underline;
}

/* Text Muted Utility */
.text-muted {
  color: #64748b !important;
}

.highlight-icon {
  color: #3273dc;
  margin-right: 0.3rem;
}
