/**
 * Han Hero Slider – CSS
 * hantema.com | v1.0.0
 */

/* ============================
   WRAPPER & TEMEL
   ============================ */
.hhs-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  user-select: none;
}

.hhs-slider-wrap {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
}

.hhs-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  will-change: transform;
}

/* ============================
   SLAYT
   ============================ */
.hhs-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hhs-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 8s ease-out;
  transform: scale(1.04);
}

.hhs-slide.hhs-active .hhs-slide-bg {
  transform: scale(1);
}

.hhs-slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ============================
   İÇERİK
   ============================ */
.hhs-content-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  padding: 80px 60px;
  margin: 0 auto;
}

.hhs-slide-inner {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================
   ROZET
   ============================ */
.hhs-badge-wrap {
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease 0.1s, transform 0.55s ease 0.1s;
}

.hhs-badge {
  display: inline-block;
  background: #3b82f6;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
}

/* ============================
   ALT BAŞLIK
   ============================ */
.hhs-subtitle {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin: 0 0 14px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease 0.2s, transform 0.55s ease 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hhs-subtitle::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================
   BAŞLIK
   ============================ */
.hhs-title {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin: 0 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

/* ============================
   AÇIKLAMA
   ============================ */
.hhs-desc {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.68);
  margin: 0 0 28px;
  max-width: 560px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease 0.42s, transform 0.55s ease 0.42s;
}

/* ============================
   İSTATİSTİKLER
   ============================ */
.hhs-stats {
  display: flex;
  gap: 0;
  margin-bottom: 36px;
  border-top: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 18px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease 0.5s, transform 0.55s ease 0.5s;
}

.hhs-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.hhs-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}

.hhs-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.01em;
}

.hhs-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ============================
   BUTONLAR
   ============================ */
.hhs-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease 0.58s, transform 0.55s ease 0.58s;
}

.hhs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  border: 2px solid transparent;
  white-space: nowrap;
}

.hhs-btn-icon { width: 18px; height: 18px; flex-shrink: 0; }

.hhs-btn-primary {
  background: #3b82f6;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(59,130,246,0.45);
}

.hhs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59,130,246,0.55);
  filter: brightness(1.08);
  color: #fff !important;
}

.hhs-btn-secondary {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,0.7);
}

.hhs-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
  color: #fff !important;
}

/* ============================
   AKTİF SLAYT ANİMASYON
   ============================ */
.hhs-slide.hhs-active .hhs-badge-wrap,
.hhs-slide.hhs-active .hhs-subtitle,
.hhs-slide.hhs-active .hhs-title,
.hhs-slide.hhs-active .hhs-desc,
.hhs-slide.hhs-active .hhs-stats,
.hhs-slide.hhs-active .hhs-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   DEĞERLENDİRME KARTI
   ============================ */
.hhs-rating-card {
  position: absolute;
  right: 60px;
  bottom: 80px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 20px 24px;
  min-width: 240px;
  max-width: 280px;
  z-index: 3;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.6s ease 0.7s, transform 0.6s ease 0.7s;
}

.hhs-slide.hhs-active .hhs-rating-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hhs-stars { color: #f59e0b; font-size: 18px; letter-spacing: 2px; margin-bottom: 8px; }
.hhs-rating-title { font-size: 14px; font-weight: 700; color: #111; margin-bottom: 4px; }
.hhs-rating-text  { font-size: 12px; color: #666; line-height: 1.4; }

/* ============================
   OK BUTONLARI
   ============================ */
.hhs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hhs-arrow svg { width: 22px; height: 22px; pointer-events: none; }
.hhs-arrow-prev { left: 28px; }
.hhs-arrow-next { right: 28px; }

.hhs-arrow:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-50%) scale(1.08);
}

/* ============================
   NOKTA NAVİGASYON
   ============================ */
.hhs-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.hhs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease, border-radius 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.hhs-dot.hhs-dot-active {
  background: #fff;
  width: 28px;
  border-radius: 4px;
}

/* ============================
   İLERLEME ÇUBUĞU
   ============================ */
.hhs-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.15);
  z-index: 10;
}

.hhs-progress-bar {
  height: 100%;
  width: 0%;
  background: #3b82f6;
}

/* ============================
   SAYAÇ
   ============================ */
.hhs-slide-counter {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 10;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 600;
}

.hhs-current { color: #fff; font-size: 18px; font-weight: 800; }

/* ============================
   FADE EFEKTİ
   ============================ */
.hhs-wrapper[data-effect="fade"] .hhs-track { display: block; position: relative; }
.hhs-wrapper[data-effect="fade"] .hhs-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 0.9s ease; pointer-events: none;
}
.hhs-wrapper[data-effect="fade"] .hhs-slide.hhs-active { opacity: 1; pointer-events: auto; }

