/* ================================================
   DPAF-Net Project Page — index.css
   Theme: dark fire/smoke palette (charcoal + orange)
   ================================================ */

/* ---------- Base ---------- */
body {
  font-family: 'Noto Sans', sans-serif;
  background: #f9f9f9;
  color: #222;
}

/* ---------- Navbar ---------- */
.navbar-dropdown {
  background-color: #1a1a1a;
}
.navbar-item {
  color: #ffffff;
}
.navbar-item:hover {
  background: #2a2a2a !important;
  color: #e67e22 !important;
}

/* ---------- Hero ---------- */
.dpaf-hero {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0800 50%, #2c1200 100%);
  border-bottom: 3px solid #e67e22;
}
.dpaf-hero .publication-title {
  color: #ffffff;
  font-family: 'Google Sans', sans-serif;
  line-height: 1.3;
}
.dpaf-hero .publication-authors {
  color: #f0f0f0;
  font-family: 'Google Sans', sans-serif;
}
.dpaf-hero .publication-authors a {
  color: #e67e22;
  text-decoration: none;
}
.dpaf-hero .publication-authors a:hover {
  text-decoration: underline;
}

/* Venue badge */
.venue-badge {
  display: inline-block;
  background: #e67e22;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 16px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}

/* TL;DR box */
.tldr-box {
  display: inline-block;
  margin-top: 1.5rem;
  background: rgba(230,126,34,0.12);
  border: 1px solid rgba(230,126,34,0.4);
  border-left: 4px solid #e67e22;
  border-radius: 6px;
  padding: 0.8rem 1.4rem;
  color: #eee;
  font-size: 0.95rem;
  text-align: left;
  max-width: 780px;
}

/* ---------- Section heading ---------- */
.section-heading {
  position: relative;
  display: inline-block;
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem !important;
}
.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #e67e22;
  border-radius: 2px;
}

/* ---------- Publication links ---------- */
.link-block a {
  margin: 4px;
  border-color: #555 !important;
  color: #ddd !important;
}
.link-block a:hover {
  background: #e67e22 !important;
  border-color: #e67e22 !important;
  color: #fff !important;
}

/* ---------- Dark sections ---------- */
.dpaf-dark-section {
  background: #141414;
}

/* ---------- Highlight cards ---------- */
.highlight-grid .column {
  display: flex;
}
.highlight-card {
  flex: 1;
  background: #1e1e1e;
  border: 1px solid #333;
  border-top: 3px solid #e67e22;
  border-radius: 8px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  color: #ddd;
  transition: transform 0.2s, box-shadow 0.2s;
}
.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(230,126,34,0.2);
}
.highlight-icon {
  font-size: 2rem;
  color: #e67e22;
  margin-bottom: 0.6rem;
}
.highlight-card h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.highlight-card p {
  font-size: 0.88rem;
  color: #aaa;
  line-height: 1.5;
}

/* ---------- Architecture pipeline ---------- */
.arch-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1rem 0;
}
.arch-block {
  width: 100%;
  max-width: 580px;
  padding: 0.75rem 1.2rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
.arch-block small { font-weight: 400; font-size: 0.8rem; color: #ccc; }
.arch-block-input  { background: #333; color: #fff; border: 2px solid #555; }
.arch-block-backbone { background: #1a3a1a; color: #7fff7f; border: 2px solid #2e6b2e; }
.arch-block-fpn    { background: #1a2a3a; color: #7fbfff; border: 2px solid #2e5a8a; }
.arch-block-afm    { background: #3a1a2a; color: #ffaaff; border: 2px solid #6a2a5a; }
.arch-block-head   { background: #2a1a3a; color: #cdb0ff; border: 2px solid #5a2a7a; }
.arch-block-output { background: #e67e22; color: #fff; border: 2px solid #c0621a; }

.arch-arrow {
  color: #e67e22;
  font-size: 1rem;
  margin: 2px 0;
  font-weight: 600;
}

.arch-split {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  max-width: 580px;
  position: relative;
}
.arch-branch {
  flex: 1;
  padding: 0.65rem 0.8rem;
  border-radius: 8px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}
.arch-branch small { font-weight: 400; font-size: 0.78rem; }
.arch-branch-fire  { background: #3a1a00; color: #ff9944; border: 2px solid #c05000; }
.arch-branch-smoke { background: #1a1a2a; color: #aabbcc; border: 2px solid #3a4a5a; }
.arch-branch-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; opacity: 0.8; }
.arch-branch-label-mid {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #e67e22;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
}

/* ---------- Dataset stats ---------- */
.dataset-stats {
  margin-bottom: 0.5rem;
}
.stat-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.3rem;
}
.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: #e67e22;
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Dataset images ---------- */
.dataset-figure, .result-figure {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #fff;
}
.dataset-figure img, .result-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.dataset-figure figcaption, .result-figure figcaption {
  padding: 0.5rem 0.8rem;
  font-size: 0.82rem;
  color: #888;
  text-align: center;
  background: #f8f8f8;
  border-top: 1px solid #eee;
}

/* ---------- Video carousel ---------- */
.results-carousel {
  overflow: hidden;
}
.results-carousel .item {
  margin: 5px;
  border: 1px solid #333;
  border-radius: 10px;
  overflow: hidden;
}
.video-pair {
  background: #000;
}
.video-pair .column video {
  width: 100%;
  display: block;
  height: auto;
}
.video-label {
  text-align: center;
  color: #aaa;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 0;
  background: #1a1a1a;
  margin: 0;
}
.output-label {
  color: #e67e22;
}

/* ---------- Tables ---------- */
.dpaf-table {
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
}
.dpaf-table thead tr {
  background: #2c1200;
  color: #fff;
}
.dpaf-table thead th {
  color: #fff !important;
  border-color: #444 !important;
  text-align: center;
}
.dpaf-table tbody td, .dpaf-table tbody th {
  text-align: center;
  vertical-align: middle;
  border-color: #ddd !important;
}
.dpaf-table.is-striped tbody tr:not(.is-selected):nth-child(even) {
  background: #fdf4ec;
}
.dpaf-best-row {
  background: #fff3e0 !important;
  font-weight: 700;
}
.dpaf-table tbody .dpaf-best-row td, .dpaf-table tbody .dpaf-best-row th {
  color: #c05000 !important;
}

/* ---------- BibTeX ---------- */
.bibtex-box {
  background: #1a1a1a;
  border: 1px solid #444;
  border-radius: 8px;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}
.bibtex-box pre {
  margin: 0;
  padding: 1.4rem 1.6rem;
  background: transparent;
}
.bibtex-box code {
  color: #a8d8a8;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  padding: 2rem 1.5rem;
}

/* ---------- Utility ---------- */
.spacer {
  height: 2rem;
}
.author-block {
  display: inline-block;
}
.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px;
}
.publication-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
