/* SymHPR Project Page Styles - Green/Blue Theme (Adapted) */

:root {
  --primary-color: #2e7d32;
  --symhpr-color: #1565c0;
  --text-color: #0f172a;
  --text-secondary: #475569;
  --bg-page: #f8fafc;
  --highlight-gold: #e8f5e9;
  --highlight-blue: #e3f2fd;
  --border-light: #e5e7eb;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-color);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 0 2rem;
}

/* Typography Hierarchy */
h1.title, h2.title, h3.title, .title {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700 !important;
  color: var(--text-color);
  letter-spacing: -0.02em;
}

.publication-title {
  font-size: 2.25rem !important;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

strong {
  font-weight: 600;
  color: var(--text-color);
}

em {
  font-style: italic;
  color: inherit;
}

/* Hero Section */
.hero {
  background: transparent;
}

.hero-body {
  padding: 3rem 1.5rem 2rem;
}

.hero .container,
.hero.teaser .container,
.section .container {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 1rem;
  margin-top: 0;
}

.hero .container {
  border-top: 2px solid #0f172a;
  padding-top: 2rem;
  margin-top: 1rem;
}

.hero.teaser .container {
  border-top: 1px solid #0f172a;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.section .container {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}

.hero.teaser {
  border: none;
  padding-bottom: 2rem;
}

.hero.teaser .hero-body {
  padding-top: 2rem;
  padding-bottom: 0;
}

.section {
  padding: 0 1.5rem 1.5rem;
  border: none;
  background-color: transparent !important;
}

/* SymHPR Brand - Gradient Text */
.highlight-text {
  background: linear-gradient(120deg, var(--primary-color) 0%, var(--symhpr-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.publication-authors {
  margin-top: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.author-block {
  display: inline-block;
  margin-right: 0.3rem;
}

.author-block a {
  color: var(--text-secondary);
  text-decoration: none;
}

.author-block a:hover {
  color: var(--primary-color);
}

.affiliations {
  margin-top: 0.8rem;
  color: var(--text-secondary);
}

.affiliations .author-block {
  margin-right: 1.2rem;
}

/* Publication Links - Modern Button Style */
.publication-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.link-block {
  margin: 0;
}

.external-link {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.external-link .icon {
  margin-right: 0.4rem;
}

.external-link .icon i {
  font-size: 1.05rem;
}

.button.is-dark {
  background-color: #ffffff;
  border: 2px solid #111827;
  color: #111827 !important;
  padding: 0.7rem 1.5rem;
  height: auto;
  transition: all 0.2s ease;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
  border-radius: 32px;
}

.button.is-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.18);
  background-color: #111827;
  color: #ffffff !important;
  border-color: #111827;
}

.button.is-dark:active {
  transform: translateY(0);
  background-color: #0d1324;
  border-color: #0d1324;
}

.button.is-dark .icon i {
  color: inherit;
}

/* SymHPR Green Button */
.button.is-symhpr {
  background-color: #ffffff;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.7rem 1.5rem;
  height: auto;
  transition: all 0.25s ease;
  box-shadow: 0 12px 32px rgba(46, 125, 50, 0.12);
  border-radius: 32px;
}

.button.is-symhpr:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(46, 125, 50, 0.22);
}

.button.is-symhpr:active {
  transform: translateY(0);
}

/* Teaser Section */
.hero.teaser .teaser-image img {
  max-width: 80%;
  margin: 0 auto;
  display: block;
}

.hero.teaser .subtitle {
  font-size: 1rem;
  margin-top: 1.25rem;
  line-height: 1.8;
  padding: 0;
  color: var(--text-color);
  font-weight: 400;
  text-align: left !important;
}

/* Section Titles */
h2.title.is-3 {
  margin-bottom: 1.5rem;
  font-size: 1.85rem;
  text-align: left !important;
}

h2.title.is-3::after {
  display: none;
}

h3.title.is-4 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.15rem;
  color: var(--text-color);
  text-align: left;
}

h4.title.is-5 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--symhpr-color);
}

/* Content Styles */
.content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: var(--text-color);
  letter-spacing: -0.01em;
  text-align: left;
}

.content.has-text-justified {
  text-align: left !important;
}

.content.has-text-centered {
  text-align: left !important;
}

.content ul {
  margin-left: 1.5rem;
  margin-top: 0.75rem;
}

.content ul li {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  line-height: 1.8;
  color: var(--text-color);
  letter-spacing: -0.01em;
}