/* ============================
   ZOOM EFEKTİ
   ============================ */
.hhs-wrapper[data-effect="zoom"] .hhs-track { display: block; position: relative; }
.hhs-wrapper[data-effect="zoom"] .hhs-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.1);
  transition: opacity 0.8s ease, transform 0.8s ease; pointer-events: none;
}
.hhs-wrapper[data-effect="zoom"] .hhs-slide.hhs-active { opacity: 1; transform: scale(1); pointer-events: auto; }

/* ============================
   FLIP EFEKTİ
   ============================ */
.hhs-wrapper[data-effect="flip"] { perspective: 1200px; }
.hhs-wrapper[data-effect="flip"] .hhs-track { display: block; position: relative; }
.hhs-wrapper[data-effect="flip"] .hhs-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: rotateY(90deg); transform-origin: left center;
  transition: opacity 0.7s ease, transform 0.7s ease; pointer-events: none;
  backface-visibility: hidden;
}
.hhs-wrapper[data-effect="flip"] .hhs-slide.hhs-active { opacity: 1; transform: rotateY(0deg); pointer-events: auto; }

/* ============================
   CARDS EFEKTİ
   ============================ */
.hhs-wrapper[data-effect="cards"] .hhs-track { display: block; position: relative; }
.hhs-wrapper[data-effect="cards"] .hhs-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(0.88) translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease; pointer-events: none;
  border-radius: 20px; overflow: hidden;
}
.hhs-wrapper[data-effect="cards"] .hhs-slide.hhs-active { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }

/* ============================
   CREATIVE EFEKTİ
   ============================ */
.hhs-wrapper[data-effect="creative"] .hhs-track { display: block; position: relative; }
.hhs-wrapper[data-effect="creative"] .hhs-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateX(60%) skewX(-8deg);
  transition: opacity 0.75s cubic-bezier(0.77,0,0.18,1), transform 0.75s cubic-bezier(0.77,0,0.18,1);
  pointer-events: none;
}
.hhs-wrapper[data-effect="creative"] .hhs-slide.hhs-active { opacity: 1; transform: translateX(0) skewX(0); pointer-events: auto; }

/* ============================
   DİKEY SLIDER
   ============================ */
.hhs-wrapper[data-direction="vertical"] .hhs-track { flex-direction: column; }

/* ============================
   MOBİL
   ============================ */
@media (max-width: 1024px) {
  .hhs-title { font-size: 42px; }
  .hhs-content-container { padding: 60px 40px; }
  .hhs-arrow-prev { left: 14px; }
  .hhs-arrow-next { right: 14px; }
  .hhs-rating-card { right: 20px; bottom: 70px; min-width: 200px; }
}

