/* AURA project page custom styles */

/* ---------- Global typography & layout ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 18px;
}

body {
  font-size: 1rem;
  line-height: 1.65;
  color: #1f2937;
}

/* Widen Bulma's max-desktop container so we waste less side space */
.container.is-max-desktop {
  max-width: 1280px !important;
  width: 100%;
}

@media (min-width: 1408px) {
  .container.is-max-desktop {
    max-width: 1360px !important;
  }
}

/* Slightly wider section padding so cards breathe */
.section { padding: 3rem 2rem; }

/* Make Bulma's content text bigger */
.content { font-size: 1.05rem; line-height: 1.7; }
.content p { font-size: 1.05rem; }
.content li { font-size: 1.02rem; }

/* ---------- Branding ---------- */
.aura-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #2563eb;
}

.publication-title {
  line-height: 1.15;
}

.publication-links .button {
  margin: 4px 4px;
}

/* HuggingFace logo button icon */
.hf-icon { width: 1.2em; height: 1.2em; }
.hf-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

/* ---------- Navbar (larger font + animated underline + smooth target) ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}
.navbar:hover { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06); }

.navbar .navbar-item {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  color: #374151;
  font-size: 1.08rem;
  padding: 0.85rem 1.25rem;
  position: relative;
  transition: color 0.2s ease, transform 0.2s ease;
}
.navbar .navbar-item::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 0.5rem;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.navbar .navbar-item:hover {
  color: #2563eb;
  background: transparent;
  transform: translateY(-1px);
}
.navbar .navbar-item:hover::after { transform: scaleX(1); }

/* Highlight a section briefly when navigated to via hash */
section:target {
  animation: section-flash 1.6s ease-out;
}
@keyframes section-flash {
  0%   { box-shadow: inset 0 0 0 0 rgba(37, 99, 235, 0.22); }
  20%  { box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, 0.08); }
  100% { box-shadow: inset 0 0 0 9999px rgba(37, 99, 235, 0); }
}

.teaser .hero-body { padding-top: 1rem; padding-bottom: 2.5rem; }

.teaser-figure {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 16px 12px 16px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.06);
}
.teaser-figure svg { display: block; width: 100%; height: auto; }
.teaser-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.figure-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 18px 10px 18px;
  margin-top: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.figure-img {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  height: auto;
  border-radius: 6px;
}

.teaser .subtitle {
  font-family: 'Google Sans', sans-serif;
  font-weight: 400;
  color: #444;
  font-size: 1.1rem;
  margin-top: 1.4rem;
  line-height: 1.6;
}

/* Section spacing */
.section { padding: 3rem 1.5rem; }
.section-light { background: #fafafa; }

/* News */
.news-list { list-style: none; margin-left: 0; padding-left: 0; }
.news-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 1.05rem;
}
.news-date {
  display: inline-block;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  color: #2563eb;
  margin-right: 16px;
  min-width: 110px;
}

/* Phase cards */
.phase-cards { margin-top: 1.5rem; }
.phase-card {
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px;
  height: 100%;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.phase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}
.phase-card .title { margin-bottom: 0.85rem; font-family: 'Google Sans', sans-serif; }
.phase-card-ph0 { border-top: 4px solid #1976d2; }
.phase-card-ph0 .title { color: #0d47a1; }
.phase-card-ph1 { border-top: 4px solid #f57c00; }
.phase-card-ph1 .title { color: #bf360c; }
.phase-card-ph2 { border-top: 4px solid #2e7d32; }
.phase-card-ph2 .title { color: #1b5e20; }
.phase-card p { font-size: 1rem; line-height: 1.6; color: #333; }

/* Benchmark cards */
.benchmark-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 22px;
  height: 100%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.benchmark-card h4 { font-family: 'Google Sans', sans-serif; color: #222; margin-bottom: 0.5rem; }
.benchmark-card ul { margin-left: 1.25rem; }
.benchmark-card li { padding: 4px 0; font-size: 1rem; }

/* Baseline tags */
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.5rem; }
.bk-tag {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.95rem;
  font-family: 'Google Sans', sans-serif;
}

/* Results table */
.results-table { font-size: 1rem; background: #fff; border-radius: 8px; overflow: hidden; }
.results-table thead th {
  background: #1f2937;
  color: #fff !important;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  border-bottom: none !important;
}
.results-table .row-group td {
  background: #f3f4f6;
  color: #555;
  font-family: 'Google Sans', sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
}
.results-table .row-best td { background: #ecfdf5 !important; }
.results-table .row-best strong { color: #047857; }
.results-table .row-bad td { background: #fef2f2 !important; }

.caption {
  font-size: 1rem;
  color: #555;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
  line-height: 1.55;
}

/* Pareto chart */
.pareto-chart {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px 16px 8px 16px;
  margin-top: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.pareto-chart svg { display: block; width: 100%; height: auto; min-width: 640px; }
.pareto-chart .figure-img { max-width: 900px; }

/* Diff grid */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 1.2rem;
}
.diff-col {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 1rem;
  line-height: 1.6;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}
.diff-head {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #eee;
}
.diff-head-aura { color: #1565c0; }
.diff-head-anon { color: #ef6c00; }
.hl-red { background: rgba(244, 67, 54, 0.16); border-radius: 3px; padding: 0 2px; }
.hl-amber { background: rgba(255, 193, 7, 0.28); border-radius: 3px; padding: 0 2px; }
.hl-grey { background: rgba(0, 0, 0, 0.06); border-radius: 3px; padding: 0 2px; color: #555; }

#bibtex pre {
  background: #1f2937;
  color: #f9fafb;
  border-radius: 8px;
  padding: 20px 22px;
  font-size: 0.98rem;
  line-height: 1.55;
  overflow-x: auto;
}
#bibtex code { color: inherit; background: transparent; }

@media (max-width: 768px) {
  .diff-grid { grid-template-columns: 1fr; }
  .results-table { font-size: 0.82rem; }
  .teaser-figure svg { min-width: 640px; }
}
