/* =============================================
   HERYERPARKOUR — Video Modal
   Instagram Reels tarzı video popup,
   sağ/sol ok & klavye navigasyonu
   ============================================= */

/* ===== OVERLAY ===== */
.vid-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 20);
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.vid-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== INNER WRAP ===== */
.vid-modal-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 95vw;
  animation: vidModalIn 0.4s var(--ease-bounce) both;
}

@keyframes vidModalIn {
  0%   { opacity: 0; transform: scale(0.88) translateY(24px); }
  65%  { opacity: 1; transform: scale(1.02) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== VIDEO BOX ===== */
.vid-modal-video-box {
  background: #000;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 2%, 99% 100%, 1% 98%);
  line-height: 0;
}

.vid-modal-video-box video {
  display: block;
  max-width: min(88vw, 1100px);
  max-height: 78vh;
  width: auto;
  height: auto;
}

/* ===== NO VIDEO PLACEHOLDER ===== */
.vid-modal-no-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.35);
  clip-path: polygon(0 0, 100% 2%, 99% 100%, 1% 98%);
}

.vid-modal-no-video span:first-child {
  font-size: 48px;
  opacity: 0.5;
}

.vid-modal-no-video span:last-child {
  font-family: var(--ff-heading);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* ===== LABEL & COUNTER ===== */
.vid-modal-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  margin-top: 18px;
  padding: 0 4px;
}

.vid-modal-label {
  font-family: var(--ff-heading);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: white;
}

.vid-modal-counter {
  font-family: var(--ff-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== NAV ARROWS ===== */
.vid-modal-prev,
.vid-modal-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 54px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 5;
}

.vid-modal-prev {
  left: 20px;
  transform: translateY(-50%) scaleX(-1);
}

.vid-modal-next {
  right: 20px;
}

.vid-modal-prev:hover,
.vid-modal-next:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.vid-modal-prev:hover {
  transform: translateY(-50%) scaleX(-1) scale(1.08);
}

.vid-modal-next:hover {
  transform: translateY(-50%) scale(1.08);
}

/* ===== CLOSE BUTTON ===== */
.vid-modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 42px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  transition: background 0.2s;
  z-index: 6;
  line-height: 1;
}

.vid-modal-close:hover {
  background: var(--accent);
}

/* ===== DOT INDICATORS ===== */
.vid-modal-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.vid-modal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.vid-modal-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1440px) {
  .vid-modal-video-box video { max-width: min(82vw, 1000px); max-height: 72vh; }
  .vid-modal-prev { left: 12px; }
  .vid-modal-next { right: 12px; }
}

@media (max-width: 768px) {
  .vid-modal-wrap { max-width: calc(100vw - 16px); }
  .vid-modal-video-box video { max-width: calc(100vw - 16px); max-height: 70vh; }
  .vid-modal-prev { left: 6px; width: 44px; height: 44px; font-size: 16px; }
  .vid-modal-next { right: 6px; width: 44px; height: 44px; font-size: 16px; }
  .vid-modal-close { top: 10px; right: 10px; width: 40px; height: 40px; }
  .vid-modal-label { font-size: 14px; letter-spacing: 2px; }
}

@media (max-width: 480px) {
  .vid-modal-video-box video { max-height: 60vh; }
  .vid-modal-label { font-size: 12px; letter-spacing: 1px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .vid-modal-video-box video { max-height: 80vh; max-width: 90vw; }
}
