/* Project-specific styling for the BiDexVLA page */

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --accent-gradient: linear-gradient(135deg, #2563eb, #7c3aed);
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-light: #64748b;
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-accent: #eef2ff;
  --border-color: #e2e8f0;
  --border-radius: 0.75rem;
  --border-radius-lg: 1.25rem;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 28px 65px rgba(15, 23, 42, 0.18);
  --transition: all 0.25s ease;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-secondary);
  background: var(--background-primary);
  scroll-behavior: smooth;
}

a {
  color: var(--primary-color);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

section.hero {
  padding: 4rem 0;
}

.hero.is-light {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.hero-body {
  padding: 4rem 1.5rem;
}

.hero.teaser .hero-body {
  padding-bottom: 2rem;
}

.publication-title {
  font-weight: 800 !important;
  color: var(--text-primary);
  line-height: 1.15 !important;
  margin-bottom: 1.5rem !important;
}

.publication-authors {
  color: var(--text-secondary);
  font-weight: 500;
}

.author-block {
  display: inline-block;
  margin-right: 0.5rem;
}

.publication-links .button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 1.25rem;
  transition: var(--transition);
}

.publication-links .button:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.teaser video {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.subtitle.has-text-centered {
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

.title.is-3 {
  font-weight: 700 !important;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem !important;
}

.title.is-3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 3px;
  background: var(--accent-gradient);
  border-radius: 999px;
}

.content.has-text-justified {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.content.has-text-justified p {
  margin-bottom: 0.9rem;
}

.abstract-card {
  padding: 2.75rem;
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.abstract-text {
  margin-bottom: 2.25rem;
}

.abstract-figure {
  margin: 0 auto;
  text-align: center;
  max-width: 640px;
}

.abstract-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}

.abstract-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.4;
}

.metric-value {
  color: var(--text-primary);
  font-weight: 700;
}

.method-figure {
  margin: 2.5rem auto;
  max-width: 960px;
  text-align: center;
}

.method-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.method-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.performance-group {
  margin-top: 3rem;
}

.video-section-subtitle {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-align: center;
}

.video-grid {
  display: grid;
  gap: 1.5rem;
}

.video-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.video-grid.three-col {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.video-grid.four-col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.video-card {
  background: var(--background-primary);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.video-card video {
  width: 100%;
  border-radius: var(--border-radius);
  background: #000;
  box-shadow: var(--shadow-sm);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.video-badge.baseline {
  background: #fee2e2;
  color: #b91c1c;
}

.video-badge.ours {
  background: #dcfce7;
  color: #166534;
}

.video-caption {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
}

.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copy-bibtex-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.copy-bibtex-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.copy-bibtex-btn.copied {
  background: #10b981;
}

.copy-bibtex-btn .copy-text::after {
  content: '';
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.scroll-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

footer.footer {
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 1.5rem;
}

footer.footer .content {
  color: var(--text-light);
  text-align: center;
}

@media screen and (max-width: 1024px) {
  section.hero {
    padding: 3rem 0;
  }

  .hero-body {
    padding: 3rem 1.25rem;
  }

  .video-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .video-grid.four-col {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .abstract-card {
    padding: 2.5rem;
  }
}

@media screen and (max-width: 768px) {
  .hero-body {
    padding: 2.5rem 1rem;
  }

  .publication-title {
    font-size: 2.4rem !important;
  }

  .publication-links .button {
    width: 100%;
    justify-content: center;
  }

  .title.is-3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .abstract-card {
    padding: 2.25rem 1.75rem;
  }

  .abstract-text {
    margin-bottom: 1.85rem;
  }

  .abstract-figure {
    max-width: 100%;
  }

  .video-grid,
  .video-grid.two-col,
  .video-grid.three-col,
  .video-grid.four-col {
    grid-template-columns: 1fr;
  }

  .video-card {
    padding: 1.25rem;
  }

  .method-figure {
    margin: 2rem auto;
  }

  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .hero-body {
    padding: 2rem 0.75rem;
  }

  .publication-title {
    font-size: 2rem !important;
  }

  .copy-bibtex-btn {
    width: 100%;
    justify-content: center;
  }

  .teaser video {
    border-radius: 1rem;
  }

  .abstract-card {
    padding: 2rem 1.5rem;
  }

  .abstract-text {
    margin-bottom: 1.5rem;
  }

  .abstract-figure figcaption {
    font-size: 0.9rem;
  }

  .video-card {
    padding: 1rem;
  }
}



