/* ==== GENEL AYARLAR ==== */

.eb-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden; /* Taşma yok */

  /* Varsayılan değişkenler – PHP tarafı bunları inline olarak override ediyor */
  --eb-overlay-color: rgba(0, 0, 0, 0.4);
  --eb-arrow-bg: rgba(0, 0, 0, 0.35);
  --eb-arrow-color: #ffffff;
  --eb-dot-color: rgba(255, 255, 255, 0.5);
  --eb-dot-active-color: #ffffff;
  --eb-height: 80vh;
}

/* Slider yüksekliği: tam genişlik + belirlenen yükseklik */
.eb-slider {
  position: relative;
  width: 100%;
  height: var(--eb-height, 80vh);
  max-height: 100vh;
  overflow: hidden;
}

/* Her slide */
.eb-slide {
  position: absolute;
  inset: 0;
  color: #fff;
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
  z-index: 0;
}

/* Aktif slide */
.eb-slide.active {
  opacity: 1;
  z-index: 2;
}

/* ==== GEÇİŞ EFEKTLERİ ==== */

/* Fade: yukarıdaki yapı geçerli (absolute + opacity) */
.eb-slider.eb-effect-fade .eb-slide {
  transition: opacity 0.7s ease-in-out;
}

/* Slide efekti: slider flex container, slide'lar yan yana */
.eb-slider.eb-effect-slide {
  display: flex;
  height: var(--eb-height, 80vh);
  max-height: 100vh;
  transition: transform 0.7s ease-in-out;
}

.eb-slider.eb-effect-slide .eb-slide {
  position: relative;
  flex: 0 0 100%;
  opacity: 1;
}

/* Zoom efekti */
.eb-slider.eb-effect-zoom .eb-slide {
  transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
  transform: scale(1.1);
}

.eb-slider.eb-effect-zoom .eb-slide.active {
  transform: scale(1);
}

/* Cube efekti */
.eb-slider.eb-effect-cube {
  perspective: 1000px;
}

.eb-slider.eb-effect-cube .eb-slide {
  transform-style: preserve-3d;
  transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

.eb-slider.eb-effect-cube .eb-slide:not(.active) {
  transform: rotateY(90deg);
  opacity: 0;
}

.eb-slider.eb-effect-cube .eb-slide.active {
  transform: rotateY(0deg);
}

/* Flip efekti */
.eb-slider.eb-effect-flip {
  perspective: 1000px;
}

.eb-slider.eb-effect-flip .eb-slide {
  transform-style: preserve-3d;
  transition: transform 0.7s ease-in-out, opacity 0.7s ease-in-out;
}

.eb-slider.eb-effect-flip .eb-slide:not(.active) {
  transform: rotateX(90deg);
  opacity: 0;
}

.eb-slider.eb-effect-flip .eb-slide.active {
  transform: rotateX(0deg);
}

/* ==== ARKA PLAN GÖRSEL / VİDEO ==== */

/* Medya alanı tüm slide'ı kaplasın */
.eb-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  width: 100%;
  height: 100%;
}

/* Video container (YouTube/Vimeo/MP4) */
.eb-slide-video-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100% !important;
  height: 100%;
  overflow: hidden;
  cursor: default !important; /* Varsayılan cursor - video tıklanamaz */
  left: 0;
  right: 0;
}

/* Görsel + video boyutlandırma */
.eb-slide-image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* Video iframe ve video elementleri */
.eb-slide-video-inner iframe,
.eb-slide-video-inner video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
  object-position: center;
  display: block !important;
  z-index: 2;
  pointer-events: none; /* Tıklanamaz - tamamen arka plan gibi */
  border: 0;
  margin: 0;
  padding: 0;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: default !important;
}

/* Video container'ın tam genişlik kaplaması için */
.eb-slide-media {
  width: 100% !important;
  max-width: 100% !important;
  left: 0;
  right: 0;
}

/* YouTube iframe tam genişlik */
.eb-slide-video-inner iframe.eb-youtube-iframe {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* MP4 video için pointer-events */
.eb-slide-video-inner video.eb-video-html5 {
  pointer-events: none;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* Mouse ile sarma için özel alan */
.eb-slide-video-inner .eb-video-seek-area {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: auto;
  cursor: ew-resize !important;
  background: transparent;
  width: 100%;
  height: 100%;
}

/* YouTube tüm UI elementlerini gizlemek için tam kapsamlı overlay'ler */
/* Alt kısım - YouTube logosu ve kontroller için */
.eb-slide-video-inner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 250px;
  background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  z-index: 20;
  pointer-events: none;
  cursor: default !important;
}

/* Üst kısım - kanal ismi, profil, butonlar için */
.eb-slide-video-inner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
  z-index: 20;
  pointer-events: none;
  cursor: default !important;
}

