/* hero/hero.css */

/* ===== 1) Hero Bölümünün Genel Ayarları ===== */
:root {
  --hero-height: 90vh;
  --slide-border-radius: 50px;
  --nav-size: 2rem;
  --transition-speed: 0.3s;
  --shadow-color: rgba(73, 72, 72, 0.6);
}

.hero-section {
  position: relative;
  width: 100%;
  height: var(--hero-height);
  overflow: hidden;
  transition: background-color 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: background-color;
  contain: layout style paint;
}

.hero-container {
  width: 100%;
  height: 100%;
}

.hero-swiper {
  width: 100%;
  height: 100%;
}

/* ===== 2) Her Bir Slayt (swiper-slide) ===== */
.hero-swiper .swiper-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent; /* JS ile data-bg atanacak */
}

/* ===== 4) Slide Kart: Siyah, Yuvarlak Kenarlı, Gölgelendirilmiş ===== */
.slide-card {
  position: relative;
  margin: 0 auto;
  width: clamp(320px, 85vw, 1200px); /* <= büyük ekranda taşma yok */
  aspect-ratio: 16 / 9;              /* oranı koru */
  background-color: #000;
  border-radius: var(--slide-border-radius);
  overflow: hidden;
  box-shadow: 0 50px 50px var(--shadow-color);
}
/* ===== 5) Kart İçindeki Görsel ===== */
.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Elegant başlıklı slide için ekstra şeffaflık */
.swiper-slide[data-title="elegant"] .slide-overlay {
  background: rgba(0, 0, 0, 0.01) !important;
}

/* ===== 6) Kart İçi Yarı Saydam Overlay (İsteğe Bağlı) ===== */
.slide-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;              /* eksikti: overlay tüm kartı kaplasın */
  background: rgba(0, 0, 0, 0.2);
  z-index: 3;
}

/* ===== 7) Kart İçi Metin ve Buton ===== */
.slide-content {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 5;
  width: 85%;
  padding: 0 1rem;
}

.slide-text {
  font-size: clamp(0.8rem, 2.5vw, 1.2rem);
  margin-top: 1rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.hero-button {
  display: inline-block;
  background-color: #6e7c7c;
  color: #000000;
  padding: clamp(0.4rem, 1.5vw, 0.75rem) clamp(0.8rem, 3vw, 2rem);
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-button:hover {
  background-color: #000;
  color: #fff;
}

/* ===== 8) Navigasyon Okları ===== */
.hero-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  z-index: 10;
  transition: box-shadow var(--transition-speed) ease;
  overflow: hidden;
  min-height: 44px; /* Touch target minimum */
  min-width: 44px;
  outline: none;
}

.hero-nav:focus-visible {

  outline-offset: 2px;
}

.hero-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-nav::before {
  content: "";
  position: absolute;
  inset: 0;

  transform: scaleX(0); /* soldan sağa dolma başlangıcı */
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
  z-index: 9;
}

.hero-nav i,
.hero-nav .nav-label {
  position: relative;
  z-index: 11;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-nav i {
  font-size: var(--nav-size);
  color: #ffffff;
  margin: 0 0.5rem 0 0;
}

.nav-label {
  font-size: 1.5rem;
  color: #000;
  opacity: 0.9;
  white-space: nowrap;
  margin: 0;
  position: relative;
}

/* Konumlandırma */
.hero-nav-prev {
  left: 30px;
  flex-direction: row;
}

.hero-nav-next {
  right: 30px;
  flex-direction: row-reverse;
}

/* Hover'da dolum, renk ve dönme efektleri */
.hero-nav:hover::before {
  transform: scaleX(1);
}

.hero-nav:hover i,
.hero-nav:hover .nav-label {
  color: #000000;
}

.hero-nav:hover i {
  transform: rotate(360deg);
}

/* ===== 9) Başlık stili: alt kenardan %50 taşsın ===== */
.slide-title {
  position: absolute;
  left: 50%;
  bottom: 0%; /* Dilersen yukarı-aşağı ayarı burada */
  transform: translate(-50%, 50%);
  font-size: clamp(2.8rem, 4.5vw, 6rem);
  color: #fff;
  font-weight: 400;
  padding: 0.1em 0.5em;
  border-radius: 2rem; /* 🔥 Oval görünüm için esas olay bu */


  text-transform: uppercase;
  letter-spacing: 1.2px;
  z-index: 6;
  white-space: nowrap;
  pointer-events: none;
  transition: all 0.3s ease-in-out;
  backdrop-filter: blur(0.5px); /* Hafif blur efekti, modern durur */
}

/* ===== 10) Responsive (Fluid + Breakpoints) ===== */
@media (min-width: 1700px) {
  .slide-card {
    width: 95%;

      aspect-ratio: 16 / 8;

  height: 720px;
  }
  .slide-title {
    bottom: 83%;
  }
}
@media screen and (min-resolution: 120dpi) {
  .slide-card {
    height: clamp(580px, 40vh, 450px);
  }
  
  .slide-content {
    top: 85%;
  }
}
@media (min-width: 1340px) and (max-width: 1700px) {
  .hero-section {
    height: 95vh;
  }
  .slide-title {
    bottom: 83%;
  }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .slide-card {
    width: 95%;
  }
  .slide-title {
    bottom: 83%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .slide-card {
    width: 95%;
  }
  .slide-title {
    bottom: 83%;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .slide-card {
    width: 90%;
  }
  .slide-title {
    bottom: 8383
  }
  .slide-text {
    margin-top: 1.5rem;
  }
}

@media (max-width: 575px) {
  .slide-card {
    width: 47%;
    height: 400px;
    border-radius: 0;
    gap: 10px;
    border-radius: 24px;
  }
  .slide-overlay {
    gap: 10px;
  }
  .slide-image {
    height: 100%;
    object-fit: cover;
  }
  .slide-title {
    bottom: 88
  }
  .slide-content {
    top: 55%;
    padding: 0 0.5rem;
  }
  .slide-text {
    font-size: 0.7rem;
  }
  .hero-nav {
    width: 36px;
    height: 36px;
  }
  .hero-nav i {
    font-size: 0.9rem;
  }
  .nav-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .hero-nav,
  .hero-nav i,
  .slide-title {
    transition: none;
  }

  .hero-nav:hover i {
    transform: none;
  }
}

@media (prefers-contrast: high) {
  .slide-overlay {
    background: rgba(0, 0, 0, 0.7);
  }

  .slide-title {
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid #fff;
  }
}
