/* =========================================================
   Eleventy ADS Digital Fortress - final UI fixes
   1) Reference card shadow cleanup
   2) Fully visible mobile testimonials
   3) Back-to-top control
   ========================================================= */

/* Referans kartlarının altında kalan geniş gri bant/gölgeyi tamamen kaldır. */
#referanslar .eleventy-references-slider-wrap,
#referanslar .eleventy-references-slider,
#referanslar .eleventy-references-slider .swiper-wrapper,
#referanslar .eleventy-references-slider .swiper-slide,
#referanslar .eleventy-reference-card,
#referanslar .eleventy-reference-media,
#referanslar .eleventy-reference-content {
  filter: none !important;
  -webkit-filter: none !important;
}

#referanslar .eleventy-reference-card,
#referanslar .eleventy-reference-card:hover,
#referanslar .eleventy-references-slider .eleventy-reference-card,
#referanslar .eleventy-references-slider .eleventy-reference-card:hover {
  box-shadow: none !important;
}

#referanslar .eleventy-reference-card::before,
#referanslar .eleventy-reference-card::after,
#referanslar .eleventy-references-slider-wrap::before,
#referanslar .eleventy-references-slider-wrap::after,
#referanslar .eleventy-references-slider .swiper-slide::before,
#referanslar .eleventy-references-slider .swiper-slide::after {
  content: none !important;
  display: none !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Hover hareketi korunur; gri gölge yerine yalnızca ince turuncu çerçeve görünür. */
#referanslar .eleventy-reference-card:hover {
  border-color: rgba(255, 153, 0, 0.34) !important;
}

/* Mobil müşteri yorumları: pin yerine doğal yatay kaydırma, tam yükseklik ve tam metin. */
@media (max-width: 767.98px) {
  .eleventy-home-v2 .why-choose-premium.section-fix,
  .eleventy-home-v2 .why-choose-premium.section-fix.elv-testimonials-mobile-static-wrap,
  .eleventy-home-v2 .why-choose-premium.section-fix.elv-motion-pin {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .eleventy-home-v2 .why-choose-premium .section-title-pin {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin-bottom: 24px !important;
    transform: none !important;
  }

  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-section.elv-testimonials-mobile-static,
  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-section.elv-testimonials-mobile-static > .wrapper {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }

  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-section.elv-testimonials-mobile-static > .wrapper > .list {
    position: relative !important;
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    gap: 14px !important;
    padding: 2px 3px 14px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory !important;
    scroll-padding-inline: 3px !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    transform: none !important;
  }

  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-section.elv-testimonials-mobile-static > .wrapper > .list::-webkit-scrollbar {
    display: none !important;
  }

  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-section.elv-testimonials-mobile-static .item {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    flex: 0 0 calc(100vw - 54px) !important;
    width: calc(100vw - 54px) !important;
    max-width: 430px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    scroll-snap-align: start !important;
  }

  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-section.elv-testimonials-mobile-static .testimonial-cart-wrap {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 330px !important;
    max-height: none !important;
    padding: 24px 20px !important;
    overflow: visible !important;
  }

  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-section.elv-testimonials-mobile-static .testimonial-content-text,
  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-section.elv-testimonials-mobile-static .text-truncate-4 {
    display: block !important;
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    margin-bottom: 22px !important;
    font-size: clamp(17px, 4.7vw, 20px) !important;
    line-height: 1.38 !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    text-overflow: clip !important;
    white-space: normal !important;
  }

  .eleventy-home-v2 .why-choose-premium .testimonial-scroll-section.elv-testimonials-mobile-static .testimonial-author {
    position: static !important;
    display: flex !important;
    margin-top: auto !important;
  }
}

/* Yukarı çık butonu */
.eleventy-back-to-top {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9995;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 38px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, border-color .2s ease, background .2s ease;
}

.eleventy-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.eleventy-back-to-top:hover,
.eleventy-back-to-top:focus-visible {
  border-color: rgba(255, 153, 0, 0.55);
  background: #ffffff;
  outline: none;
}

.eleventy-back-to-top__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ff9900;
  color: #111111;
}

.eleventy-back-to-top__icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

@media (max-width: 767.98px) {
  .eleventy-back-to-top {
    left: 12px;
    bottom: max(14px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 0 13px 0 8px;
    gap: 7px;
    font-size: 12px;
    box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .eleventy-back-to-top__icon {
    width: 29px;
    height: 29px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eleventy-back-to-top {
    transition: none !important;
  }
}