/* Sağ üst köşe - ekstra koruma için */
.eb-slide-video-inner .eb-youtube-overlay-top-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 200px;
  background: linear-gradient(to bottom left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.9) 40%, transparent 100%);
  z-index: 21;
  pointer-events: none;
  cursor: default !important;
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

/* YouTube iframe içindeki UI elementlerini gizlemek için ekstra CSS */
.eb-slide-video-inner iframe {
  /* YouTube kontrol çubuğunu gizle */
  -webkit-filter: contrast(1.1);
  filter: contrast(1.1);
}

/* Video üzerinde mouse ile sarma için görsel geri bildirim */
.eb-slide-video-inner.seeking {
  opacity: 0.9;
}

/* Overlay (karartma / renkli katman) */
.eb-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--eb-overlay-color);
  z-index: 1;
  pointer-events: none;
}

/* Video slide'larda overlay'i tamamen gizle */
.eb-slide.eb-slide-has-video::before {
  display: none;
}

/* ==== CAPTION (BAŞLIK + METİN) ==== */

.eb-slide-caption {
  position: absolute;
  z-index: 4;
  left: 8%;
  bottom: 18%;
  max-width: 40%;
  pointer-events: none;
}

/* Caption içindeki linkler tıklanabilir olmalı */
.eb-slide-caption a {
  pointer-events: auto;
}

/* CTA Butonu */
.eb-slide-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  pointer-events: auto;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.eb-slide-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Lazy Loading */
.eb-slide-image.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

.eb-slide-image.lazy.loaded {
  opacity: 1;
}

/* Progress Bar */
.eb-slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
  overflow: hidden;
}

.eb-slider-progress-bar {
  height: 100%;
  background: #ffffff;
  width: 0%;
  transition: width 0.1s linear;
}

.eb-slide-title {
  font-size: 38px;
  font-weight: 700;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.eb-slide.active .eb-slide-title {
  opacity: 1;
  transform: translateY(0);
}

.eb-slide-text {
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

.eb-slide.active .eb-slide-text {
  opacity: 1;
  transform: translateY(0);
}

.eb-slide-button {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.7s, transform 0.8s ease 0.7s;
}

.eb-slide.active .eb-slide-button {
  opacity: 1;
  transform: translateY(0);
}

/* ==== OKLAR ==== */

.eb-slider-prev,
.eb-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: var(--eb-arrow-bg);
  color: var(--eb-arrow-color);
  padding: 12px 16px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 50%;
  z-index: 5;
}

.eb-slider-prev { left: 20px; }
.eb-slider-next { right: 20px; }

.eb-slider-prev:hover,
.eb-slider-next:hover {
  filter: brightness(1.2);
}

/* ==== NOKTALAR ==== */

.eb-slider-dots {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
}

.eb-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: var(--eb-dot-color);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.eb-dot.active {
  background: var(--eb-dot-active-color);
  transform: scale(1.1);
}

/* ==== RESPONSIVE (TABLET + MOBİL) ==== */

@media (max-width: 1024px) {
  .eb-slide-caption {
    left: 6%;
    bottom: 18%;
    max-width: 60%;
  }

  .eb-slide-title {
    font-size: 30px;
  }

  .eb-slide-text {
    font-size: 14px;
  }
}

/* MOBİL – dikey ekranda mantıklı yükseklik + tam görüntü kaplama */
@media (max-width: 768px) {

  /* Slider yüksekliğini biraz düşür (görsel tam kapa, boşluk kalmasın) */
  .eb-slider {
    height: 60vh;
    max-height: 60vh;
  }

  .eb-slider.eb-effect-slide {
    height: 60vh;
    max-height: 60vh;
  }

  /* Caption daha geniş ve aşağıda */
  .eb-slide-caption {
    left: 5%;
    right: 5%;
    bottom: 12%;
    max-width: 90%;
  }

  .eb-slide-title {
    font-size: 22px;
  }

  .eb-slide-text {
    font-size: 13px;
  }

  /* Oklar biraz küçülsün */
  .eb-slider-prev,
  .eb-slider-next {
    padding: 8px 10px;
    font-size: 18px;
  }
}

/* Çok dar ekranlar (küçük telefonlar) */
@media (max-width: 480px) {
  .eb-slider,
  .eb-slider.eb-effect-slide {
    height: 55vh;
    max-height: 55vh;
  }

  .eb-slide-title {
    font-size: 20px;
  }
}
