/* ============================================================
   Riaz Developers — Video Showcase Widget
   Horizontal-scroll row of YouTube video thumbnails.
   Click opens a full-screen lightbox with YouTube embed.
   All visual properties are overridden by Elementor Style
   tab controls — these are defaults only.
   ============================================================ */

.riaz-video-showcase *,
.riaz-video-showcase *::before,
.riaz-video-showcase *::after {
  box-sizing: border-box;
}

/* ── SHORT (9:16 portrait) card ── */
.riaz-video-card--short {
  flex: 0 0 200px; /* narrower width for portrait */
}
.riaz-video-card--short .riaz-video-thumb {
  aspect-ratio: 9 / 16;
}

@media (max-width: 768px) {
  .riaz-video-card--short { flex: 0 0 160px; }
}
@media (max-width: 480px) {
  .riaz-video-card--short { flex: 0 0 150px; }
}

/* ── TRACK ── */
.riaz-video-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
  cursor: grab;
  user-select: none;
}
.riaz-video-track:active { cursor: grabbing; }

.riaz-video-track::-webkit-scrollbar { height: 3px; }
.riaz-video-track::-webkit-scrollbar-track { background: #E8E6E0; }
.riaz-video-track::-webkit-scrollbar-thumb { background: #A07D30; }

/* ── CARD ── */
.riaz-video-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  cursor: pointer;
  position: relative;
  display: block;
}

/* ── THUMBNAIL ── */
.riaz-video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #182f56;
  display: block;
}

.riaz-video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(85%) saturate(88%);
  transition: transform 0.55s cubic-bezier(0.25,1,0.5,1), filter 0.4s ease;
  display: block;
}
.riaz-video-card:hover .riaz-video-thumb img {
  transform: scale(1.05);
  filter: brightness(65%) saturate(88%);
}

/* ── OVERLAY ── */
.riaz-video-thumb-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(14,28,52,0.80) 0%,
    rgba(14,28,52,0.20) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* ── PLAY BUTTON ── */
.riaz-play-btn {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.riaz-play-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(160,125,46,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}
.riaz-video-card:hover .riaz-play-circle {
  transform: scale(1.1);
  background: #C09A45;
}

.riaz-play-circle svg {
  width: 20px;
  height: 20px;
  fill: #0e1c34;
  margin-left: 3px; /* optical centering */
  display: block;
}

/* ── CATEGORY LABEL ── */
.riaz-video-category {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  left: 14px;
  font-family: 'Urbanist', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F0EDE6;
  background: rgba(160,125,46,0.88);
  padding: 4px 10px;
  pointer-events: none;
  line-height: 1.4;
}

/* ════════════════════════════════════════════
   LIGHTBOX
════════════════════════════════════════════ */
.riaz-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8,14,28,0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.riaz-video-lightbox.riaz-lb-open {
  display: flex;
  opacity: 1;
}

.riaz-video-lb-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  transform: scale(0.96);
  transition: transform 0.3s ease;
}
.riaz-video-lightbox.riaz-lb-open .riaz-video-lb-inner {
  transform: scale(1);
}

.riaz-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.riaz-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.riaz-video-lb-close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(240,237,230,0.08);
  border: 1px solid rgba(240,237,230,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, border-color 0.2s;
}
.riaz-video-lb-close:hover {
  background: rgba(192,154,69,0.18);
  border-color: #C09A45;
}
.riaz-video-lb-close svg {
  width: 20px;
  height: 20px;
  stroke: #F0EDE6;
  display: block;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .riaz-video-card { flex: 0 0 300px; }
  .riaz-video-lb-close { top: 14px; right: 14px; width: 40px; height: 40px; }
  .riaz-video-lightbox { padding: 16px; }
}
@media (max-width: 480px) {
  .riaz-video-card { flex: 0 0 280px; }
}
