/* === Temel Swiper Yapisi === */
.swiper {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* === Yatay Slide Gosterimi === */
.swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  box-sizing: border-box; 
}

/* === Her bir slayt === */
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.swiper-slide-active {
  pointer-events: auto;
  opacity: 1;
  z-index: 2;
}

/* === Resim === */
.slide-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100vh;
  object-fit: cover;
}

/* === Overlay === */
.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

/* === Yazı icerigi === */
.slide-content {
  position: absolute;
  top: 50%;
  width: 100%;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 0 25%;
  transform: translateY(-50%);
  text-align: left;
  z-index: 2;
}

.text-left {
  left: 0;
  text-align: left;
}

.slide-content.text-center {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.text-right {
  right: 0;
  text-align: right;
}

/* === Baslklar === */
.slide-content h2 {
  font-size: 3.875rem;
  margin: 0 0 20px;
  line-height: 1.2;
}

.slide-content h3 {
  font-size: 3.0rem;
  margin: 0 0 10px;
  line-height: 1.3;
}

.slide-content p {
  font-size: 1rem;
  margin: 0 0 20px;
  line-height: 1.6;
}

/* === Butonlar === */
.slider-buttons {
  display: inline-block;
  margin-top: 10px;
}

.slider-btn {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 10px;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-size: 1rem;
}

/* === Navigation Okları === */
.swiper-button-next,
.swiper-button-prev {
  position: absolute;
  top: 50%;
  width: 70px;
  height: 70px;
  margin-top: -32px; 
  z-index: 10;
  background-size: 60% 60%;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

/* Hover efekti  */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.swiper-button-prev {
  left: 20px;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M15.41 7.41L10.83 12l4.58 4.59L14 18l-6-6 6-6z'/></svg>");
}

.swiper-button-next {
  right: 20px;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='white' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'><path d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/></svg>");
}

/* Baslik ve aciklama gecis efekti */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Butonlar icin yumusak gecis efekti */
@keyframes fadeInUpSmooth {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Baslangicta tum icerikler gizli */
.slide-content h2,
.slide-content h3,
.slide-content p,
.slide-content .slider-btn {
  opacity: 0;
}

/* Baslik ve aciklamalar */
.slide-animate h2 {
  animation: fadeInLeft 2.0s ease forwards;
  animation-delay: 0.4s;
}
.slide-animate h3 {
  animation: fadeInLeft 2.0s ease forwards;
  animation-delay: 0.6s;
}
.slide-animate p {
  animation: fadeInLeft 2.0s ease forwards;
  animation-delay: 0.8s;
}

/* Butonlar */
.slide-animate .slider-btn:first-of-type {
  animation: fadeInUpSmooth 1s ease-out forwards;
  animation-delay: 1s;
}
.slide-animate .slider-btn:last-of-type {
  animation: fadeInUpSmooth 1.1s ease-out forwards;
  animation-delay: 1.2s;
}

/* Mouse .swiper alanına girince butonlari göster */
.swiper-button-prev,
.swiper-button-next {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.swiper:hover .swiper-button-prev,
.swiper:hover .swiper-button-next {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.6s ease;
}

/* Buton hover'da resim Onizlemesi göster */
.nav-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.0s ease, visibility 1.0s ease;
  z-index: 1;
}

.swiper-button-prev:hover .prev-preview,
.swiper-button-next:hover .next-preview {
  opacity: 1;
}

.nav-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* MOBIL TASARIM */
@media (max-width: 767px) {
    .swiper {
      position: relative;
      width: 100%;
      height: calc(100vw * 0.75);
      max-height: 450px;
      overflow: hidden;
    }
    
    .slide-content {
      position: absolute;
      top: 40%;
      transform: translateY(-40%);
      text-align: left !important;
      padding: 0 20px !important;
    }

    .slide-img {
      height: calc(100vw * 0.75);
      max-height: 450px;
      object-position: center !important;
    }
  
    .slide-content h2 {
      font-size: 1.6rem;
    }

    .slide-content h3 {
      font-size: 1.5rem;
    }

    .slide-content p {
      font-size: 0.90rem;
    }

    .swiper-button-next,
    .swiper-button-prev {
      display: none !important;
    } 

  .slider-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
  }

  .slider-buttons .slider-btn {
    display: inline-block;
    flex: 0 0 auto;
    max-width: calc(50% - 10px);
    margin: 5px 10px 5px 0;
    font-size: 0.80rem;
    text-align: center;
    white-space: nowrap;
  }
}

/* Tabletler ve kucuk laptoplar icin buton ve icerik ayari */
@media (min-width: 768px) and (max-width: 1024px) {
  .slide-content {
    text-align: left !important; 
    top: 40% !important;
    transform: translateY(-40%) !important;
    padding: 0 10% !important;
    position: absolute !important;
  }

  .slider-buttons {
    display: block; 
    text-align: left;
    margin-top: 20px;
  }

  .slider-buttons .slider-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    white-space: nowrap;
    width: auto;
    max-width: none;
    text-align: center;
  }
}

/* Tabletler ve kucuk laptoplar icin ekstra esneklik */
@media (min-width: 1025px) and (max-width: 1300px) {
  .slide-content {
    text-align: left !important;
    top: 40% !important;
    transform: translateY(-40%) !important;
    padding: 0 18% !important;
    position: absolute !important;
  }

  .slider-buttons {
    display: block; 
    text-align: left;
    margin-top: 20px;
  }

  .slider-buttons .slider-btn {
    display: inline-block;
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    white-space: nowrap;
    width: auto;
    max-width: none;
    text-align: center;
  }
}

/* Masaustu gorunum icin ayarlar */
@media (min-width: 1301px) {
  .swiper {
    height: 650px !important;
    max-height: 650px !important;
  }

  .swiper-wrapper,
  .swiper-slide {
    height: 100% !important;
  }

  .slide-img {
    height: 100% !important;
    max-height: 650px !important;
    object-fit: cover;
  }

  .slide-overlay,
  .slide-content {
    position: absolute;
    top: 50%;
    width: 100%;
    overflow-y: auto;
    padding: 0 25%;
    transform: translateY(-50%);
    text-align: left;
    max-height: 650px !important;
    z-index: 2;
  }
}
