/* Notes-to-Self project page styles */

body {
  font-family: 'Noto Sans', 'Google Sans', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
}

/* ---------- Hero ---------- */

.hero {
  background: #ffffff;
}

.publication-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  letter-spacing: -1px;
  background: linear-gradient(90deg, #2c3e50 0%, #4a6fa5 50%, #6c8eb8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem !important;
}

.publication-subtitle {
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  color: #444;
  margin-bottom: 1.75rem !important;
}

.publication-authors {
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.publication-authors .author-block {
  margin: 0 0.4rem;
}

.publication-authors a {
  color: #1f4e79;
  text-decoration: none;
}

.publication-authors a:hover {
  color: #4a6fa5;
  text-decoration: underline;
}

.publication-affiliation {
  color: #666;
  margin-bottom: 1rem;
}

.venue-badge {
  margin: 1rem 0 1.75rem 0;
}

.venue-badge .tag.is-primary {
  background: #1f4e79;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.publication-links .link-block {
  margin: 0 0.25rem;
}

.publication-links .button.is-dark {
  background: #1a1a1a;
  border-color: #1a1a1a;
  transition: transform 0.15s ease;
}

.publication-links .button.is-dark:hover {
  background: #4a6fa5;
  border-color: #4a6fa5;
  transform: translateY(-2px);
}

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

.hero.teaser {
  padding: 0 1.5rem 2rem;
}

.teaser-figure {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  background: #f5f5f5;
}

.figure-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fafafa;
}

.hero.teaser .subtitle {
  margin-top: 1.5rem;
  color: #444;
  font-weight: 400;
  line-height: 1.6;
}

.highlight {
  background: linear-gradient(120deg, rgba(74, 111, 165, 0.18) 0%, rgba(74, 111, 165, 0.18) 100%);
  background-repeat: no-repeat;
  background-size: 100% 50%;
  background-position: 0 88%;
  padding: 0 2px;
  font-weight: 600;
  color: #1f4e79;
}

/* ---------- Sections ---------- */

.section {
  padding: 3.5rem 1.5rem;
}

.section.section-light {
  background: #f8fafc;
}

.section .title.is-3 {
  font-family: 'Google Sans', sans-serif;
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: #1a1a1a;
}

.section-intro {
  margin-bottom: 2rem;
}

.content p {
  line-height: 1.7;
  color: #2c2c2c;
}

.content code {
  background: #eef1f6;
  color: #1f4e79;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.92em;
}

/* ---------- ClevrSkills-Mem tabs ---------- */

.task-tabs {
  margin-bottom: 1.5rem !important;
}

.task-tabs ul {
  border-bottom-color: #e0e6ef;
}

.task-tabs li a {
  color: #666;
  font-family: 'Google Sans', sans-serif;
  font-weight: 500;
  border-bottom-width: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.task-tabs li:hover a {
  color: #4a6fa5;
  border-bottom-color: #b8c8de;
}

.task-tabs li.is-active a {
  color: #1f4e79;
  border-bottom-color: #1f4e79;
}

.task-panel {
  display: none;
  padding: 1.5rem 0.5rem 0.5rem;
}

.task-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.task-panel .title.is-4 {
  font-family: 'Google Sans', sans-serif;
  color: #1f4e79;
  margin-bottom: 1rem;
}

.task-panel p {
  color: #2c2c2c;
  line-height: 1.7;
  margin-bottom: 0.9rem;
}

.task-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
  background: #f0f0f0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* memory-type tags */
.memory-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  margin-right: 0.4rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.memory-tag.spatial {
  background: #e3f0ff;
  color: #1f4e79;
}

.memory-tag.temporal {
  background: #fdecd6;
  color: #8a4a00;
}

/* ---------- Method ---------- */

.scratchpad-sections {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.scratchpad-sections li {
  background: #f4f7fb;
  border-left: 3px solid #4a6fa5;
  padding: 0.7rem 1rem;
  margin: 0.5rem 0;
  border-radius: 4px;
}

.math-inline {
  font-family: 'Castoro', 'Georgia', serif;
  font-style: italic;
}

.method-figure {
  margin: 2rem auto;
  text-align: center;
}

.method-figure img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
  background: #fafafa;
  min-height: 200px;
}

.method-figure figcaption {
  margin-top: 0.85rem;
  color: #666;
  font-size: 0.95rem;
  font-style: italic;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Rollouts ---------- */

.rollouts-heading {
  margin-top: 2.75rem !important;
  font-family: 'Google Sans', sans-serif;
  color: #1f4e79;
  border-left: 4px solid #1f4e79;
  padding-left: 0.75rem;
}

.rollout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 1rem;
}

.rollout-grid.real-world {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.result-tabs {
  margin-top: 1.5rem;
}

.result-panel {
  display: none;
  padding: 1.5rem 0.5rem 0.5rem;
}

.result-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.result-video-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.real-world-carousel {
  position: relative;
  max-width: 760px;
  margin: 1.5rem auto 1rem;
  padding: 0 3rem 2rem;
}

.carousel-track {
  overflow: hidden;
}

.carousel-slide {
  display: none;
}

.carousel-slide.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.carousel-button {
  position: absolute;
  top: calc(50% - 1rem);
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: #1f4e79;
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.carousel-button:hover {
  background: #173b5c;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #c8d3df;
  cursor: pointer;
}

.carousel-dot.is-active {
  background: #1f4e79;
}

@media screen and (max-width: 768px) {
  .real-world-carousel {
    padding: 0 0 2rem;
  }

  .carousel-button {
    top: auto;
    bottom: 0;
    transform: none;
    width: 2rem;
    height: 2rem;
    font-size: 1.5rem;
  }
}

.rollout-cell {
  display: flex;
  flex-direction: column;
}

.rollout-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  background: #f0f0f0;
}

.rollout-caption {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

/* ---------- Results table ---------- */

.results-table-wrapper {
  margin-top: 2rem;
}

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

.results-table thead th {
  background: #1f4e79;
  color: #fff;
  border: none;
}

.results-table .ours-row td {
  background: #fff7e6 !important;
}

.table-note {
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ---------- BibTeX ---------- */

#BibTeX pre {
  background: #1a1a1a;
  color: #f5f5f5;
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
}

#BibTeX code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Footer ---------- */

.footer {
  background: #fafafa;
  padding: 2rem 1.5rem;
}

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

.footer a {
  color: #4a6fa5;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 768px) {
  .publication-title {
    font-size: 2.5rem !important;
  }
  .publication-subtitle {
    font-size: 1.25rem !important;
  }
  .task-tabs ul {
    flex-wrap: wrap;
  }
  .task-tabs li {
    flex: 0 0 50%;
  }
}