@media (max-width: 768px) {
  .hhs-slider-wrap { height: 88vh; }
  .hhs-content-container { padding: 40px 20px; }
  .hhs-title { font-size: 30px; line-height: 1.18; margin-bottom: 14px; }
  .hhs-subtitle { font-size: 11px; margin-bottom: 10px; }
  .hhs-desc { font-size: 14px; margin-bottom: 18px; max-width: 100%; }
  .hhs-stats { padding: 12px 0; margin-bottom: 22px; }
  .hhs-stat { padding-right: 16px; margin-right: 16px; }
  .hhs-stat-num { font-size: 20px; }
  .hhs-stat-label { font-size: 10px; }
  .hhs-buttons { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hhs-btn { font-size: 13px; padding: 12px 24px; }
  .hhs-rating-card { right: 12px; bottom: 64px; max-width: 180px; padding: 12px 14px; border-radius: 14px; }
  .hhs-rating-title { font-size: 12px; }
  .hhs-rating-text { font-size: 11px; }
  .hhs-stars { font-size: 14px; }
  .hhs-arrow { width: 38px; height: 38px; }
  .hhs-arrow svg { width: 17px; height: 17px; }
  .hhs-arrow-prev { left: 8px; }
  .hhs-arrow-next { right: 8px; }
  .hhs-dots { bottom: 18px; gap: 7px; }
  .hhs-dot { width: 6px; height: 6px; }
  .hhs-dot.hhs-dot-active { width: 20px; }
  .hhs-slide-counter { font-size: 11px; bottom: 20px; right: 16px; }
  .hhs-current { font-size: 15px; }
}

@media (max-width: 480px) {
  .hhs-title { font-size: 26px; }
  .hhs-content-container { padding: 32px 16px; }
  .hhs-rating-card { display: none; }
}

/* ============================
   REDUCED MOTION
   ============================ */
@media (prefers-reduced-motion: reduce) {
  .hhs-track, .hhs-slide, .hhs-badge-wrap, .hhs-subtitle,
  .hhs-title, .hhs-desc, .hhs-stats, .hhs-buttons,
  .hhs-rating-card, .hhs-slide-bg {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* ============================
   ELEMENTOR EDİTÖR
   ============================ */
.elementor-editor-active .hhs-badge-wrap,
.elementor-editor-active .hhs-subtitle,
.elementor-editor-active .hhs-title,
.elementor-editor-active .hhs-desc,
.elementor-editor-active .hhs-stats,
.elementor-editor-active .hhs-buttons,
.elementor-editor-active .hhs-rating-card {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================
   İKİ SÜTUN LAYOUT (Sağ Görsel)
   ============================ */

/* Grid kapsayıcı */
.hhs-slide-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  max-width: 1300px;
  margin: 0 auto;
}

/* Sol sütun: İçerik */
.hhs-left-col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Sağ görsel varsa sol sütun %55 alır */
.hhs-has-right-img .hhs-left-col {
  flex: 0 0 55%;
  max-width: 55%;
}

/* Sağ sütun: Görsel */
.hhs-right-col {
  flex: 0 0 45%;
  max-width: 45%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 2;
}

/* Görsel sarmalayıcı */
.hhs-right-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Görselin kendisi */
.hhs-right-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  opacity: 0;
  transform: translateX(40px) scale(0.97);
  transition: opacity 0.7s ease 0.4s, transform 0.7s ease 0.4s;
}

.hhs-slide.hhs-active .hhs-right-img {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* ============================
   GÖRSEL STİLLERİ
   ============================ */

/* Yuvarlak Köşe */
.hhs-right-style-rounded .hhs-right-img-wrap {
  padding: 24px 24px 24px 0;
}
.hhs-right-style-rounded .hhs-right-img {
  border-radius: 24px;
}

/* Tam Yuvarlak */
.hhs-right-style-circle .hhs-right-img-wrap {
  padding: 32px;
}
.hhs-right-style-circle .hhs-right-img {
  border-radius: 50%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Düz */
.hhs-right-style-straight .hhs-right-img {
  border-radius: 0;
}

/* Organik (Blob) */
.hhs-right-style-blob .hhs-right-img-wrap {
  padding: 24px 24px 24px 0;
}
.hhs-right-style-blob .hhs-right-img {
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  animation: hhs-blob-morph 8s ease-in-out infinite alternate;
}

@keyframes hhs-blob-morph {
  0%   { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%  { border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%; }
  66%  { border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%; }
  100% { border-radius: 45% 55% 40% 60% / 55% 45% 55% 45%; }
}

/* ============================
   RATING KARTI – GÖRSELE YAPIŞTIK
   ============================ */
.hhs-rating-on-image {
  position: absolute !important;
  bottom: 40px !important;
  left: 0 !important;
  right: auto !important;
  transform: translateY(20px) scale(0.95) !important;
  opacity: 0 !important;
  transition: opacity 0.6s ease 0.85s, transform 0.6s ease 0.85s !important;
  max-width: 240px !important;
}

.hhs-slide.hhs-active .hhs-rating-on-image {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

/* ============================
   RESPONSIVE – Sağ Görsel
   ============================ */
@media (max-width: 1024px) {
  .hhs-has-right-img .hhs-left-col { flex: 0 0 52%; max-width: 52%; }
  .hhs-right-col                   { flex: 0 0 48%; max-width: 48%; }
  .hhs-right-style-rounded .hhs-right-img-wrap { padding: 16px 16px 16px 0; }
}

@media (max-width: 768px) {
  /* Mobilde sağ görsel gizle, tek sütun */
  .hhs-slide-grid {
    flex-direction: column;
  }

  .hhs-has-right-img .hhs-left-col {
    flex: 1;
    max-width: 100%;
  }

  .hhs-right-col {
    display: none;
  }
}

/* ============================
   OVERRIDE: İÇERİK CONTAINER
   Sağ görsel modunda padding sol'dan gelir
   ============================ */
.hhs-has-right-img .hhs-content-container {
  padding-right: 40px;
}

/* Slider'ın kendi içindeki grid slider genişliğini takip eder */
.hhs-slider-wrap { overflow: hidden; }
.hhs-track       { height: 100%; }

/* Grid'in max-width'i, wrapper ile aynı olsun */
.hhs-slide-grid {
  padding: 0;
}
