/* MarkushGrapher-2 Website Styles */

:root {
  --primary: #2c6fbb;
  --primary-dark: #1a5599;
  --primary-light: #4a8ad4;
  --background: #ffffff;
  --text: #363636;
  --text-light: #7a7a7a;
  --success: #48c774;
  --success-light: #e8f5e9;
  --danger: #f14668;
  --danger-light: #ffebee;
  --border: #dbdbdb;
  --light-bg: #f5f5f5;
  --section-alt: #fafafa;
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #4a8ad4 0%, #2c6fbb 100%);
  --gradient-hero: linear-gradient(135deg, #e8f0fa 0%, #f5f7fa 50%, #e4e8eb 100%);
  --chem-accent: #0f9d58;
}

/* Global Styles */
body {
  font-family: 'Noto Sans', sans-serif;
  color: var(--text);
  line-height: 1.7;
}

.section {
  padding: 3rem 1.5rem;
}

/* Hero Section */
.hero.is-light {
  background: var(--gradient-hero);
  padding-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.hero.is-light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at top right, rgba(44, 111, 187, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.publication-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.publication-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.publication-venue {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.publication-authors {
  margin-bottom: 0.5rem;
}

.author-block {
  font-size: 1.1rem;
}

.author-block a.author-link {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1.5px dashed rgba(44, 111, 187, 0.4);
  padding-bottom: 1px;
  transition: all 0.2s ease;
}

.author-block a.author-link:hover {
  color: var(--primary-dark);
  border-bottom-style: solid;
  border-bottom-color: var(--primary-dark);
}

.publication-affiliations {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.affiliation-block {
  margin: 0 0.5rem;
  font-size: 0.95rem;
}

.publication-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.affiliation-logo {
  height: 40px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.affiliation-logo:hover {
  opacity: 1;
}

.publication-links {
  margin-top: 1rem;
}

.publication-links .button {
  margin: 0.25rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.publication-links .button.is-dark {
  background: linear-gradient(135deg, #363636 0%, #4a4a4a 100%);
}

.publication-links .button:hover {
  background: var(--gradient-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 111, 187, 0.35);
  color: white;
}

/* Banner Section */
.banner-section {
  background-color: var(--background);
  padding: 2rem 1.5rem 1rem;
}

.banner-image {
  max-width: 1050px;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}

/* Abstract Section */
.abstract-section {
  background-color: var(--section-alt);
}

.abstract-content {
  font-size: 1.05rem;
  text-align: justify;
}

.abstract-content p {
  margin-bottom: 1rem;
}

/* Motivation Section */
.motivation-section {
  background-color: var(--background);
}

.motivation-image {
  max-width: 800px;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.motivation-caption {
  margin-top: 1.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Contributions Section */
.contributions-section {
  background-color: var(--section-alt);
}

.contribution-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.contribution-card {
  background: var(--background);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.contribution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contribution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(44, 111, 187, 0.2);
}

.contribution-card:hover::before {
  opacity: 1;
}

.contribution-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contribution-card:hover .contribution-icon {
  transform: scale(1.1);
  color: var(--primary-light);
}

.contribution-card .title {
  margin-bottom: 0.75rem;
}

.contribution-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Video Section */
.video-section {
  background-color: var(--background);
}

.video-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow-hover);
}

.video-wrapper video {
  display: block;
  width: 100%;
  height: auto;
}

/* Architecture Section */
.architecture-section {
  background-color: var(--section-alt);
}

.pipeline-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.architecture-image {
  display: block;
  width: 100%;
  max-width: 1050px;   /* was 900px */
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.architecture-description {
  margin-top: 1.5rem;
  font-size: 1rem;
  text-align: justify;
  color: var(--text-light);
}

/* Stats Cards */
.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--background);
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary);
  position: relative;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Results Section */
.results-section {
  background-color: var(--background);
}

.results-block {
  margin-bottom: 3rem;
}

.results-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.results-table {
  font-size: 0.9rem;
}

.results-table th {
  background-color: #f0f0f0;
  font-weight: 600;
  white-space: nowrap;
}

.results-table .subsection-header {
  background-color: #fafafa;
}

.results-table .subsection-header td {
  font-weight: 500;
  color: var(--text-light);
  padding-top: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: none;
}

.results-table .best-row {
  background-color: #e3f2fd !important;
  border-left: 3px solid var(--primary);
}

/*
.results-table .best-row td {
  font-weight: 600;
}
*/

/* Qualitative Examples Gallery */
.qualitative-carousel {
  width: 100%;
  background: var(--light-bg);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.qualitative-headers {
  display: flex;
  margin-bottom: 0.4rem;
}

.qualitative-headers span {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
}

.qualitative-viewer {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem;
}

.qualitative-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
}

.qualitative-image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s ease;
  border-radius: 4px;
}

.qt-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--background);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qt-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(44, 111, 187, 0.3);
}

.qualitative-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  gap: 0.25rem;
}

.qualitative-counter {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.qualitative-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

@media (max-width: 768px) {
  .qt-nav {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* Citation Section */
.citation-section {
  background-color: var(--section-alt);
}

.citation-box {
  position: relative;
  background: var(--background);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.citation-box pre {
  background: transparent;
  padding: 0;
  margin: 0;
  overflow-x: auto;
}

.citation-box code {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text);
}

.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

/* Footer */
.footer {
  background-color: var(--light-bg);
  padding: 2rem 1.5rem;
}

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

.footer a:hover {
  text-decoration: underline;
}

/* Section Title Styling */
.title.is-3 {
  position: relative;
  display: inline-block;
  width: 100%;
}

.title.is-3::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Link styles */
a {
  color: var(--primary);
  transition: color 0.2s ease;
}

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

/* Table responsive wrapper */
.table-container {
  overflow-x: auto;
  margin: 1rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .publication-title {
    font-size: 2rem;
  }

  .publication-subtitle {
    font-size: 1.2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .results-table {
    font-size: 0.8rem;
  }

  .publication-logos {
    gap: 1rem;
  }

  .affiliation-logo {
    height: 30px;
  }
}
