/* WorldAFX Project Page Styles */

:root {
  --accent: #2563eb;
  --accent-light: #dbeafe;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --section-alt: #f8fafc;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
}

/* ── Navbar ── */
.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text) !important;
  letter-spacing: -0.01em;
}

.nav-link {
  font-size: 0.875rem;
  color: var(--muted) !important;
}

.nav-link:hover {
  color: var(--accent) !important;
}

/* ── Hero ── */
#hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.paper-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.authors {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.affiliations {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.link-pills {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  transition: background 0.15s, color 0.15s;
}

.link-pill:hover {
  background: var(--accent);
  color: #fff;
}

.pill-icon-arxiv {
  height: 0.95em;
  width: auto;
  display: inline-block;
}

.link-pill.disabled {
  border-color: var(--border);
  color: var(--muted);
  pointer-events: none;
}

/* ── Sections ── */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background: var(--section-alt);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ── Abstract ── */
#abstract p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
}

/* ── Method ── */
.architecture-figure {
  max-width: 800px;
  margin: 2rem auto 0;
  display: block;
}

.architecture-figure img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.figure-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

/* ── Audio Tables ── */
.audio-example {
  margin-bottom: 2.5rem;
}

.example-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.badge-effect {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-content {
  font-size: 0.85rem;
  color: var(--muted);
}

.audio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.audio-table th {
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.audio-table td {
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

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

.audio-table audio {
  width: 180px;
  height: 36px;
}

/* ── BibTeX ── */
#citation pre {
  background: var(--section-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
  line-height: 1.6;
  overflow-x: auto;
  max-width: 720px;
  margin: 0 auto;
  color: var(--text);
}

/* ── Footer ── */
footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .paper-title { font-size: 1.6rem; }
  .audio-table audio { width: 130px; }
  .audio-table th, .audio-table td { padding: 0.5rem 0.25rem; }
}
