/* ====== Global theme ====== */
:root {
  --primary: #2563eb;
  --primary-soft: #dbeafe;
  --text-main: #111827;
  --text-muted: #6b7280;
}

body {
  font-family: "Google Sans", "Noto Sans", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  background: #f9fafb;
  color: var(--text-main);
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
  letter-spacing: 0.12em;
}

/* ====== Navbar ====== */
.navbar {
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  margin-bottom: 0;
}

.navbar-item,
.navbar-link {
  color: var(--text-main);
  font-weight: 500;
}

.navbar-item:hover,
.navbar-link:hover {
  background: transparent;
  color: var(--primary);
}

/* ====== Hero / title block ====== */
.hero {
  background: transparent;
  padding-top: 0.8rem;
  padding-bottom: 3.2rem;
}

.hero .container.is-max-desktop {
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 2.6rem 2.4rem;
}

.publication-title {
  font-family: "Google Sans", sans-serif;
  font-size: 1.75rem;
  line-height: 1.32;
  letter-spacing: 0.03em;
  font-weight: 650;
  margin-bottom: 0.9rem;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .publication-title {
    font-size: 2.1rem;
  }
}

.publication-venue {
  font-family: "Google Sans", sans-serif;
  color: #4b5563;
  font-weight: 550;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.35rem;
  margin-bottom: 1.1rem !important;
  animation:
    rainbowText 4s linear infinite,
    bounceText 0.9s ease-in-out infinite alternate;
}

.mv-highlight {
  font-weight: 700;
  animation:
    rainbowText 4s linear infinite,
    bounceText 0.9s ease-in-out infinite alternate;
}

@keyframes rainbowText {
  0% {
    color: #ef4444;
  }
  16% {
    color: #f97316;
  }
  32% {
    color: #eab308;
  }
  48% {
    color: #22c55e;
  }
  64% {
    color: #0ea5e9;
  }
  80% {
    color: #6366f1;
  }
  100% {
    color: #ec4899;
  }
}

@keyframes bounceText {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-3px);
  }
}

.publication-authors {
  font-family: "Noto Sans", "Google Sans", sans-serif;
  color: #111827;
  line-height: 1.8;
}

.publication-authors .author-block {
  display: inline-block;
  margin: 0.15rem 0.35rem;
}

/* new paper-style author lines */
.author-lines {
  text-align: center;
}

.author-line {
  display: block;
  margin-bottom: 0.12rem;
}

.author-name {
  display: inline-block;
  margin-right: 0.75rem;
  font-weight: 600;
}

.author-name:last-child {
  margin-right: 0;
}

.publication-authors a {
  color: #111827 !important;
  transition: color 0.18s ease;
}

.publication-authors a:hover {
  color: #111827 !important;
  text-decoration: none;
}

.publication-authors .author-link-primary {
  color: #2563eb !important;
}

.publication-authors .author-link-primary:hover {
  color: #1d4ed8 !important;
}

.publication-authors sup {
  font-size: 0.72em;
  color: #6b7280;
}

.author-meta-divider {
  height: 1px;
  width: 80%;
  margin: 0.9rem auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148, 163, 184, 0.8),
    transparent
  );
}

.author-affiliations {
  color: #374151 !important;
  font-size: 0.95rem;
}

.hero .publication-links {
  margin-top: 1.2rem;
}

.button.is-dark {
  background: #111827;
  border: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.3s ease;
}

.button.is-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.3);
  background: #000000;
}

/* ====== Teaser block ====== */
.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: "Google Sans", sans-serif;
  background: transparent;
  margin-top: -2.4rem;
}

.teaser img {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.teaser img:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.9);
}

.teaser .subtitle {
  margin-top: 15px;
  color: #4b5563;
}

.teaser .dnerf {
  font-weight: 600;
  color: var(--text-main);
}

.teaser-figure {
  margin: 0;
}

.figure-media {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #f3f4f6;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.figure-image {
  width: 100%;
  height: auto;
  display: block;
}

.figure-caption {
  margin-top: 0.9rem;
  text-align: center;
  color: #4b5563;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ====== Abstract card ====== */
section.section .content {
  max-width: 720px;
  margin: 0 auto;
}

section.section .content.has-text-justified {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.8rem 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  border: 1px solid rgba(226, 232, 240, 0.96);
  color: var(--text-main);
}

section.section .content.has-text-justified p {
  line-height: 1.8;
  font-size: 1.02rem;
}

section.section .title.is-3 {
  color: #111827;
  margin-bottom: 1.4rem;
}

/* ====== Leaderboard ====== */
.leaderboard-section .leaderboard-caption {
  margin-top: -0.6rem;
  margin-bottom: 1.2rem;
  color: #6b7280;
  font-size: 0.95rem;
}

.leaderboard-table {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.78rem;
}

.leaderboard-table thead th {
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.leaderboard-table td,
.leaderboard-table th {
  padding: 0.45rem 0.6rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
}

.leaderboard-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.leaderboard-table .rank-col {
  text-align: center;
  width: 3.6rem;
  font-weight: 700;
}

.leaderboard-table .avg-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
  width: 5.2rem;
}

.leaderboard-table .metric-col {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.leaderboard-table .method-col {
  white-space: nowrap;
}

.leaderboard-table .group-col {
  text-align: center;
}

.leaderboard-table .rank-1 {
  background: #fff7e6;
}

.leaderboard-table .rank-2 {
  background: #f1f5f9;
}

.leaderboard-table .rank-3 {
  background: #fef2f2;
}

.leaderboard-table .medal {
  margin-left: 0.2rem;
  font-size: 0.95em;
}

/* ====== BibTeX ====== */
#BibTeX .title {
  color: #111827;
}

#BibTeX .content {
  max-width: 960px;
  margin: 0 auto;
}

.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bibtex-copy {
  font-size: 0.85rem;
}

#BibTeX pre {
  background: #f3f4f6;
  color: #111827;
  border-radius: 16px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: none;
}

#BibTeX code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}

/* ====== Footer ====== */
.footer {
  background: transparent;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 1.8rem;
  padding-bottom: 1.8rem;
  color: #9ca3af;
}

.footer .icon-link {
  font-size: 25px;
  color: #9ca3af;
  transition:
    color 0.2s ease,
    transform 0.15s ease;
}

.footer .icon-link:hover {
  color: var(--primary-soft);
  transform: translateY(-1px);
}

.footer a {
  color: #9ca3af;
}

.footer a:hover {
  color: var(--primary-soft);
}

/* ====== Subtle fade-up animation ====== */
.hero,
.hero.teaser,
section.section,
.footer {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
}

.hero.teaser {
  animation-delay: 0.12s;
}

section.section {
  animation-delay: 0.22s;
}

#BibTeX {
  animation-delay: 0.32s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
