/* ==========================================================================
   Nerfies-Style Academic Project Page — Quarto Theme
   ========================================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --color-text: #333;
  --color-text-muted: #555;
  --color-heading: #363636;
  --color-link: #4a6cf7;
  --color-link-hover: #3451c7;
  --color-bg: #ffffff;
  --color-section-alt: #f5f5f5;
  --color-border: #dbdbdb;
  --color-btn-bg: #4a6cf7;
  --color-btn-text: #ffffff;
  --font-body: 'Noto Sans', 'Google Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 960px;
}

/* ---------- Global Resets ---------- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Hide Quarto default navbar title — keep it clean */
.navbar-brand {
  display: none !important;
}

/* Override Quarto full-width to keep content centred */
#quarto-content {
  padding-top: 0;
}
.page-layout-full .content {
  max-width: 100%;
  padding: 0;
}

/* ---------- Hero / Title Section ---------- */
.hero-section {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-section .title {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.3rem;
  line-height: 1.25;
  border-bottom: none;
}

.hero-section .subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

/* Author & Affiliation Lists */
.author-list {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  line-height: 2;
}
.author-list a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: 600;
}
.author-list a:hover {
  text-decoration: underline;
}
.author-list sup {
  font-size: 0.7em;
}

.affiliation-list {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.affiliation-list sup {
  font-size: 0.7em;
}

/* ---------- Buttons ---------- */
.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.button-row .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  background-color: var(--color-btn-bg);
  color: var(--color-btn-text) !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, transform 0.15s ease;
  border: none;
}
.button-row .btn:hover {
  background-color: var(--color-link-hover);
  transform: translateY(-1px);
}

/* ---------- Section Container ---------- */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ---------- Section Titles ---------- */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 1.25rem;
  border-bottom: none;
}

/* ---------- Text Blocks ---------- */
.abstract-text,
.content-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  text-align: justify;
  max-width: 800px;
  margin: 0 auto;
}
.content-text ul {
  text-align: left;
  padding-left: 1.25rem;
}
.content-text li {
  margin-bottom: 0.5rem;
}

/* ---------- Teaser ---------- */
.hero-teaser {
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
}
.hero-teaser .teaser-img {
  width: 100%;
  max-width: 860px;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* ---------- Video Embed ---------- */
.video-container {
  max-width: 800px;
  margin: 0 auto;
}
.video-container iframe,
.video-container video {
  width: 100%;
  border-radius: 10px;
}

/* ---------- Results Grid ---------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}
.result-card {
  text-align: center;
}
.result-card img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}
.result-card img:hover {
  transform: scale(1.02);
}

/* ---------- Comparison Grid ---------- */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.comparison-item {
  text-align: center;
}
.comparison-item img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 0.5rem;
}

/* ---------- Interpolation ---------- */
.interpolation-panel {
  max-width: 700px;
  margin: 1rem auto 0;
  text-align: center;
}
.interpolation-endpoints {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}
.endpoint-img {
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.interpolation-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  margin-top: 0.5rem;
}
.interpolation-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-btn-bg);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.interpolation-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.interpolation-value {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

/* ---------- BibTeX ---------- */
.section-container pre {
  background: var(--color-section-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  overflow-x: auto;
  max-width: 800px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  max-width: var(--max-width);
  margin: 2rem auto 0;
}
.site-footer a {
  color: var(--color-link);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hero-section .title {
    font-size: 1.8rem;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .button-row {
    gap: 0.4rem;
  }
  .button-row .btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.82rem;
  }
  .interpolation-endpoints {
    flex-direction: column;
    align-items: center;
  }
}

/* ---------- Hide Quarto footer (we use our own) ---------- */
.nav-footer {
  display: none !important;
}

/* ---------- Image alt-text captions (keep subtle) ---------- */
figure figcaption {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.4rem;
}
