/* Light theme: white background, black accents */
:root {
  --text-main: #202124;
  --text-muted: #5f6368;
  --link-color: #1a73e8;
  --link-hover: #1557b0;
  --bg-color: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-elevated: #f1f3f4;
  --border-color: #dadce0;
  --accent-color: #202124;
  --accent-soft: rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Header Section */
.header {
  text-align: center;
  margin-bottom: 50px;
}

.title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  color: var(--text-main);
}

.conference {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 20px;
}

.authors {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text-main);
}

.author {
  display: inline-block;
  margin: 0 4px;
}

.affiliations {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--text-main);
  color: var(--bg-color);
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--text-main);
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn:hover {
  background-color: #000;
  border-color: #000;
  color: var(--bg-color);
  text-decoration: none !important;
}

.btn-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: var(--bg-secondary) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
}

.btn-disabled:hover {
  background-color: var(--bg-secondary) !important;
  border-color: var(--border-color) !important;
  color: var(--text-muted) !important;
}

/* Figure Wrapper */
.figure-wrapper {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}

.figure-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Teaser & Pipeline */
.teaser,
.pipeline {
  margin-bottom: 50px;
}

.caption {
  font-size: 14px;
  color: var(--text-muted);
  text-align: justify;
  line-height: 1.6;
}

/* Typography & Sections */
section {
  margin-bottom: 40px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--text-main);
  opacity: 0.9;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
  color: var(--text-main);
}

p {
  margin-bottom: 15px;
  text-align: justify;
  color: var(--text-main);
}

/* Highlights Box */
.highlights {
  background-color: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--text-main);
}

.highlights ul {
  padding-left: 20px;
}

.highlights li {
  margin-bottom: 8px;
  color: var(--text-main);
}

/* Results Grid */
.results {
  margin-bottom: 50px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.metric-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 25px 20px;
  text-align: center;
}

.metric-box h3 {
  font-size: 32px;
  color: var(--text-main);
  margin-bottom: 5px;
}

.metric-box p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* Citation */
pre {
  background-color: var(--bg-secondary);
  padding: 15px;
  border-radius: 8px;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  color: var(--text-main);
}

pre code {
  color: var(--text-main);
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .title {
    font-size: 28px;
  }
}
