/* ═══════════════════════════════════════════
   UPSHOT - Videos que Convertem
   CSS Global
═══════════════════════════════════════════ */

:root {
  --upshot-accent: #FF3D00;
  --upshot-green:  #22c55e;
  --upshot-bg:     #0a0a0a;
  --upshot-surface:#141414;
  --upshot-border: rgba(255,255,255,0.08);
  --upshot-text:   #f0f0f0;
  --upshot-dim:    #888;
}

/* ── Outer wrapper (centers inside any Elementor column) ── */
.upshot-player-outer {
  width: 100%;
  display: flex;
  justify-content: center;
  font-family: 'Sora', 'Segoe UI', sans-serif;
}

/* ── Player wrap ── */
.upshot-player-wrap {
  width: 100%;
  max-width: 680px;
  position: relative;
}

/* ── Viewer Badge ── */
.upshot-viewer-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  pointer-events: none;
  user-select: none;
}
.upshot-dot {
  width: 8px; height: 8px;
  background: var(--upshot-green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: upshot-pulse 1.6s ease-in-out infinite;
}
@keyframes upshot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}

/* ── Video Box ── */
.upshot-video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}
.upshot-yt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.upshot-yt iframe {
  pointer-events: none;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Click overlay */
.upshot-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

/* Buffering */
.upshot-buffering {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45);
  z-index: 6;
}
.upshot-buffering.upshot-hidden { display: none; }
.upshot-spinner {
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.18);
  border-top-color: var(--upshot-accent);
  border-radius: 50%;
  animation: upshot-spin .7s linear infinite;
}
@keyframes upshot-spin { to { transform: rotate(360deg); } }

/* Big play flash */
.upshot-big-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 4; pointer-events: none;
  opacity: 0; transition: opacity .15s;
}
.upshot-big-play.upshot-show { opacity: 1; }
.upshot-big-circle {
  width: 64px; height: 64px;
  background: rgba(255,61,0,0.88);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: upshot-pop .18s ease forwards;
}
@keyframes upshot-pop {
  from { transform: scale(.75); }
  to   { transform: scale(1);   }
}

/* Seek warning */
.upshot-seek-warn {
  position: absolute; bottom: 50px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(255,61,0,.95);
  color: #fff; font-size: 12px; font-weight: 600;
  padding: 8px 16px; border-radius: 8px;
  z-index: 20; opacity: 0; pointer-events: none; white-space: nowrap;
  transition: opacity .25s, transform .25s;
}
.upshot-seek-warn.upshot-show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ── Resume Overlay (red Vturb style) ── */
.upshot-resume-overlay {
  position: absolute;
  inset: 0;
  background: #c0392b;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
}
.upshot-resume-overlay.upshot-hidden { display: none; }
.upshot-resume-title {
  color: #fff;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin: 0;
}
.upshot-resume-btns {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.upshot-resume-btns button {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background .2s, border-color .2s;
}
.upshot-resume-btns button:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.upshot-resume-icon {
  width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Overlay Controls (inside video, bottom) ── */
.upshot-overlay-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 7;
}
.upshot-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px 6px;
  transition: opacity .15s;
}
.upshot-play-btn:hover { opacity: .75; }

/* Fake progress bar */
.upshot-progress-wrap {
  width: 100%;
  height: 4px;
  cursor: not-allowed;
  display: block;
}
.upshot-progress-track {
  position: relative;
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.18);
}
.upshot-prog-ghost {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: rgba(255,255,255,0.15);
  pointer-events: none;
  transition: width .5s linear;
}
.upshot-prog-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--upshot-accent);
  pointer-events: none;
  transition: width .5s linear;
}

/* ── Exit Intent Popup ── */
.upshot-exit-popup {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999999;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.upshot-exit-popup.upshot-show {
  opacity: 1; pointer-events: all;
}
.upshot-exit-box {
  background: var(--upshot-surface);
  border: 1px solid rgba(255,61,0,0.4);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 420px; width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(255,61,0,0.18);
  transform: scale(.92); transition: transform .3s;
  color: var(--upshot-text);
}
.upshot-exit-popup.upshot-show .upshot-exit-box { transform: scale(1); }
.upshot-exit-icon { font-size: 40px; margin-bottom: 12px; }
.upshot-exit-box h2 {
  font-size: 20px; font-weight: 700;
  margin: 0 0 10px; line-height: 1.3; color: #fff;
}
.upshot-exit-box h2 em { color: var(--upshot-accent); font-style: normal; }
.upshot-exit-box p {
  color: var(--upshot-dim); font-size: 14px;
  line-height: 1.6; margin: 0 0 24px;
}
.upshot-exit-btns { display: flex; flex-direction: column; gap: 10px; }
.upshot-btn-stay {
  background: var(--upshot-accent); color: #fff;
  border: none; border-radius: 10px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  padding: 14px; cursor: pointer; transition: opacity .2s;
}
.upshot-btn-stay:hover { opacity: .85; }
.upshot-btn-leave {
  background: none; color: var(--upshot-dim);
  border: 1px solid var(--upshot-border); border-radius: 10px;
  font-family: inherit; font-size: 13px;
  padding: 11px; cursor: pointer; transition: color .2s;
}
.upshot-btn-leave:hover { color: var(--upshot-text); }

/* Utility */
.upshot-hidden { display: none !important; }

/* ── Elementor compatibility ── */
.elementor-widget-html .upshot-player-outer,
.elementor-widget-shortcode .upshot-player-outer {
  width: 100%;
  display: flex;
  justify-content: center;
}
