/**
 * Hero Slider - Vertical Thumbnail Style
 * Dr. Yıldız Digital Ecosystem
 */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
  background: #1a1a1a;
}

/* Desktop - ensure full height */
@media (min-width: 769px) {
  .hero-slider {
    height: 100vh !important;
    min-height: 600px !important;
    max-height: 900px !important;
  }
}

/* Slides Container */
.hero-slider__slides {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.hero-slider__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), 
              visibility 1s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Content animation */
.hero-slider__slide .hero-slider__content-inner {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero-slider__slide.is-active .hero-slider__content-inner {
  opacity: 1;
  transform: translateY(0);
}

/* Background */
.hero-slider__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slider__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d2d2d 0%, #3a3a3a 50%, #2d2d2d 100%);
}

.hero-slider__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}

/* Content - Bottom Left Position */
.hero-slider__content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 3rem;
  padding-left: 540px;
  padding-bottom: 80px;
  z-index: 5;
}

.hero-slider__content-inner {
  max-width: 600px;
  text-align: left;
  color: #fff;
}

.hero-slider__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  color: #fff;
}

.hero-slider__subheadline {
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  opacity: 0.9;
}

.hero-slider__cta {
  display: inline-flex;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-slider__cta:hover {
  background: rgba(255,255,255,0.3);
}

/* Thumbnails Wrapper */
.hero-slider__thumbs-wrapper {
  position: absolute;
  left: 32px;
  top: 24px;
  bottom: 24px;
  width: 440px;
  z-index: 50;
}

/* Thumbnails Container */
.hero-slider__thumbs-container {
  position: absolute;
  top: 50px;
  bottom: 50px;
  left: 0;
  width: 100%;
  overflow: hidden;
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.hero-slider__thumbs { 
  position: absolute;
  top: 0;
  left: 0;
  display: flex; 
  flex-direction: column; 
  width: 100%; 
  padding: 20px; 
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); 
  gap: var(--thumb-gap, 16px);
}

/* Thumbnail Button */
.hero-slider__thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.95);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  color: #2d2d2d;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease,
              box-shadow 0.4s ease;
  flex-shrink: 0;
  opacity: 0.55;
  backdrop-filter: blur(8px);
  height: var(--thumb-height, 140px);
  min-height: var(--thumb-height, 140px);
  max-height: var(--thumb-height, 140px);
  overflow:hidden;
  isolation:isolate;
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}

.hero-slider__thumb:hover {
  opacity: 0.85;
  transform: scale(1.02) translateX(4px);
  background: #ffffff;
  border-color: #ffffff;
}

.hero-slider__thumb.is-active { 
  background:rgba(255,255,255,0.95) !important; 
  color:#2d2d2d !important; 
  border-color:#fff !important; 
  transform:scale(1.12) translateX(12px); 
  box-shadow:0 16px 50px rgba(0,0,0,0.3),0 6px 16px rgba(0,0,0,0.2); 
  opacity:1 !important;
  isolation:isolate;  /* ← ekle */
  border-radius:18px !important;  /* ← ekle */
}

.hero-slider__thumb-inner {
  display: flex;
  gap: 14px;
  align-items: stretch;
  height: 100%;
}

.hero-slider__thumb-image {
  flex-shrink: 0;
  width: 100px;
  min-width: 100px;
  max-width: 100px;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0,0,0,0.2);
  position: relative;
}

.hero-slider__thumb-image::before {
  display: none;
}

.hero-slider__thumb-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  display: block;
}

.hero-slider__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3a3a3a, #4a4a4a);
}

.hero-slider__thumb-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.hero-slider__thumb-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-slider__thumb-subtitle {
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.7;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.hero-slider__thumb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 0.6875rem;
  font-weight: 500;
  background: rgba(0,0,0,0.1);
  color: #333;
  border-radius: 20px;
  margin-top: 4px;
  width: fit-content;
}

.hero-slider__thumb.is-active .hero-slider__thumb-btn {
  background: #2d2d2d;
  color: #fff;
}

/* Progress Bar */
.hero-slider__thumb-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #f03167;
  border-radius: 0 0 8px 8px;
}

.hero-slider__thumb.is-active .hero-slider__thumb-progress {
  animation: thumbProgress 10s linear forwards;
}

@keyframes thumbProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* Navigation Arrows */
.hero-slider__nav { 
  position:absolute; 
  left:50%; 
  transform:translateX(-50%); 
  width:40px; 
  height:40px; 
  border:none; 
  background:rgba(255,255,255,0.5);  /* 0.9'dan 0.5'e */
  border-radius:50%; 
  cursor:pointer; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  color:#2d2d2d; 
  z-index:60; 
  transition:all 0.3s ease; 
  box-shadow:0 4px 12px rgba(0,0,0,0.1);  /* 0.15'ten 0.1'e */
}

.hero-slider__nav:hover { 
  background:rgba(255,255,255,0.9);  /* hover'da daha belirgin */
  transform:translateX(-50%) scale(1.1); 
  box-shadow:0 6px 20px rgba(0,0,0,0.2); 
}

.hero-slider__nav--up {
  top: 0;
}

.hero-slider__nav--down {
  bottom: 0;
}

/* Hero Slider Wrapper */
.hero-slider-wrapper {
  padding-top: 85px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-slider__thumbs-wrapper {
    width: 280px;
    left: 16px;
  }
  .hero-slider__content {
    padding-left: 320px;
  }
}

@media (max-width: 768px) {
  .hero-slider {
    height:75vh !important;
  }
  
  .hero-slider__thumbs-wrapper {
    display: none;
  }
  
  .hero-slider__overlay {
    background: linear-gradient(
      to bottom, 
      rgba(0,0,0,0.25) 0%, 
      rgba(0,0,0,0.4) 50%,
      rgba(0,0,0,0.5) 100%
    );
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  
  .hero-slider__content {
    padding: 80px 24px 40px;
    align-items: center;
    justify-content: center;
    padding-bottom: env(safe-area-inset-bottom, 40px);
  }
  
  .hero-slider__content-inner {
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .hero-slider__headline {
    font-size: clamp(1.75rem, 7vw, 2rem);
    line-height: 1.15;
    margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    font-weight: 600;
  }
  
  .hero-slider__subheadline {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0.95;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
    max-width: 320px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .hero-slider__cta {
    padding: 14px 32px;
    font-size: 0.9375rem;
    font-weight: 500;
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  }
  
  .hero-slider__cta:hover,
  .hero-slider__cta:active {
    background: rgba(255,255,255,0.25);
    transform: scale(1.02);
  }
  
  /* Scroll indicator */
  .hero-slider::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255,255,255,0.6);
    border-bottom: 2px solid rgba(255,255,255,0.6);
    transform: translateX(-50%) rotate(45deg);
    animation: scrollHint 2s ease-in-out infinite;
    z-index: 10;
  }
  
  @keyframes scrollHint {
    0%, 100% { 
      opacity: 0.6; 
      transform: translateX(-50%) rotate(45deg) translateY(0);
    }
    50% { 
      opacity: 1; 
      transform: translateX(-50%) rotate(45deg) translateY(6px);
    }
  }
}