/* slider-popup.css */

.slider-popup-overlay {
  position: fixed;       /* ⚠️ BURASI KRİTİK: "fixed" olmalı */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;        /* Diğer her şeyin üstünde */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.slider-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.slider-popup-content {
  position: relative;
  width: min(95vw, 400px);      /* Maksimum 400px, ama küçük ekranda daralır */
  aspect-ratio: 9 / 16;         /* 🔑 9:16 oranı sabit */
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.slider-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* Tüm resim görünsün, kırpma olmasın */
  display: block;
  background: #f8f8f8;
}

/* Oklar */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  font-size: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-arrow:hover {
  background: white;
}

/* Noktalar (indicators) */
.slider-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.slider-indicator.active {
  background: white;
}

/* Küçük ekranlarda daha dar */
@media (max-width: 360px) {
  .slider-popup-content {
    width: 92vw;
  }
}