/* ===========================================
   Video Testimonials Pro – Frontend Styles
   =========================================== */

:root {
  --vtp-radius: 14px;
  --vtp-accent: #e63946;
  --vtp-transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ── WRAPPER ── */
.vtp-wrapper {
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
  max-width: 100%;
  width: 100%;
  position: relative;
}
.vtp-wrapper *, .vtp-wrapper *::before, .vtp-wrapper *::after {
  box-sizing: inherit;
}

/* ── THEMES ── */
.vtp-theme-dark  { --vtp-bg: #111; --vtp-caption-bg: #181818; --vtp-text: #fff; --vtp-sub: #aaa; --vtp-dot: #555; --vtp-dot-active: var(--vtp-accent); }
.vtp-theme-light { --vtp-bg: #f8f8f8; --vtp-caption-bg: #fff; --vtp-text: #111; --vtp-sub: #555; --vtp-dot: #ccc; --vtp-dot-active: var(--vtp-accent); }

/* ── EMPTY MESSAGE ── */
.vtp-empty { color: #888; font-style: italic; padding: 1rem 0; }

/* ── VIDEO BOX (16:9) ── */
.vtp-video-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: var(--vtp-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}

/* ── POSTER ── */
.vtp-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: transform var(--vtp-transition);
}
.vtp-poster:hover { transform: scale(1.025); }

/* ── PLAY BUTTON ── */
.vtp-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 72px;
  height: 72px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  transition: transform .2s ease;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.6));
}
.vtp-play-btn:hover { transform: translate(-50%, -50%) scale(1.15); }
.vtp-play-btn svg { width: 100%; height: 100%; }

/* ── IFRAME WRAP ── */
.vtp-iframe-wrap {
  position: absolute;
  inset: 0;
}
.vtp-iframe-wrap iframe,
.vtp-iframe-wrap video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── CAPTION ── */
.vtp-caption {
  background: var(--vtp-caption-bg, #181818);
  padding: 14px 18px;
  border-radius: 0 0 var(--vtp-radius) var(--vtp-radius);
}
.vtp-title {
  margin: 0 0 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--vtp-text, #fff);
  line-height: 1.3;
}
.vtp-subtitle {
  margin: 0;
  font-size: .85rem;
  color: var(--vtp-sub, #aaa);
}

/* ── SINGLE MODE ── */
.vtp-single { width: 100%; }

/* ── CAROUSEL ── */
.vtp-carousel { width: 100%; }

.vtp-track {
  position: relative;
  width: 100%;
  min-height: 160px;
}

.vtp-slide {
  display: none;
  animation: vtpFadeIn .4s ease forwards;
}
.vtp-slide.vtp-active { display: block; }

@keyframes vtpFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── CONTROLS ── */
.vtp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.vtp-prev,
.vtp-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--vtp-dot-active, var(--vtp-accent));
  background: transparent;
  color: var(--vtp-dot-active, var(--vtp-accent));
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--vtp-transition), color var(--vtp-transition);
}
.vtp-prev:hover,
.vtp-next:hover {
  background: var(--vtp-dot-active, var(--vtp-accent));
  color: #fff;
}

/* ── DOTS ── */
.vtp-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.vtp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vtp-dot, #555);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--vtp-transition), transform .2s;
}
.vtp-dot.vtp-dot-active {
  background: var(--vtp-dot-active, var(--vtp-accent));
  transform: scale(1.4);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .vtp-play-btn { width: 52px; height: 52px; }
  .vtp-prev, .vtp-next { width: 34px; height: 34px; font-size: 1.2rem; }
}
