/* ================================================================
   SLIDER CSS - v2 (HTML yapısına uyumlu)
   - #slideshows .slideshow-container
   - .slideshow-item
   - .slideshow-prev / .slideshow-next
   - #slideshow-pagination .dot (button)
   - .slide-layer + data-delay
   ================================================================ */


/* ================================================================
   1) TEMEL SLIDER YAPISI (Reset & Core)
   ================================================================ */
.slideshow-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000;

  /* auto yükseklik modunda 0px olmaması için */
  min-height: 250px;

  /* iOS/Android tap highlight kapat */
  -webkit-tap-highlight-color: transparent;
}

.slideshow-item {
  display: none;
  position: absolute;
  inset: 0; /* top/right/bottom/left = 0 */
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* aktif slide görünür */
.slideshow-item.active {
  display: block;
}

.slideshow-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}


/* ================================================================
   2) NAVIGATION (Prev / Next) - Varsayılan
   ================================================================ */
.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  font-size: 2.5rem;
  line-height: 1;
  color: #fff;

  cursor: pointer;
  padding: 15px;
  z-index: 90;

  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  user-select: none;
  transition: all 0.3s ease;

  /* erişilebilirlik */
  outline: none;
}

.slideshow-prev { left: 15px; }
.slideshow-next { right: 15px; }

.slideshow-prev:hover,
.slideshow-next:hover {
  transform: translateY(-50%) scale(1.05);
}


/* ================================================================
   3) PAGINATION (Dots)
   ================================================================ */
.slideshow-pagination {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 90;

  /* button dotlar için */
  display: flex;
  justify-content: center;
  gap: 12px;
}

.slideshow-pagination .dot {
  appearance: none;
  border: none;
  outline: none;

  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);

  border-radius: 50%;
  cursor: pointer;
  transition: 0.25s ease;

  padding: 0;
}

.slideshow-pagination .dot.active {
  background: #fff;
  transform: scale(1.2);
}


/* ================================================================
   4) YAZI KATMANLARI (Layers)
   ================================================================ */
.slide-layer {
  position: absolute;
  z-index: 20;

  color: #fff;
  opacity: 0;

  /* layer animasyonu */
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(10px);
}

.slideshow-item.active .slide-layer {
  opacity: 1;
  transform: translateY(0);
}

/* Konumlar (Hem text-left hem text-start destek) */
.slide-layer.text-center {
  left: 50%;
  transform: translateX(-50%);
  top: 40%;
  text-align: center;
}

.slide-layer.text-left,
.slide-layer.text-start {
  left: 10%;
  top: 40%;
  text-align: left;
}

.slide-layer.text-end {
  right: 10%;
  top: 40%;
  text-align: right;
}

/* Layer tipleri için örnek font ayarı (isteğe göre) */
.slide-layer.title {
  font-size: clamp(20px, 3vw, 42px);
  font-weight: 700;
  max-width: 90%;
}

.slide-layer.desc {
  margin-top: 12px;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  max-width: 70%;
}

.slide-layer.desc2 {
  margin-top: 8px;
  font-size: clamp(12px, 1.3vw, 16px);
  opacity: 0.9;
  max-width: 70%;
}


/* ================================================================
   5) MOBİL UYUMLULUK
   ================================================================ */
@media (max-width: 768px) {
  .slideshow-container {
    height: auto !important;
    min-height: 220px;
  }

  .slideshow-item {
    position: relative !important;
    height: auto !important;
  }

  .slideshow-item img {
    height: auto !important;
  }

  .slideshow-prev,
  .slideshow-next {
    font-size: 1.8rem;
    padding: 10px;
  }

  .slideshow-pagination {
    bottom: 14px;
    gap: 10px;
  }

  .slide-layer.text-center,
  .slide-layer.text-left,
  .slide-layer.text-start,
  .slide-layer.text-end {
    top: 28%;
  }

  .slide-layer.desc,
  .slide-layer.desc2 {
    max-width: 90%;
  }
}