.method-details {
  margin-top: 1rem;
  background-color: rgba(46, 125, 50, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--primary-color);
}

.key-findings {
  margin-top: 1rem;
  background-color: rgba(21, 101, 192, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--symhpr-color);
}

.analysis-content {
  margin-top: 1rem;
}

/* Table Styles - Light Theme with Green/Blue Accents */
.table-container {
  overflow-x: auto;
  margin: 1.5rem auto;
}

.results-table {
  font-size: 0.95rem;
  border-collapse: collapse;
  background: white;
}

.results-table th {
  background-color: #f5f7fa !important;
  color: var(--text-color) !important;
  font-weight: 700;
  text-align: center !important;
  padding: 0.9rem 0.75rem !important;
  border-bottom: 2px solid #ddd !important;
  white-space: nowrap;
}

.results-table td {
  text-align: center !important;
  vertical-align: middle !important;
  padding: 0.7rem 0.75rem !important;
  border-color: #eee;
  color: var(--text-color);
}

.results-table td:first-child {
  text-align: left !important;
  white-space: nowrap;
  font-size: 0.95rem;
}

.results-table tbody tr:hover {
  background-color: #f8fbff;
}

/* Highlighted Rows - SymHPR results (Green tint) */
.results-table tr.is-highlighted {
  background-color: var(--highlight-gold) !important;
}

.results-table tr.is-highlighted:hover {
  background-color: #c8e6c9 !important;
}

/* Section header rows */
.results-table tr.section-header td {
  background-color: #f5f7fa !important;
  font-style: italic;
  color: #6b7280;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
}

/* Section divider row */
.results-table tr.section-divider td {
  background-color: #f0f0f0 !important;
  padding: 0.2rem !important;
  height: 4px;
}

/* Figure Styles */
figure.image {
  margin: 1.5rem auto;
  text-align: center;
}

figure.image img,
figure.image embed {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid rgba(229, 231, 235, 0.8);
}

figure.image:hover img,
figure.image:hover embed {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

figure.image figcaption {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* BibTeX */
#BibTeX {
  padding: 1rem 1.5rem;
}

#BibTeX pre {
  background-color: #f8fafc;
  padding: 1.35rem;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.65;
  border: 1px solid var(--border-light);
}

#BibTeX code {
  background-color: transparent;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
}

#BibTeX h2.title::after {
  display: none;
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  background-color: transparent;
  border-top: none;
}

.footer .content {
  text-align: left;
}

.footer p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer a {
  color: var(--text-color);
  text-decoration: underline;
}

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

/* Responsive */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.5rem !important;
    line-height: 1.35;
  }

  .hero.teaser .subtitle {
    padding: 0;
    font-size: 0.9rem;
  }

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

  .results-table th,
  .results-table td {
    padding: 0.4rem 0.3rem !important;
  }

  .section {
    padding: 2rem 1rem;
  }

  h2.title.is-3 {
    font-size: 1.5rem;
  }
}

@media screen and (min-width: 769px) {
  body {
    padding-top: 0;
  }
}

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

/* Container max width adjustment */
.container.is-max-desktop {
  max-width: 1040px;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 100%);
  border-left: 3px solid var(--primary-color);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

/* Columns spacing */
.columns {
  margin-top: 0;
  margin-bottom: 0;
}

/* Better link styling in content */
.content a {
  color: var(--symhpr-color);
  text-decoration: none;
}

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

/* Sup styling */
.publication-authors sup {
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
  color: var(--text-secondary);
}

/* Code styling */
code {
  background-color: #e8f5e9;
  color: var(--primary-color);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* Override centered text to left align */
.has-text-centered {
  text-align: left !important;
}

/* Keep some elements centered */
h2.title.is-3.has-text-centered {
  text-align: left !important;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  margin: 30px auto;
  padding: 10px 60px;
}

.carousel-small {
  max-width: 95%;
}

.carousel-large {
  max-width: 100%;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-slide {
  display: none;
  text-align: center;
  animation: fadeIn 0.5s;
}

.carousel-slide.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(46, 125, 50, 0.7);
  color: white;
  border: none;
  padding: 16px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: rgba(21, 101, 192, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  text-align: center;
  padding: 20px 0;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot:hover {
  background-color: #999;
}

.dot.active {
  background-color: var(--primary-color);
  width: 14px;
  height: 14px;
}

.carousel-slide .img-responsive {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.carousel-large .img-responsive {
  max-width: 1200px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .carousel-container {
    padding: 20px 50px;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    padding: 10px;
    font-size: 14px;
  }
}
