/* ==========================================================================
   ADAMIXTURE Showcase - Minimalist Academic Style
   Inspired by https://joansaurina.github.io/
   ========================================================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background-color: #ffffff;
  color: #212529;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.main-wrapper {
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

/* Header */
.header-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.display-title {
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #212529;
}

.display-title strong {
  font-weight: 700;
}

.subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 1.25rem;
  text-align: center;
}

.logo-container {
  text-align: center;
  margin-top: 1.75rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.intro-logo {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Typography & Links */
.blue-link {
  color: #007bff !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.blue-link:hover {
  color: #0056b3 !important;
  text-decoration: underline;
}

.neutral-link {
  color: #495057 !important;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  cursor: pointer;
}

.neutral-link:hover {
  color: #212529 !important;
  text-decoration: underline;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  display: inline;
}

p {
  text-align: justify;
  margin-bottom: 1rem;
  font-size: 1rem;
}

h4 {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 24px;
  font-size: 1.5rem;
  font-weight: normal;
  color: #212529;
}

h5.case-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  color: #212529;
}

/* Case Items */
.case-item {
  margin-bottom: 2.75rem;
  padding-bottom: 1.5rem;
}

.case-item:not(:last-child) {
  border-bottom: 1px dashed #e9ecef;
}

.case-authors, .case-venue {
  font-size: 0.95rem;
  color: #495057;
  margin-bottom: 0.5rem;
  text-align: left;
}

.case-description {
  margin-top: 0.75rem;
  margin-bottom: 0.9rem;
}

.case-links {
  margin-top: 1rem;
  display: flex;
  gap: 15px;
  font-size: 0.95rem;
}

/* Figures */
.figure-container {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.img-thumbnail {
  max-width: 100%;
  height: auto;
  border: 1px solid #dee2e6;
  padding: 4px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.075);
  display: inline-block;
}

.img-zoomable {
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
}

.img-zoomable:hover {
  opacity: 0.85;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.caption {
  display: block;
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

/* Code & BibTeX */
.bibtex-code {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 14px 16px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #212529;
  overflow-x: auto;
  margin-bottom: 0.8rem;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-wrapper {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -38px;
  right: 0;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
}

.lightbox-close:hover {
  color: #ccc;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.lightbox-caption-text {
  color: #fff;
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
}

@media (max-width: 768px) {
  .display-title {
    font-size: 1.85rem;
  }
  p {
    text-align: left;
  }
}