/* ================================================================
   6) ANİMASYON KÜTÜPHANESİ
   NOT:
   - Bu animasyonlar .slideshow-item üzerine uygulanır.
   - Transform çakışmalarını minimize etmek için item animasyonlarında
     translate3d kullanıyoruz.
   ================================================================ */
.fade { animation: fadeAnim 0.8s ease forwards; }
@keyframes fadeAnim { from { opacity: 0; } to { opacity: 1; } }

.slideLeft { animation: slideLeftAnim 0.8s ease forwards; }
@keyframes slideLeftAnim { from { transform: translate3d(100%,0,0); } to { transform: translate3d(0,0,0); } }

.slideRight { animation: slideRightAnim 0.8s ease forwards; }
@keyframes slideRightAnim { from { transform: translate3d(-100%,0,0); } to { transform: translate3d(0,0,0); } }

.slideUp { animation: slideUpAnim 0.8s ease forwards; }
@keyframes slideUpAnim { from { transform: translate3d(0,100%,0); } to { transform: translate3d(0,0,0); } }

.slideDown { animation: slideDownAnim 0.8s ease forwards; }
@keyframes slideDownAnim { from { transform: translate3d(0,-100%,0); } to { transform: translate3d(0,0,0); } }

.zoomIn { animation: zoomInAnim 0.8s ease forwards; }
@keyframes zoomInAnim { from { transform: scale(1.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.zoomOut { animation: zoomOutAnim 0.8s ease forwards; }
@keyframes zoomOutAnim { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.rotateIn { animation: rotateInAnim 0.8s ease forwards; }
@keyframes rotateInAnim { from { transform: rotate(-10deg) scale(0.95); opacity: 0; } to { transform: rotate(0deg) scale(1); opacity: 1; } }

.rotateOut { animation: rotateOutAnim 0.8s ease forwards; }
@keyframes rotateOutAnim { from { transform: rotate(10deg) scale(1.05); opacity: 0; } to { transform: rotate(0deg) scale(1); opacity: 1; } }

.parallax { animation: parallaxAnim 1s cubic-bezier(0.2, 0, 0.2, 1) forwards; }
@keyframes parallaxAnim { from { transform: translate3d(30%,0,0); opacity: 0; } to { transform: translate3d(0,0,0); opacity: 1; } }


/* ================================================================
   7) TEMA SİSTEMİ (theme-...)
   ================================================================ */

/* --- TEMA: Minimal & Modern (theme-minimal) --- */
.theme-minimal .slideshow-prev,
.theme-minimal .slideshow-next {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);

  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  font-size: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.theme-minimal .slideshow-pagination {
  gap: 8px;
}

.theme-minimal .slideshow-pagination .dot {
  width: 25px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.theme-minimal .slideshow-pagination .dot.active {
  width: 45px;
  background: #fff;
  transform: none;
}

/* --- TEMA: Keskin & Koyu (theme-dark) --- */
.theme-dark .slideshow-prev,
.theme-dark .slideshow-next {
  background: #000;
  color: #fff;
  width: 40px;
  height: 60px;
  border-radius: 0;
  opacity: 0.85;
}

.theme-dark .slideshow-prev { left: 0; }
.theme-dark .slideshow-next { right: 0; }

.theme-dark .slideshow-pagination .dot {
  border-radius: 0;
  width: 12px;
  height: 12px;
  background: transparent;
  border: 2px solid #fff;
}

.theme-dark .slideshow-pagination .dot.active {
  background: #e74c3c;
  border-color: #e74c3c;
  transform: rotate(45deg);
}

/* --- TEMA: Yüzen (theme-floating) --- */
.theme-floating .slideshow-prev,
.theme-floating .slideshow-next {
  background: #fff;
  color: #333;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 50%;
  width: 55px;
  height: 55px;
}

.theme-floating .slideshow-pagination {
  bottom: 25px;
  background: rgba(0,0,0,0.15);
  width: fit-content;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 15px;
  border-radius: 30px;
}

/* --- TEMA: Neon (theme-neon) --- */
.theme-neon .slideshow-prev,
.theme-neon .slideshow-next {
  background: rgba(0, 0, 0, 0.85) !important;
  color: #00ffcc !important;

  width: 50px;
  height: 50px;

  border: 2px solid #00ffcc !important;
  border-radius: 0;
  text-shadow: 0 0 10px #00ffcc;

  box-shadow: 0 0 15px rgba(0, 255, 204, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-neon .slideshow-prev:hover,
.theme-neon .slideshow-next:hover {
  background: #00ffcc !important;
  color: #000 !important;
  box-shadow: 0 0 30px #00ffcc;
}

.theme-neon .slideshow-pagination .dot {
  width: 12px;
  height: 12px;
  border: 2px solid #00ffcc;
  background: transparent;
  box-shadow: 0 0 5px #00ffcc;
}

.theme-neon .slideshow-pagination .dot.active {
  background: #00ffcc;
  transform: scale(1.25);
}

/* --- TEMA: Luxury Gold (theme-luxury) --- */
.theme-luxury .slideshow-prev,
.theme-luxury .slideshow-next {
  color: #d4af37;
  font-weight: 100;
  font-size: 3.5rem;
}

.theme-luxury .slideshow-pagination .dot {
  width: 8px;
  height: 8px;
  background: #d4af37;
  transform: rotate(45deg);
  opacity: 0.4;
  border-radius: 0;
}

.theme-luxury .slideshow-pagination .dot.active {
  opacity: 1;
  transform: rotate(45deg) scale(1.8);
}


/* ================================================================
   8) LINE (ÇİZGİ) VARYASYONLARI
   ================================================================ */

/* --- LINE V1: Left Vertical (theme-lines) --- */
.theme-lines .slideshow-pagination {
  left: 30px;
  right: auto;
  bottom: 50%;
  transform: translateY(50%);
  width: auto;
  text-align: left;
  flex-direction: column;
  align-items: flex-start;
}

.theme-lines .slideshow-pagination .dot {
  width: 2px;
  height: 35px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 0;
}

.theme-lines .slideshow-pagination .dot.active {
  background: #fff;
  height: 60px;
}

/* --- LINE V2: Bottom Progress (theme-progress) --- */
.theme-progress .slideshow-pagination {
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0;
  gap: 0;
}

.theme-progress .slideshow-pagination .dot {
  flex: 1;
  height: 5px;
  margin: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.2);
}

.theme-progress .slideshow-pagination .dot.active {
  background: #007bff;
  transform: none;
}

.theme-progress .slideshow-prev,
.theme-progress .slideshow-next {
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 80px;
  top: auto;
  bottom: 20px;
  transform: none;
}

/* --- LINE V3: Right Side Slim (theme-slim-right) --- */
.theme-slim-right .slideshow-pagination {
  right: 20px;
  left: auto;
  bottom: 50%;
  transform: translateY(50%);
  width: auto;
  flex-direction: column;
  align-items: flex-end;
}

.theme-slim-right .slideshow-pagination .dot {
  width: 40px;
  height: 2px;
  margin: 10px 0;
  background: #fff;
  opacity: 0.3;
  border-radius: 0;
}

.theme-slim-right .slideshow-pagination .dot.active {
  opacity: 1;
  width: 60px;
  background: #ffcc00;
}

/* --- LINE V4: Numbered Lines (theme-numbers) --- */
.theme-numbers .slideshow-pagination {
  bottom: 40px;
  align-items: flex-end;
  gap: 20px;
}

.theme-numbers .slideshow-pagination .dot {
  width: 2px;
  height: 20px;
  background: #fff;
  position: relative;
  border-radius: 0;
}

.theme-numbers .slideshow-pagination .dot.active {
  height: 40px;
  background: #00ffcc;
}

.theme-numbers .slideshow-pagination .dot.active::before {
  content: "NOW";
  position: absolute;
  top: -20px;
  left: -10px;
  font-size: 10px;
  color: #00ffcc;
}
