/* ================================================
   Custom styles — niccolotonioni.github.io
   ================================================ */

/* --- Interest tag pills --- */
.interest-tags {
  margin-bottom: 1.5rem;
  line-height: 2.2;
}
.interest-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.07);
  border-radius: 999px;
  padding: 3px 10px;
  margin: 3px 4px 3px 0;
  font-size: 0.88rem;
  color: #444;
}

/* --- News timeline --- */
.news-timeline {
  position: relative;
  border-left: 2px solid #dfe6e9;
  padding-left: 28px;
  margin-top: 16px;
}
.news-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f2f6;
  transition: transform 0.2s ease, border-left-color 0.2s ease;
}
.news-card:hover {
  transform: translateX(5px);
  border-left: 3px solid #2cdda8;
}
.news-dot {
  position: absolute;
  left: -36px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2cdda8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #dfe6e9;
}
.news-card__date {
  font-size: 0.75rem;
  color: #b2bec3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.news-card__body {
  font-size: 0.92rem;
  color: #2d3436;
  line-height: 1.55;
}
.news-card__body p {
  margin: 4px 0 0;
  color: #636e72;
}
.news-card__links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.news-link {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(46, 139, 111, 0.1);
  color: #25b087;
  text-decoration: none !important;
  border-bottom: none !important;
  transition: background 0.15s ease;
}
.news-link:hover,
.news-link:visited,
.news-link:focus {
  background: rgba(46, 139, 111, 0.2);
  color: #25b087;
  text-decoration: none !important;
  border-bottom: none !important;
}

/* --- Task 6: Publication venue pills & author typography --- */
.pub-venue-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #444;
  margin-right: 6px;
  vertical-align: middle;
}
.pub-authors {
  font-size: 0.85rem;
  color: #666;
}

/* --- Task 7: Global spacing, link style, footer --- */
.page__content {
  max-width: 780px;
}

a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover {
  border-bottom-color: #1a1a1a;
}

.page__footer {
  font-size: 0.78rem;
  color: #aaa;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* --- Photo carousel --- */
.photo-carousel {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
  max-width: 680px;
}
.photo-carousel__track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}
.photo-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}
.photo-carousel__slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.photo-carousel__caption {
  padding: 0.5rem 0 0.6rem;
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  text-align: center;
}
.photo-carousel__btn {
  position: absolute;
  top: 40%; /* approximates centre of a 4:3 image above the caption */
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.82);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.photo-carousel__btn--prev { left: 10px; }
.photo-carousel__btn--next { right: 10px; }
.photo-carousel__btn:hover { background: rgba(255, 255, 255, 0.97); }
.photo-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 6px 0 10px;
}
.photo-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.photo-carousel__dot.active { background: #555; }

/* --- Task 3: Navigation bar --- */
.masthead {
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  padding: 0.4rem 0;
}
.masthead__inner-wrap {
  max-width: 1200px;
}
