/* Block 3.1 — Infinite Scroll Top Carousel */

#pcs-infinite-carousel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99990;
  background: #0d0d0d;
  border-bottom: 3px solid #febf00;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  padding: 14px 0;
  /* Hidden off-screen until the visitor scrolls past the threshold */
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#pcs-infinite-carousel.is-visible {
  transform: translateY(0);
}

/* Logged-in users have the WP admin bar — keep the strip below it */
.admin-bar #pcs-infinite-carousel.is-visible {
  transform: translateY(32px);
}
@media screen and (max-width: 782px) {
  .admin-bar #pcs-infinite-carousel.is-visible {
    transform: translateY(46px);
  }
}

/* Track — animated via JS translateX */
.pcs-inf-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
  align-items: center;
}

/* Card */
.pcs-inf-card {
  flex-shrink: 0;
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6px;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.pcs-inf-card:hover {
  transform: translateY(-2px);
}

/* Avatar — SQUARE (rounded corners only) */
.pcs-inf-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}
.pcs-inf-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  object-position: top;
  border: 2px solid #febf00;
  display: block;
  transition: border-color 0.18s;
}
.pcs-inf-card:hover .pcs-inf-avatar img {
  border-color: #fff;
}

/* FREE ACCESS badge — pill straddling the bottom edge of the avatar */
.pcs-inf-badge {
  position: absolute;
  left: 50%;
  bottom: -7px;
  transform: translateX(-50%);
  background: #febf00;
  color: #000;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Name */
.pcs-inf-name {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 104px;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1;
}

/* Mobile */
@media (max-width: 560px) {
  #pcs-infinite-carousel { padding: 11px 0; }
  .pcs-inf-card { width: 92px; }
  .pcs-inf-avatar,
  .pcs-inf-avatar img { width: 66px; height: 66px; }
  .pcs-inf-name { font-size: 0.66rem; max-width: 86px; margin-top: 12px; }
}
