/* CHASE Project Page - Custom Styles */

/* ===== Base Styles ===== */
:root {
  --primary-color: #3273dc;
  --success-color: #48c774;
  --warning-color: #ffdd57;
  --danger-color: #f14668;
  --info-color: #3298dc;
  --dark-color: #363636;
  --light-bg: #f5f5f5;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Hero Section ===== */
.hero.is-light {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
}

.publication-title {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.publication-authors {
  font-weight: 500;
}

.publication-authors a {
  color: var(--primary-color);
  text-decoration: none;
}

.publication-authors a:hover {
  text-decoration: underline;
}

.author-block {
  display: inline-block;
  margin: 0 0.25rem;
}

/* ===== Highlight Box (Key Results) ===== */
.has-background-dark {
  background-color: #1a1a2e !important;
}

.highlight-box {
  padding: 1.5rem;
}

.highlight-box .title {
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* ===== Section Styling ===== */
.section {
  padding: 4rem 1.5rem;
}

.section h2.title {
  margin-bottom: 2rem;
  position: relative;
}

.section h2.title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--primary-color);
  margin-top: 0.75rem;
  border-radius: 2px;
}

/* ===== Tables ===== */
.table-container {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.table {
  margin-left: auto;
  margin-right: auto;
}

.table th {
  background-color: #f0f0f0;
}

.table tr.is-selected {
  background-color: #e8f4fd;
}

.table tr.is-selected td {
  color: var(--dark-color);
}

/* ===== Boxes ===== */
.box {
  border-left: 4px solid var(--primary-color);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.box .title.is-5 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== Timeline ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #dbdbdb;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #dbdbdb;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dbdbdb;
}

.timeline-marker.is-info {
  background: var(--info-color);
  box-shadow: 0 0 0 2px var(--info-color);
}

.timeline-marker.is-success {
  background: var(--success-color);
  box-shadow: 0 0 0 2px var(--success-color);
}

.timeline-marker.is-warning {
  background: var(--warning-color);
  box-shadow: 0 0 0 2px var(--warning-color);
}

.timeline-marker.is-danger {
  background: var(--danger-color);
  box-shadow: 0 0 0 2px var(--danger-color);
}

.timeline-content .heading {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #7a7a7a;
  margin-bottom: 0.25rem;
}

/* ===== Report Details (Expandable) ===== */
.report-details {
  margin: 1.5rem 0;
}

.report-details summary {
  cursor: pointer;
  list-style: none;
}

.report-details summary::-webkit-details-marker {
  display: none;
}

.report-details summary .button {
  width: 100%;
  justify-content: center;
}

.report-details[open] summary .button {
  border-radius: 6px 6px 0 0;
}

.report-content {
  /* background: #1e1e1e; */
  border: 1px solid #3298dc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  padding: 1rem;
  overflow: hidden;
}

/* .report-content pre {
  margin: 0;
  padding: 1.5rem;
  background: transparent;
  overflow-x: auto;
}

.report-content code {
  color: #e0e0e0;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
} */

/* ===== BibTeX Section ===== */
.bibtex-container {
  position: relative;
  background: #1e1e1e;
  border-radius: 6px;
  padding: 1rem;
}

.bibtex-container pre {
  margin: 0;
  padding: 0.5rem;
  background: transparent;
  overflow-x: auto;
}

.bibtex-container code {
  color: #e0e0e0;
  font-size: 0.9rem;
}

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

.copy-button.copied {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

/* ===== Notifications ===== */
.notification {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.notification .icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notification p {
  margin: 0;
}

/* ===== Scroll to Top Button ===== */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-to-top:hover {
  background: #2366d1;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== Footer ===== */
.footer {
  background-color: #f5f5f5;
  padding: 3rem 1.5rem;
}

.footer p {
  color: #7a7a7a;
  font-size: 0.9rem;
}

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

/* ===== Image Placeholders ===== */
figure.image .notification {
  border: 2px dashed #dbdbdb;
  border-radius: 6px;
}

figure img {
  width: 100%;
  height: auto;
  max-width: 700px;
}

/* ===== Responsive Adjustments ===== */
@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 1.75rem !important;
  }

  .section {
    padding: 3rem 1rem;
  }

  .highlight-box .title {
    font-size: 2rem !important;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item {
    padding-left: 1rem;
  }

  .scroll-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  animation: fadeInUp 0.6s ease-out;
}

/* ===== Print Styles ===== */
@media print {
  .scroll-to-top,
  .copy-button {
    display: none !important;
  }

  .section {
    page-break-inside: avoid;
  }
}
