/* Video Carousel Section - Loved by Couples & Pros Alike */
/* All classes prefixed with 'pv-' (plannerd video) to avoid conflicts */

.pv-section {
  padding: 4rem 0;
  overflow: hidden;
}

.pv-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 59px;
}

.pv-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-style: normal;
  line-height: normal;
  text-align: center;
  color: var(--text-body, #0f0f0f);
  margin: 0;
}

.pv-title em {
  font-style: italic;
  color: inherit;
}

/* Carousel Container */
.pv-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  position: relative;
  padding: 0 var(--section-padding-horizontal, 2rem);
}

/* Navigation Arrows */
.pv-nav {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  z-index: 10;
  flex-shrink: 0;
}

.pv-nav:hover {
  transform: scale(1.1);
}

.pv-nav:focus {
  outline-offset: 2px;
}

.pv-nav svg {
  width: 11px;
  height: 21px;
  color: var(--_website-2-0---color-primary, #0f0f0f);
}

.pv-nav--next svg {
  transform: rotate(180deg);
}

/* Carousel Track */
.pv-track-wrapper {
  overflow: hidden;
  flex: 1;
  position: relative;
}

.pv-track {
  display: flex;
  gap: 50px;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Video Card */
.pv-card {
  flex-shrink: 0;
  width: 374px;
  height: 700px;
  position: relative;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
  overflow: hidden;
  background: #000;
}

/* Iframe - fully interactive native player */
.pv-card__iframe {
  position: absolute;
  left: -2px;
  width: calc(100% + 4px);
  border: none;
  z-index: 1;
}

/* TikTok iframe - fill full width and height using scale transform */
.pv-card[data-platform='tiktok'] .pv-card__iframe {
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(1.05);
  transform-origin: center top;
  width: 100%;
  height: 100%;
}

/* Instagram iframe - hide header, fill remaining height */
.pv-card[data-platform='instagram'] .pv-card__iframe {
  top: -56px;
  /* Hide the Instagram header */
  height: calc(100% + 60px);
  /* Compensate and fill */
}

/* Decorative gradient overlay - clicks pass through */
.pv-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
  border-radius: 10px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Hide overlay when video is playing so controls are fully visible */
.pv-card--playing .pv-card__overlay {
  opacity: 0;
}

/* Hide header info when video is playing */
.pv-card--playing .pv-card__info {
  opacity: 0;
  pointer-events: none;
}

/* TikTok thumbnail placeholder */
.pv-card__thumbnail {
  position: absolute;
  inset: 0;
  background-color: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Creator Info - positioned at top, clickable */
.pv-card__info {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  transition: opacity 0.3s ease;
}

/* Play button in header */
.pv-card__play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.pv-card__play-btn:hover {
  transform: scale(1.1);
}

.pv-card__play-btn img {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.pv-card__creator {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  padding: 6px 12px 6px 6px;
  background: transparent;
  border-radius: 30px;
  transition: transform 0.2s ease;
}

.pv-card__creator:hover {
  transform: scale(1.02);
}

.pv-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d9d9d9;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.pv-card__username {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.26;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive Styles */
@media screen and (max-width: 1280px) {
  .pv-track {
    gap: 30px;
  }

  .pv-card {
    width: 320px;
    height: 640px;
  }
}

@media screen and (max-width: 991px) {
  .pv-section {
    padding: 3rem 0;
  }

  .pv-title {
    font-size: 32px;
    padding: 0 1rem;
  }

  .pv-container {
    gap: 40px;
  }

  .pv-carousel-wrapper {
    padding: 0 1rem;
    gap: 12px;
  }

  .pv-track {
    gap: 20px;
  }

  .pv-card {
    width: 280px;
    height: 560px;
  }

  .pv-card__username {
    font-size: 16px;
  }

  .pv-card__avatar {
    width: 32px;
    height: 32px;
  }
}

@media screen and (max-width: 767px) {
  .pv-section {
    padding: 2rem 0;
  }

  .pv-title {
    font-size: 28px;
  }

  .pv-container {
    gap: 30px;
  }

  .pv-carousel-wrapper {
    padding: 0 0.5rem;
    gap: 8px;
  }

  .pv-nav {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
  }

  .pv-nav svg {
    width: 9px;
    height: 17px;
  }

  .pv-track {
    gap: 16px;
  }

  /* Larger cards to properly show TikTok/Instagram controls */
  .pv-card {
    width: 260px;
    height: 520px;
  }

  .pv-card__play-btn {
    width: 32px;
    height: 32px;
  }

  .pv-card__play-btn img {
    width: 20px;
    height: 20px;
  }

  .pv-card__info {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .pv-card__creator {
    gap: 6px;
    padding: 5px 10px 5px 5px;
  }

  .pv-card__avatar {
    width: 28px;
    height: 28px;
  }

  .pv-card__username {
    font-size: 12px;
  }
}

@media screen and (max-width: 479px) {
  .pv-title {
    font-size: 24px;
  }

  .pv-track {
    gap: 12px;
  }

  /* Taller cards on small screens to fit native player controls */
  .pv-card {
    width: 240px;
    height: 480px;
  }

  .pv-card__play-btn {
    width: 28px;
    height: 28px;
  }

  .pv-card__play-btn img {
    width: 18px;
    height: 18px;
  }

  .pv-card__info {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .pv-card__creator {
    gap: 5px;
    padding: 4px 8px 4px 4px;
  }

  .pv-card__username {
    font-size: 11px;
  }

  .pv-card__avatar {
    width: 24px;
    height: 24px;
  }
}
