/* ============================================
   COinCO Project Page - Custom Styles
   ============================================ */

body {
  font-family: 'Noto Sans', sans-serif;
  color: #333;
}

/* Hero gradient background */
.hero-gradient {
  background: linear-gradient(135deg, #fefefe 0%, #f0f0f5 50%, #e8eaf0 100%);
}

/* Accent color for title keywords */
.accent-text {
  color: #BA0C2F;
  font-weight: 700;
}

/* Section titles with subtle underline */
.section-title {
  position: relative;
  display: block;
  text-align: center;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem !important;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: #BA0C2F;
  border-radius: 2px;
}

/* ---- Publication Header ---- */

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.publication-authors {
  font-family: 'Google Sans', sans-serif;
}

.publication-authors a {
  color: hsl(204, 86%, 53%) !important;
}

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

.author-block {
  display: inline-block;
}

.eql-cntrb {
  font-size: 0.95rem;
  color: #666;
}

/* ---- Publication Links (buttons) ---- */

.publication-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.link-block a {
  margin-top: 5px;
  margin-bottom: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-block a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.publication-links .button.is-dark {
  background-color: #363636;
  transition: all 0.2s ease;
}

.publication-links .button.is-dark:hover {
  background-color: #BA0C2F;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(186, 12, 47, 0.3);
}

/* ---- Venue & Awards ---- */

.publication-venue {
  color: #555;
  width: fit-content;
  font-weight: bold;
}

.publication-awards {
  color: #ff3860;
  width: fit-content;
  font-weight: bolder;
}

/* ---- Banner ---- */

.publication-banner {
  max-height: parent;
}

.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

/* ---- Video ---- */

.publication-video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 10px !important;
}

.publication-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ---- Teaser ---- */

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

.teaser {
  font-family: 'Google Sans', sans-serif;
}

.dnerf {
  font-variant: small-caps;
}

/* ============================================
   Carousel
   ============================================ */

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  padding: 20px;
  font-size: 0;
}

.results-carousel .item img {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.results-carousel .item img:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.results-carousel video {
  margin: 0;
}

.slider-pagination .slider-page {
  background: #000000;
}

/* ============================================
   Explore More Cards
   ============================================ */

.explore-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
}

.explore-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.explore-card:hover .explore-card-inner {
  border-color: #BA0C2F;
  box-shadow: 0 6px 20px rgba(186, 12, 47, 0.1);
  transform: translateY(-3px);
}

.explore-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #BA0C2F, #d4374e);
  color: #fff;
  font-size: 1.2rem;
}

.explore-card-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #222;
}

.explore-card-desc {
  font-size: 0.85rem;
  color: #888;
  line-height: 1.4;
}

.explore-arrow {
  margin-left: auto;
  color: #ccc;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.explore-card:hover .explore-arrow {
  color: #BA0C2F;
  transform: translateX(3px);
}

/* ============================================
   Section Polish
   ============================================ */

.section img,
.hero img {
  border-radius: 6px;
}

.section {
  padding: 3rem 1.5rem;
}

.content.has-text-justified {
  font-size: 1.05rem;
  line-height: 1.8;
}

.subtitle {
  color: #666;
  font-size: 0.95rem;
}

/* ============================================
   BibTeX
   ============================================ */

#BibTeX pre {
  text-align: left;
  background: #fff;
  padding: 1.25rem;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.6;
}

.copy-bibtex {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 6px;
}

.copy-bibtex:hover {
  background-color: #BA0C2F;
  color: #fff;
  border-color: #BA0C2F;
}

/* ============================================
   Code blocks
   ============================================ */

pre code.language-python {
  font-size: 14px !important;
}

pre code .number,
pre .number {
  display: inline !important;
  font-size: inherit !important;
  margin-right: 0;
  padding: 0;
  text-align: left;
  min-width: 0;
  height: auto;
  background-color: inherit;
}

/* ============================================
   Sub-page Navigation
   ============================================ */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #888;
  font-size: 0.9rem;
  font-family: 'Google Sans', sans-serif;
  text-decoration: none;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #BA0C2F;
  border-color: #BA0C2F;
  background: rgba(186, 12, 47, 0.04);
  transform: translateX(-3px);
}

.back-link .icon {
  font-size: 0.8rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding: 2rem 1.5rem;
  background-color: #f5f5f5;
  border-top: 1px solid #eee;
}

.footer p {
  font-size: 0.85rem;
  color: #999;
}

.footer a {
  color: #777;
}

.footer a:hover {
  color: #BA0C2F;
}
