/* ==========================================================================
   Jetfins - Video Testimonials Page Styles
   Responsive 16:9 Video Cards, Category Filters, & Playback Modal
   ========================================================================== */

/* Category Filter Tabs */
.testimonials-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-tab-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full, 9999px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a4aea6;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-tab-btn:hover {
  background: rgba(158, 240, 26, 0.08);
  border-color: rgba(158, 240, 26, 0.25);
  color: #ffffff;
}

.filter-tab-btn.active {
  background: var(--accent, #9ef01a);
  border-color: var(--accent, #9ef01a);
  color: #080c09;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(158, 240, 26, 0.35);
}

/* Video Testimonials Grid */
.video-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Video Testimonial Card */
.video-testimonial-card {
  background: rgba(16, 22, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.video-testimonial-card:hover {
  border-color: rgba(158, 240, 26, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 24px rgba(158, 240, 26, 0.1);
}

/* 16:9 Video Thumbnail Container */
.video-thumb-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Ratio */
  background: #0d120e;
  overflow: hidden;
  cursor: pointer;
}

.video-thumb-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.85);
}

.video-testimonial-card:hover .video-thumb-img {
  transform: scale(1.05);
  filter: brightness(0.7);
}

/* Video Play Button Overlay */
.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(8, 12, 9, 0.75);
  backdrop-filter: blur(8px);
  border: 2px solid var(--accent, #9ef01a);
  color: var(--accent, #9ef01a);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  box-shadow: 0 0 25px rgba(158, 240, 26, 0.45);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.video-testimonial-card:hover .video-play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--accent, #9ef01a);
  color: #080c09;
  box-shadow: 0 0 35px rgba(158, 240, 26, 0.7);
}

/* Video Duration & Badge Tags */
.video-duration-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  z-index: 2;
}

.video-strategy-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(16, 24, 18, 0.85);
  border: 1px solid rgba(158, 240, 26, 0.3);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent, #9ef01a);
  z-index: 2;
}

/* Card Body Content */
.video-card-body {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.video-author-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.author-profile-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(158, 240, 26, 0.3);
  object-fit: cover;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name-text {
  font-size: 15.5px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-icon {
  color: #39ff14;
  font-size: 12px;
}

.author-role-sub {
  font-size: 12px;
  color: #8a928c;
}

.video-written-quote {
  font-size: 14px;
  line-height: 1.6;
  color: #d8e2da;
  font-style: italic;
  margin-bottom: 16px;
  flex-grow: 1;
}

.video-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #7b857e;
}

.watch-prompt-btn {
  color: var(--accent, #9ef01a);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.watch-prompt-btn:hover {
  transform: translateX(3px);
  color: var(--accent-hover, #b5f543);
}

/* ==========================================================================
   VIDEO PLAYBACK MODAL
   ========================================================================== */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2000;
}

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

.video-modal-dialog {
  background: #0f1511;
  border: 1px solid rgba(158, 240, 26, 0.3);
  border-radius: var(--radius-lg, 24px);
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 40px rgba(158, 240, 26, 0.15);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-modal-overlay.active .video-modal-dialog {
  transform: scale(1);
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
}

.video-modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.video-modal-close-btn:hover {
  background: rgba(255, 59, 48, 0.2);
  color: #ff3b30;
  border-color: #ff3b30;
}

.video-modal-player-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: #000000;
}

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

/* Fallback Container when Video is unavailable / placeholder slot */
.video-fallback-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, #16241a 0%, #080c09 85%);
  color: #ffffff;
}

.fallback-icon {
  font-size: 44px;
  color: var(--accent, #9ef01a);
  margin-bottom: 16px;
}

.video-modal-footer {
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: #8a928c;
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .video-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .video-testimonials-grid {
    grid-template-columns: 1fr;
  }
}
