/**
 * Testimonials Grid Organism Styles
 */

.testimonials-grid-organism {
  /* Container is handled by Tailwind classes */
}

/* Testimonial Video Trigger */
.testimonial-video-trigger {
  position: relative;
  display: block;
  width: 100%;
}

.testimonial-video-trigger:focus {
  outline: 2px solid rgb(var(--color-brand-primary, 0 30 97));
  outline-offset: 2px;
}

/* Play Icon Styling */
.play-icon-wrapper {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.play-icon-wrapper svg {
  width: 72px;
  height: 52px;
  display: block;
}

/* Responsive adjustments for play icon */
@media (max-width: 767px) {
  .play-icon-wrapper svg {
    width: 56px;
    height: 40px;
  }
}

/* Testimonial Modal Specific Styles */
.testimonial-modal {
  backdrop-filter: blur(4px);
}

.testimonial-modal .modal-overlay {
  transition: opacity 0.3s ease-in-out;
}

.testimonial-modal .modal-container {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Video Wrapper - ensures proper 16:9 aspect ratio */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #000;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

/* Close button hover effect */
.testimonial-modal .modal-close {
  transition: all 0.2s ease-in-out;
}

.testimonial-modal .modal-close:hover {
  transform: scale(1.1);
}

.testimonial-modal .modal-close:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* Accessibility: Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .testimonial-video-trigger img,
  .play-icon-wrapper,
  .modal-close {
    transition: none;
  }

  .modal-container {
    animation: none;
  }
}
