/* ===========================================================================
   AVTok project page — companion styles (used alongside Bulma)
   =========================================================================== */

:root {
  --avtok-blue: #2b6cb0;
  --avtok-cyan: #2bb0c0;
  --avtok-green: #2faf6a;
  --avtok-ink: #363636;
}

body {
  font-family: 'Noto Sans', 'Google Sans', sans-serif;
  color: var(--avtok-ink);
}

.footer .icon-link {
  font-size: 25px;
  color: #000;
}

/* ---- Title block ---------------------------------------------------------- */
.publication-title {
  font-family: 'Google Sans', sans-serif;
  letter-spacing: -0.5px;
}
/* items 1 & 5 */
.publication-title .avtok-mark {
  font-weight: 800;
  background: linear-gradient(to right, var(--avtok-blue), var(--avtok-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.publication-authors {
  font-family: 'Google Sans', sans-serif;
}
.publication-authors a:link,
.publication-authors a:visited {
  color: var(--avtok-blue);
}
.author-block { white-space: nowrap; }
.affiliation-block { margin-top: 0.4rem; }

/* ---- Link buttons --------------------------------------------------------- */
.publication-links { margin-top: 1.2rem; }
.publication-links .button {
  border-radius: 999px;
  transition: transform 0.12s ease;
}
.publication-links .button:hover { transform: translateY(-2px); }

/* ---- Section headings (item 5: medium weight instead of Bulma's 600) ----- */
.section-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500 !important;
}

/* ---- Contributions list (item 6) ----------------------------------------- */
.contributions-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contributions-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.97rem;
  line-height: 1.5;
}
.contributions-list li:last-child { border-bottom: none; }
.contributions-list .contrib-num {
  flex-shrink: 0;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--avtok-blue), var(--avtok-green));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* ---- Table placeholders (item 8) ----------------------------------------- */
.table-placeholder {
  border: 2px dashed #ccc;
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  background: #fafafa;
}
.table-placeholder code { font-size: 0.85rem; }

/* ---- Figures -------------------------------------------------------------- */
figure.fig img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}
figure.fig figcaption {
  font-size: 0.92rem;
  color: #555;
  margin-top: 0.6rem;
  line-height: 1.45;
}

/* ---- Video gallery -------------------------------------------------------- */
.gallery-tabs { margin-bottom: 1.5rem; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .video-grid { grid-template-columns: 1fr; } }

.video-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 1px 4px rgba(0,0,0,0.18);
  cursor: pointer;
  aspect-ratio: 1 / 1;
}
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* state badges */
.video-card .badge {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.55);
  border-radius: 999px;
  pointer-events: none;
  backdrop-filter: blur(2px);
}
.video-card .badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #bbb;
}
.video-card.is-audio .badge .dot { background: var(--avtok-green); }

/* sound icon that toggles muted/unmuted */
.video-card .sound-icon {
  position: absolute;
  bottom: 8px; right: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.video-card .vlabel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 10px 6px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-card.is-active { outline: 3px solid var(--avtok-blue); outline-offset: -3px; }

/* ---- Reconstruction: GT | AVTok side-by-side pair ------------------------- */
.recon-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 600px) { .recon-grid { grid-template-columns: 1fr; } }

.pair-card { aspect-ratio: auto; }
.pair-card .pair-views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #000;
}
.pair-card .pair-view {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.pair-card .pair-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pair-card .pair-tag {
  position: absolute;
  top: 6px; left: 6px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.6);
  border-radius: 4px;
  pointer-events: none;
}
.pair-card .pair-view:last-child .pair-tag {
  background: linear-gradient(to right, var(--avtok-blue), var(--avtok-green));
}

.gallery-hint {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}
.gallery-empty {
  padding: 2rem;
  text-align: center;
  color: #888;
  border: 1px dashed #ccc;
  border-radius: 8px;
}

/* ---- BibTeX --------------------------------------------------------------- */
.bibtex-block pre {
  background: #f5f5f7;
  border-radius: 8px;
  padding: 1.1rem 1.25rem;
  font-size: 0.85rem;
  overflow-x: auto;
  text-align: left;
}

/* ---- Figure caption leading keyword — blue-to-green gradient -------------- */
b.fig-keyword {
  background: linear-gradient(to right, var(--avtok-blue), var(--avtok-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ---- Lighter bold (font-weight 600 instead of browser default 700) -------- */
b, strong { font-weight: 600; }

/* ---- Tables --------------------------------------------------------------- */
.results-table-wrap { overflow-x: auto; }
.results-table-wrap figcaption { margin-top: 0.8rem; }
