/* ==========================================================================
   TECH STORE PARTNER — CINEMATIC VIDEO STAGE (tpv-*)
   Shared isolated design system for techtitan.com.eg, clients.techtitan.com.eg,
   and store.techtitan.com.eg. Zero collisions, RTL/LTR native, mobile-first.
   ========================================================================== */

.tpv-stage {
  --tpv-bg: #08090d;
  --tpv-surface: rgba(16, 18, 26, 0.92);
  --tpv-border: rgba(212, 175, 55, 0.24);
  --tpv-gold: #e5b84b;
  --tpv-gold-soft: rgba(229, 184, 75, 0.14);
  --tpv-crimson: #d91e36;
  --tpv-crimson-glow: rgba(217, 30, 54, 0.35);
  --tpv-text: #f8fafc;
  --tpv-muted: #cbd5e1;
  --tpv-subtle: #94a3b8;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 1240px;
  margin: 2.25rem auto;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at 15% 15%, rgba(229, 184, 75, 0.13), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(217, 30, 54, 0.14), transparent 48%),
    linear-gradient(145deg, #090b10 0%, #111420 55%, #0a0c12 100%);
  border: 1px solid var(--tpv-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--tpv-text);
  overflow: hidden;
  font-family: inherit;
}

.tpv-stage *,
.tpv-stage *::before,
.tpv-stage *::after {
  box-sizing: border-box;
}

.tpv-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}

.tpv-stage--hero .tpv-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .tpv-stage--hero .tpv-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.18fr);
  }
  .tpv-stage--section .tpv-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 340px);
  }
  .tpv-stage--card .tpv-grid {
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
  }
}

.tpv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: var(--tpv-gold-soft);
  border: 1px solid rgba(229, 184, 75, 0.35);
  color: var(--tpv-gold);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.9rem;
}

.tpv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tpv-crimson);
  box-shadow: 0 0 10px var(--tpv-crimson);
}

.tpv-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3.1vw, 2.45rem);
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
}

.tpv-stage--card .tpv-title {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  margin-bottom: 0.55rem;
}

.tpv-gold {
  background: linear-gradient(135deg, #fde68a 0%, #e5b84b 55%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tpv-lead {
  margin: 0 0 1.15rem;
  font-size: clamp(0.96rem, 1.3vw, 1.08rem);
  line-height: 1.7;
  color: var(--tpv-muted);
}

.tpv-stage--card .tpv-lead {
  font-size: 0.94rem;
  margin-bottom: 0.9rem;
}

.tpv-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.tpv-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #f1f5f9;
}

.tpv-pill strong {
  color: var(--tpv-gold);
  font-weight: 800;
}

.tpv-pill s {
  color: var(--tpv-subtle);
  opacity: 0.85;
  font-size: 0.8rem;
}

.tpv-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.tpv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tpv-btn--primary {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px var(--tpv-crimson-glow);
}

.tpv-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(225, 29, 72, 0.48);
}

.tpv-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc !important;
  border: 1px solid rgba(229, 184, 75, 0.32);
}

.tpv-btn--ghost:hover {
  border-color: var(--tpv-gold);
  background: rgba(229, 184, 75, 0.1);
}

.tpv-yt-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  color: var(--tpv-subtle) !important;
  text-decoration: none !important;
  padding: 0.4rem 0.55rem;
}

.tpv-yt-link:hover {
  color: var(--tpv-gold) !important;
}

.tpv-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--tpv-subtle);
}

/* Video Frame */
.tpv-media {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #050608;
  border: 1px solid rgba(229, 184, 75, 0.32);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

.tpv-media--16x9 {
  aspect-ratio: 16 / 9;
}

.tpv-media--9x16 {
  aspect-ratio: 9 / 16;
  max-width: 330px;
  margin-inline: auto;
}

.tpv-stage--card .tpv-media--9x16 {
  max-width: 185px;
  max-height: 310px;
}

.tpv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #050608;
}

.tpv-media.is-playing .tpv-video {
  object-fit: contain;
}

.tpv-poster-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: linear-gradient(180deg, rgba(5, 6, 8, 0.12) 0%, rgba(5, 6, 8, 0.62) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  cursor: pointer;
  color: #ffffff;
  transition: background 0.2s ease;
  z-index: 2;
}

.tpv-media.is-playing .tpv-poster-btn {
  opacity: 0;
  pointer-events: none;
}

