/* ================================================
   Video Testimonials – Play Button & Lightbox
   ================================================ */

/* Enhanced play button overlay */
.ai-copilot-voice-play {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-copilot-voice-play::before {
  border-left-width: 14px;
  border-top-width: 8px;
  border-bottom-width: 8px;
  margin-left: 3px;
}

.ai-copilot-voice-card:hover .ai-copilot-voice-play {
  transform: translate(-50%, -50%) scale(1.12);
  opacity: 1;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

/* Pulse ring animation around play button */
.ai-copilot-voice-play::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: voice-play-pulse 2s ease-in-out infinite;
}

@keyframes voice-play-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* Video lightbox modal */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-lightbox-content {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.video-lightbox.is-active .video-lightbox-content {
  transform: scale(1);
}

.video-lightbox-content video,
.video-lightbox-content iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  line-height: 1;
}

.video-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Avatar / photo area */
.ai-copilot-voice-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  justify-content: center;
}

.ai-copilot-voice-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #2f70ff, #7b61ff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-copilot-voice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-copilot-voice-avatar span {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.ai-copilot-voice-info h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.ai-copilot-voice-info p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ai-copilot-voice-play::after {
    animation: none;
  }
  .ai-copilot-voice-card:hover .ai-copilot-voice-play {
    transform: translate(-50%, -50%);
  }
  .video-lightbox,
  .video-lightbox-content {
    transition: none;
  }
}
