/* ===== Legato Academic Project Page — Custom Styles ===== */

:root {
  --primary: #2c3e50;
  --accent: #3498db;
  --accent-dark: #2980b9;
  --legato-color: #27ae60;
  --rtc-color: #e67e22;
  --bg-light: #f8f9fa;
  --bg-alt: #f0f2f5;
  --text: #2c3e50;
  --text-light: #6c757d;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
}

/* ===== Global ===== */
body {
  font-family: 'Google Sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.section {
  padding: 3.5rem 1.5rem;
}

/* ===== Hero ===== */
.hero.is-light {
  background: linear-gradient(135deg, #1a73e8 0%, #4fc3f7 100%);
  padding-bottom: 3rem;
}

.hero .hero-body {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  color: #fff !important;
  font-size: 2.8rem !important;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.publication-venue {
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  margin-top: 0.5rem;
  letter-spacing: 0.5px;
}

.author-block .author {
  color: rgba(255,255,255,0.9);
}

.publication-links .button {
  margin: 0 0.4rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.publication-links .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ===== Section Titles ===== */
.title.is-3 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.8rem;
}

.title.is-3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8, #4fc3f7);
  border-radius: 2px;
}

.title.is-4 {
  font-family: 'Google Sans', sans-serif;
  color: var(--primary);
  border-left: 4px solid #1a73e8;
  padding-left: 0.8rem;
}

/* ===== Abstract & Content ===== */
.content p {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ===== Video Cards ===== */
.video-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  border: none;
  margin-bottom: 1rem;
}

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

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

.video-card video {
  border-radius: 8px;
  background: #000;
}

/* Method labels */
.method-label {
  font-weight: 600 !important;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 0.8rem !important;
  font-size: 0.85rem !important;
}

.legato-label {
  background: rgba(39, 174, 96, 0.12);
  color: var(--legato-color);
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.rtc-label {
  background: rgba(230, 126, 34, 0.12);
  color: var(--rtc-color);
  border: 1px solid rgba(230, 126, 34, 0.3);
}

/* ===== Results Table ===== */
.table {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table thead th {
  background: #e3f2fd;
  color: #2c3e50 !important;
  font-weight: 600;
  border-bottom: 2px solid #bbdefb;
  padding: 0.7rem 0.5rem;
  white-space: nowrap;
}

.table tbody td {
  padding: 0.6rem 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

.table tfoot td {
  font-size: 1.05rem;
  padding: 1rem;
}

/* ===== BibTeX ===== */
.bibtex-box {
  background: #f5f7fa;
  color: #2c3e50;
  border: 1px solid #dde1e6;
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: var(--shadow);
  position: relative;
}

.bibtex-box code {
  color: #2c3e50;
  background: transparent;
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--bg-alt);
  color: var(--text-light);
}

.footer a {
  color: var(--accent);
}

/* ===== Alternating section backgrounds ===== */
section:nth-of-type(even) {
  background-color: var(--bg-alt);
}

section:nth-of-type(odd) {
  background-color: #fff;
}

.hero.is-light {
  background: linear-gradient(135deg, #1a73e8 0%, #4fc3f7 100%) !important;
}

/* ===== Scroll animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.title.is-4 .tag {
  vertical-align: middle;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

/* ===== Responsive ===== */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.8rem !important;
  }
  .hero .hero-body {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .section {
    padding: 2rem 1rem;
  }
}
