/* ==========================================================================
   VİDEOGRAFİK BÖLÜMÜ & VİDEO GRID
   ========================================================================== */

.videografik-section {
  width: 100%;
  background-color: var(--bg-page);
  padding: var(--video-section-padding-top-desktop, 0px) 0 var(--video-section-padding-bottom-desktop, 66px);
}

.video-grid-container {
  width: var(--video-grid-ratio);
  max-width: var(--video-grid-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--video-gap-desktop);
}

/* Satır 1 & 2: Yatay Videolar (2'şer adet, 16:9) */
.video-row-horizontal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--video-gap-desktop);
}

/* Satır 3: Dikey Videolar (4 adet, 9:16) */
.video-row-vertical {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--video-gap-desktop);
}

/* Video Kartı / Slot Çerçevesi */
.video-slot {
  position: relative;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-color: var(--color-placeholder-bg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* 16:9 Oranı (Yatay) */
.video-slot-horizontal {
  aspect-ratio: 16 / 9;
}

/* 9:16 Oranı (Dikey) */
.video-slot-vertical {
  aspect-ratio: 9 / 16;
}

/* İframe Stili */
.video-slot iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-card);
}

/* Video Kapak & Başlatma Arayüzü (Facade) */
.video-facade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0d0e12;
  user-select: none;
}

.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.38) 100%);
  transition: background 0.3s ease;
}

.video-play-btn {
  position: relative;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: rgba(20, 20, 25, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.video-slot-vertical .video-play-btn {
  width: 48px;
  height: 48px;
}

.video-play-btn svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: #ffffff;
  transition: transform 0.3s ease;
}

.video-slot-vertical .video-play-btn svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.video-facade:hover .video-poster {
  transform: scale(1.04);
}

.video-facade:hover .video-overlay {
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.28) 100%);
}

.video-facade:hover .video-play-btn {
  background-color: var(--color-primary, #0033ff);
  border-color: var(--color-primary, #0033ff);
  box-shadow: 0 8px 25px rgba(0, 51, 255, 0.45);
  transform: scale(1.12);
}

.video-facade:hover .video-play-btn svg {
  transform: scale(1.05);
}

.video-facade:active .video-play-btn {
  transform: scale(0.96);
}

/* Yer Tutucu (Placeholder) */
.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--color-placeholder-bg);
  color: var(--color-placeholder-text);
  padding: 24px;
  text-align: center;
  border-radius: var(--radius-card);
}

.video-placeholder-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.video-placeholder-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  margin-left: 2px;
}

.video-placeholder-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background-color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

/* Tablet Uyumu (810px - 1199px) */
@media (max-width: 1199px) and (min-width: 810px) {
  .video-grid-container {
    width: 80%;
    gap: var(--video-gap-tablet);
  }

  .video-row-horizontal {
    gap: var(--video-gap-tablet);
  }

  .video-row-vertical {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--video-gap-tablet);
  }

  .videografik-section {
    padding: var(--video-section-padding-top-tablet, 0px) 0 var(--video-section-padding-bottom-tablet, 48px);
  }
}

/* Mobil Uyumu (≤809px) */
@media (max-width: 809px) {
  .video-grid-container {
    width: 80%;
    gap: var(--video-gap-mobile);
  }

  .video-row-horizontal {
    grid-template-columns: 1fr;
    gap: var(--video-gap-mobile);
  }

  .video-row-vertical {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--video-gap-mobile);
  }

  .videografik-section {
    padding: var(--video-section-padding-top-mobile, 0px) 0 var(--video-section-padding-bottom-mobile, 32px);
  }

  .video-slot {
    border-radius: 20px;
  }

  .video-placeholder-badge {
    font-size: 12px;
    padding: 5px 12px;
  }
}