/* =============================================
   STAC Project Page Styles
   ============================================= */

:root {
  --color-text: #333;
  --color-text-light: #555;
  --color-link: #1a73e8;
  --color-link-hover: #1558b0;
  --color-bg: #fff;
  --color-bg-alt: #f8f9fa;
  --color-border: #dee2e6;
  --color-badge: #c62828;
  --max-width: 900px;
  --font-main: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================================
   Hero
   ============================================= */
.hero {
  text-align: center;
  padding: 72px 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.author sup {
  font-size: 0.7em;
  margin-left: 1px;
}

.affiliations {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.affiliations sup {
  font-size: 0.75em;
  margin-right: 2px;
}

.venue {
  margin-bottom: 24px;
}

.venue-badge {
  display: inline-block;
  background: var(--color-badge);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Link Buttons */
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid var(--color-text);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--color-text);
  color: #fff;
}

.btn i {
  font-size: 1.1em;
}

/* =============================================
   Teaser
   ============================================= */
.teaser {
  padding: 20px 0 40px;
}

.teaser img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* =============================================
   Content Sections
   ============================================= */
.section {
  padding: 40px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  text-align: center;
}

.abstract-text {
  font-size: 1rem;
  line-height: 1.8;
  text-align: justify;
  color: var(--color-text);
}

/* Figures */
.figure {
  margin: 16px 0;
}

.figure img {
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.figure-caption {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.5;
}

/* =============================================
   BibTeX
   ============================================= */
.bibtex-wrap {
  position: relative;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.bibtex {
  margin: 0;
  padding: 20px 24px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  color: var(--color-text);
}

.bibtex-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 0.8rem;
  font-family: var(--font-main);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.bibtex-copy:hover {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.bibtex-copy.copied {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

/* =============================================
   Footer
   ============================================= */
.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  border-top: 1px solid var(--color-border);
}

.footer a {
  color: #999;
  text-decoration: underline;
}

.footer a:hover {
  color: var(--color-text-light);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  .hero {
    padding: 48px 16px 24px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .authors {
    font-size: 0.95rem;
    gap: 2px 12px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .section h2 {
    font-size: 1.3rem;
  }

  .container {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.3rem;
  }

  .links {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 80%;
    justify-content: center;
  }
}
