/* ============================================
   VIDEO POPUP & SLIDER - Frontend Styles
   ============================================ */

/* ─── Base Reset ─── */
.vp-popup-wrapper,
.vp-slider-container {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  box-sizing: border-box;
}

.vp-popup-wrapper *,
.vp-slider-container * {
  box-sizing: border-box;
}

/* ============================================
   POPUP BUTTON STYLES
   ============================================ */

.vp-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  line-height: 1.2;
  font-family: inherit;
}

.vp-popup-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.5s,
    height 0.5s;
}

.vp-popup-btn:hover::before {
  width: 300px;
  height: 300px;
}

.vp-popup-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vp-popup-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Button Icon */
.vp-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.vp-popup-btn:hover .vp-btn-icon {
  transform: scale(1.15);
}

.vp-btn-text {
  position: relative;
  z-index: 1;
}

/* Button Style Variants */
.vp-btn-rounded {
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vp-btn-pill {
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vp-btn-square {
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.vp-btn-circle {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  padding: 0;
  justify-content: center;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.vp-btn-circle .vp-btn-icon svg {
  width: 28px;
  height: 28px;
}

/* Pulse animation for circle style */
.vp-btn-circle {
  animation: vp-btn-pulse 2.5s ease-in-out infinite;
}

.vp-btn-circle:hover {
  animation: none;
}

@keyframes vp-btn-pulse {
  0%,
  100% {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow:
      0 6px 35px rgba(0, 0, 0, 0.5),
      0 0 0 8px rgba(255, 0, 0, 0.1);
  }
}

/* ============================================
   POPUP MODAL STYLES
   ============================================ */

.vp-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0.4s;
  padding: 24px;
}

.vp-modal-overlay.vp-modal-active {
  opacity: 1;
  visibility: visible;
}

.vp-modal-container {
  position: relative;
  width: 100%;
  max-width: 960px;
  transform: scale(0.85) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vp-modal-overlay.vp-modal-active .vp-modal-container {
  transform: scale(1) translateY(0);
}

.vp-modal-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.vp-modal-video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.vp-modal-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
  backdrop-filter: blur(4px);
}

.vp-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(90deg) scale(1.1);
}

/* ============================================
   VIDEO SLIDER STYLES
   ============================================ */

.vp-slider-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 50px;
  user-select: none;
}

.vp-slider-viewport {
  overflow: hidden;
  border-radius: 16px;
}

.vp-slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.vp-slider-slide {
  flex-shrink: 0;
  padding: 0 8px;
  cursor: pointer;
}

.vp-slide-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: #0a0a0a;
}

.vp-slide-inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.vp-slide-inner img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s;
}

.vp-slide-inner:hover img {
  transform: scale(1.05);
}

/* Overlay - always visible */
.vp-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.35s;
}

.vp-slide-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 0, 0, 0.85);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(255, 0, 0, 0.35);
  transition: all 0.3s;
  position: relative;
}

.vp-slide-play-btn svg {
  width: 22px;
  height: 22px;
}

.vp-slide-inner:hover .vp-slide-play-btn {
  transform: scale(1.15);
  background: rgba(255, 0, 0, 1);
  box-shadow: 0 4px 18px rgba(255, 0, 0, 0.5);
}

/* Slide Title - always visible */
.vp-slide-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  z-index: 2;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.35s;
}

/* ─── Navigation Arrows ─── */
.vp-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s;
  z-index: 10;
}

.vp-slider-arrow:hover {
  background: #fff;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.vp-slider-prev {
  left: 4px;
}

.vp-slider-next {
  right: 4px;
}

/* ─── Dots Pagination ─── */
.vp-slider-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 0;
}

.vp-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.vp-slider-dot:hover {
  background: #999;
}

.vp-slider-dot.vp-dot-active {
  background: #ff0000;
  width: 28px;
  border-radius: 14px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .vp-slider-container {
    padding: 0 44px;
  }
}

@media (max-width: 768px) {
  .vp-slider-container {
    padding: 0 40px;
    margin: 24px auto;
  }

  .vp-slider-arrow {
    width: 36px;
    height: 36px;
  }

  .vp-slider-prev {
    left: 2px;
  }

  .vp-slider-next {
    right: 2px;
  }

  .vp-slide-play-btn {
    width: 34px;
    height: 34px;
  }

  .vp-slide-play-btn svg {
    width: 18px;
    height: 18px;
  }

  .vp-modal-container {
    max-width: 100%;
  }

  .vp-modal-close {
    top: -44px;
  }

  .vp-popup-btn {
    padding: 12px 22px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .vp-slider-container {
    padding: 0 36px;
  }

  .vp-slide-title {
    font-size: 12px;
    padding: 10px;
  }
}
