/* Custom styles for Talking Points project page */

:root {
  --primary-color: #004B87;
  --accent-color: #5a6268;
  --background-color: #f5f5f5;
  --card-background: #ffffff;
  --text-color: #363636;
}

body {
  font-family: 'Noto Sans', sans-serif;
  background-color: var(--background-color);
}

.hero {
  background-color: var(--card-background);
}

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

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

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

.publication-venue {
  font-size: 1.8rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

.publication-links .button {
  margin: 0.25rem;
  font-weight: 600;
}

.publication-links .button .icon {
  margin-right: 0.25rem;
}

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

.teaser {
  padding: 2rem 0;
}

.teaser .container {
  max-width: 900px;
}

.teaser-question {
  font-style: italic;
  font-size: 1.15rem;
  color: #555;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.teaser-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teaser-caption {
  font-size: 1rem;
  color: #444;
  text-align: justify;
  margin-top: 1.5rem;
  line-height: 1.7;
  padding: 0 1rem;
}

.section {
  padding: 3rem 1.5rem;
}

.section-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.abstract-content {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
}

.method-image {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.method-description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.results-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.result-item {
  background: var(--card-background);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.result-item img {
  width: 100%;
  border-radius: 4px;
}

.result-caption {
  font-size: 0.95rem;
  color: #666;
  margin-top: 0.75rem;
  text-align: center;
}

.bibtex-section {
  background-color: #fafafa;
}

.bibtex-container {
  position: relative;
  background-color: #2d2d2d;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.bibtex-code {
  color: #f8f8f2 !important;
  background-color: transparent !important;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.copy-button {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #444;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.copy-button:hover {
  background: #555;
}

.copy-button.copied {
  background: #27ae60;
}

.footer {
  background-color: var(--card-background);
  padding: 2rem 1.5rem;
}

.footer-content {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

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

.university-logo {
  height: 80px;
  margin-bottom: 1.5rem;
}

.interpolation-panel {
  background: var(--card-background);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Video placeholder styles */
.video-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  color: white;
  margin: 1.5rem 0;
}

.video-placeholder .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.video-placeholder p {
  font-size: 1.1rem;
  opacity: 0.9;
}

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

  .publication-authors {
    font-size: 1rem;
  }

  .teaser-question {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .abstract-content {
    font-size: 1rem;
    text-align: left;
  }

  .bibtex-code {
    font-size: 0.75rem;
  }
}

/* Animation for copy button */
@keyframes checkmark {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.copy-button.copied .fa-check {
  animation: checkmark 0.3s ease-out;
}

/* Highlight box for key concepts */
.highlight-box {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
  border-left: 4px solid var(--primary-color);
  padding: 1.25rem;
  margin: 1rem 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Method cards */
.method-card {
  background: var(--card-background);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.method-card h4 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.method-card p {
  line-height: 1.7;
  color: #555;
}

/* Description comparison styles */
.comparison-example {
  background: var(--card-background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.description-table {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.description-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.description-row:last-child {
  border-bottom: none;
}

.method-label {
  flex-shrink: 0;
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 80px;
  text-align: center;
}

.description-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
  margin: 0;
}

/* Responsive for comparison examples */
@media screen and (max-width: 768px) {
  .comparison-example .columns {
    flex-direction: column;
  }

  .comparison-example .column.is-4 {
    margin-bottom: 1rem;
  }

  .description-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .method-label {
    align-self: flex-start;
  }
}