.tpv-play-orb {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e11d48 0%, #b91c1c 100%);
  border: 2px solid rgba(229, 184, 75, 0.85);
  box-shadow: 0 0 0 10px rgba(225, 29, 72, 0.18), 0 12px 30px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tpv-stage--card .tpv-play-orb {
  width: 52px;
  height: 52px;
}

.tpv-poster-btn:hover .tpv-play-orb {
  transform: scale(1.07);
  box-shadow: 0 0 0 14px rgba(229, 184, 75, 0.22), 0 16px 36px rgba(0, 0, 0, 0.75);
}

.tpv-play-orb svg {
  width: 26px;
  height: 26px;
  fill: #ffffff;
  margin-inline-start: 3px;
}

.tpv-badge-duration {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.84);
  border: 1px solid rgba(229, 184, 75, 0.45);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fde68a;
  backdrop-filter: blur(6px);
}

@media (max-width: 640px) {
  .tpv-stage {
    padding: 1.1rem;
    border-radius: 18px;
    margin: 1.5rem auto;
  }
  .tpv-actions .tpv-btn {
    width: 100%;
  }
  .tpv-media--9x16 {
    max-width: 260px;
  }
  .tpv-stage--card .tpv-media--9x16 {
    max-width: 220px;
  }
}

/* Coming Soon badge & disabled CTA state */
.tpv-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(174, 190, 255, 0.14);
  border: 1px solid rgba(174, 190, 255, 0.42);
  color: #cdd8ff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.tpv-btn--soon {
  background: rgba(174, 190, 255, 0.12) !important;
  border: 1px dashed rgba(174, 190, 255, 0.45) !important;
  color: #dbe3ff !important;
  box-shadow: none !important;
  cursor: default !important;
  pointer-events: none;
}

/* === CINEMATIC SUPER POLISH FOR PARTNER VIDEO STAGE (2026-11-08) === */
.tpv-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(110% 85% at 88% 12%, rgba(216, 173, 84, 0.20), transparent 58%),
    radial-gradient(95% 80% at 12% 88%, rgba(225, 29, 72, 0.15), transparent 56%),
    radial-gradient(circle at 22% 28%, rgba(255, 224, 150, 0.12) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 64%, rgba(255, 224, 150, 0.10) 0 1.5px, transparent 2.5px),
    linear-gradient(160deg, #06060b 0%, #0b0c14 52%, #07070c 100%) !important;
  border: 1px solid rgba(216, 173, 84, 0.42) !important;
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 232, 175, 0.08),
    inset 0 1px 0 rgba(255, 236, 190, 0.22) !important;
}
.tpv-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 35%, rgba(243, 212, 139, 0.07) 50%, transparent 65%);
  background-size: 220% 220%;
  animation: tpvBorderSheen 9s ease-in-out infinite;
}
@keyframes tpvBorderSheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .tpv-stage::before {
    animation: none !important;
  }
}
.tpv-poster-btn,
button.tpv-poster-btn[type="button"] {
  background: radial-gradient(circle at center, rgba(5, 7, 13, 0.14) 0%, rgba(5, 7, 13, 0.56) 100%) !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.tpv-media--16x9 .tpv-poster-btn,
.tpv-media--16x9 button.tpv-poster-btn[type="button"] {
  background-image: radial-gradient(circle at center, rgba(5, 7, 13, 0.12) 0%, rgba(5, 7, 13, 0.52) 100%), url("/media/techstore/partner-hero/partner-poster-16x9.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #06060b !important;
}
.tpv-media--9x16 .tpv-poster-btn,
.tpv-media--9x16 button.tpv-poster-btn[type="button"] {
  background-image: radial-gradient(circle at center, rgba(5, 7, 13, 0.12) 0%, rgba(5, 7, 13, 0.52) 100%), url("/media/techstore/partner-hero/partner-poster-9x16.webp") !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #06060b !important;
}
.tpv-poster-btn[hidden],
button.tpv-poster-btn[type="button"][hidden] {
  display: none !important;
}
.tpv-open-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(216, 173, 84, 0.24));
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.tpv-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}
@media (max-width: 640px) {
  .tpv-steps-grid {
    grid-template-columns: 1fr;
  }
}
.tpv-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(216, 173, 84, 0.22);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #f4f1ea;
}
.tpv-step-num {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3d48b, #b7791f);
  color: #09090f;
  font-weight: 900;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tpv-media {
  border: 1px solid rgba(243, 212, 139, 0.42) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.65), 0 0 32px rgba(216, 173, 84, 0.16) !important;
}
