/**
 * Video Play Button & Popup Styles
 */

/* Play Button Container */
.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 88px;
  height: 88px;
  border: none;
  background: transparent;
  z-index: 10;
  transition: transform 0.3s ease;
  padding: 0;
}

.video-play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Pulsing Animation Circles */
.play-button-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  pointer-events: none;
}

.play-button-pulse-1 {
  animation: pulse 1.5s ease-out infinite;
}

.play-button-pulse-2 {
  animation: pulse 1.5s ease-out infinite 0.3s;
}

.play-button-pulse-3 {
  animation: pulse 1.5s ease-out infinite 0.6s;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.8);
  }
}

/* Play Button Circle */
.play-button-circle {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  aspect-ratio: 1 / 1;
}

/* Play Icon */
.play-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
  margin-left: 2px;
}

/* Video Popup Overlay */
.video-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Video Popup Container */
.video-popup-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Close Button */
.video-popup-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
}

.video-popup-close:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: rotate(90deg);
}

.video-popup-close svg {
  width: 20px;
  height: 20px;
}

/* Video Content */
.video-popup-content {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

/* Video Wrapper - 16:9 Aspect Ratio */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

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

/* Mobile Responsive */
@media (max-width: 768px) {
  .video-play-button {
    width: 60px;
    height: 60px;
  }

  .play-icon {
    width: 24px;
    height: 24px;
  }

  .video-popup-container {
    width: 95%;
  }

  .video-popup-close {
    top: -50px;
    right: 0;
  }
}
