/* ============================================================
   StreamSplat – Project Page Styles
   ============================================================ */

/* ---------- Typography ---------- */
body {
  font-family: 'Noto Sans', sans-serif;
}

.title.is-1, .title.is-2 {
  font-family: 'Google Sans', sans-serif;
}

/* ---------- Brand Gradient ---------- */
.gradient-text {
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.gradient-text-alt {
  background: linear-gradient(135deg, #7209b7, #f72585);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero-body {
  padding-bottom: 2rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  line-height: 1.25;
}

.publication-authors {
  padding-bottom: 0.5rem;
}

.publication-authors a {
  color: hsl(204, 86%, 53%);
}

.publication-authors a:hover {
  text-decoration: underline;
}

.publication-venue {
  color: #f72585;
  font-weight: 600;
}

.publication-links .button {
  margin: 0.25rem;
}

/* ---------- Link buttons ---------- */
.external-link.button {
  transition: all 0.2s ease;
}

.external-link.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ---------- Section helpers ---------- */
.section {
  padding: 3rem 1.5rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  border-radius: 2px;
}

/* ---------- Teaser image ---------- */
.teaser-image {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.teaser-image:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
}

/* ---------- Feature cards ---------- */
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #333;
}

.feature-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Video section ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  background: #fff;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.video-card .video-caption {
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
  background: #fafafa;
}

/* Video subsection layout */
.video-subsection {
  margin-bottom: 3rem;
}

.video-subsection-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.video-subsection-desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.dataset-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  color: #fff;
}

.dataset-badge.davis {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.dataset-badge.re10k {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.dataset-badge.tracking {
  background: linear-gradient(135deg, #10b981, #059669);
}

/* Video showcase — single large video with scene pills */
.video-showcase {
  margin-top: 0.5rem;
}

.video-showcase .video-card {
  position: relative;
  cursor: pointer;
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.video-play-overlay .play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #fff;
  font-size: 1.4rem;
}

.video-play-overlay .play-icon.flash {
  opacity: 1;
  transform: scale(1);
}

.video-play-overlay .play-icon.fade-out {
  opacity: 0;
  transform: scale(1.1);
}

.video-showcase .showcase-video {
  display: none;
  width: 100%;
  border-radius: 0 0 12px 12px;
  aspect-ratio: 1764 / 1080;
  object-fit: contain;
  background: #000;
}

.video-showcase .showcase-video.active {
  display: block;
}

.scene-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #eee;
}

.scene-pill {
  border: none;
  background: #e8e8e8;
  color: #666;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.scene-pill:hover {
  background: #d0d0d0;
  color: #333;
}

.scene-pill.active {
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  color: #fff;
  box-shadow: 0 2px 8px rgba(114, 9, 183, 0.25);
}

/* ---------- Pipeline figure ---------- */
.pipeline-figure {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.pipeline-figure img {
  width: 100%;
  display: block;
}

/* ---------- Results figure cards ---------- */
.result-figure {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  background: #fff;
}

.result-figure img {
  width: 100%;
  display: block;
}

.result-figure .figure-caption {
  padding: 1rem 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #555;
  background: #fafafa;
  border-top: 1px solid #eee;
}

/* ---------- Quantitative Tables ---------- */
.results-table-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 2rem;
}

.results-table-container .table-header {
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  color: white;
  padding: 1rem 1.5rem;
  font-family: 'Google Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.results-table thead th {
  background: #f8f9fa;
  color: #333;
  font-weight: 600;
  padding: 0.85rem 0.7rem;
  border-bottom: 2px solid #e9ecef;
  text-align: center;
  font-size: 0.88rem;
}

.results-table tbody td {
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  vertical-align: middle;
}

.results-table tbody tr:hover {
  background: #f8faff;
  transition: background 0.2s;
}

.results-table tbody tr:last-child td {
  border-bottom: none;
}

.results-table .best {
  font-weight: 700;
  color: #d00;
}

.results-table .second-best {
  text-decoration: underline;
  color: #333;
}

.results-table .method-ours {
  background: linear-gradient(90deg, rgba(0, 180, 216, 0.08), rgba(114, 9, 183, 0.08));
  font-weight: 600;
}

.results-table .method-ours td:first-child {
  position: relative;
}

.results-table .method-ours td:first-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #00b4d8, #7209b7);
}

.table-note {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: #888;
  background: #fafafa;
}

/* ---------- BibTeX ---------- */
#BibTeX pre {
  background: #1e1e2e;
  color: #cdd6f4;
  border-radius: 12px;
  padding: 1.5rem;
  font-size: 0.88rem;
  overflow-x: auto;
  line-height: 1.6;
  position: relative;
}

.bibtex-copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cdd6f4;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.bibtex-copy-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

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

footer .icon-link {
  font-size: 1.3rem;
  color: #333;
  margin: 0 0.5rem;
  transition: color 0.2s;
}

footer .icon-link:hover {
  color: #00b4d8;
}

/* ---------- Scroll animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Contribution timeline ---------- */
.contribution-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contribution-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(114, 9, 183, 0.25);
}

.contribution-text {
  flex: 1;
}

.contribution-text h4 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #333;
}

.contribution-text p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- Tabs ---------- */
.tab-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.tab-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  border: 2px solid #ddd;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  color: #555;
}

.tab-btn:hover {
  border-color: #00b4d8;
  color: #00b4d8;
}

.tab-btn.active {
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  color: white;
  border: 2px solid transparent;
  background-origin: border-box;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Speed badge ---------- */
.speed-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  margin: 1rem 0;
  box-shadow: 0 4px 16px rgba(0, 180, 216, 0.3);
}

/* ---------- Parallax hero bg ---------- */
.hero-gradient-bg {
  background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 50%, #fff0f5 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(0, 180, 216, 0.06) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(114, 9, 183, 0.06) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-30px, -20px); }
}

/* ---------- Abstract highlight box ---------- */
.abstract-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border-left: 4px solid;
  border-image: linear-gradient(135deg, #00b4d8, #7209b7) 1;
}

/* ---------- Comparison section ---------- */
.comparison-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* ---------- Section separator ---------- */
.section-alt {
  background: #f8f9fb;
}

/* ---------- Responsive overrides ---------- */
@media (max-width: 768px) {
  .hero-body {
    padding: 2rem 1rem;
  }
  
  .publication-title {
    font-size: 1.5rem !important;
  }
  
  .abstract-box {
    padding: 1.25rem 1.5rem;
  }
  
  .feature-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ---------- 3D floating animation for teaser ---------- */
@keyframes float3d {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.floating {
  animation: float3d 4s ease-in-out infinite;
}

/* ---------- Custom scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #00b4d8, #7209b7);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7209b7;
}

/* ---------- Navbar ---------- */
.navbar {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Placeholder for future content ---------- */
.coming-soon-card {
  background: linear-gradient(135deg, #f0f7ff, #f5f0ff);
  border: 2px dashed #ccc;
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  color: #888;
}

.coming-soon-card h3 {
  color: #666;
  margin-bottom: 0.5rem;
}

.coming-soon-card .card-emoji {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* ---------- Collapsible architecture ---------- */
.architecture-details summary::-webkit-details-marker {
  display: none;
}

.architecture-details[open] summary span {
  display: none;
}

.architecture-details[open] summary::after {
  content: '▼ click to collapse';
  font-size: 0.6em;
  color: #999;
  margin-left: 0.5rem;
  font-weight: 400;
}
