/**
 * Ana sayfa hero — Mertpin home-hero-hesap birebir + Viona container hizasi.
 * Temel yapi: main2-hesap.css (pagination absolute / 80px thumb / txt-content calc)
 */

/* ── Bölüm arka planı ── */
.page-home section.hero:not(.hero--has-bg) {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  background: linear-gradient(180deg, #f6f8ff 0%, #ffffff 45%, #f3f5fa 100%) !important;
}

.page-home section.hero:not(.hero--has-bg)::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 55% at 12% -5%, rgba(124, 140, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 8%, rgba(34, 211, 238, 0.09), transparent 52%);
}

.page-home section.hero.hero--has-bg {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  background-size: 100% auto !important;
}

.page-home section.hero > .container-xxl,
.page-home section.hero > .vh-hero-bleed {
  position: relative;
  z-index: 1;
  width: min(100% - 24px, 1320px) !important;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  box-sizing: border-box;
}

:root[data-theme="dark"] .page-home section.hero:not(.hero--has-bg),
body.dark .page-home section.hero:not(.hero--has-bg) {
  background: linear-gradient(180deg, #121218 0%, #1a1a1e 50%, #111114 100%) !important;
}

:root[data-theme="dark"] .page-home section.hero:not(.hero--has-bg)::after,
body.dark .page-home section.hero:not(.hero--has-bg)::after {
  background:
    radial-gradient(ellipse 70% 50% at 18% -8%, rgba(124, 140, 255, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 40% at 82% 6%, rgba(255, 70, 85, 0.07), transparent 52%);
}

section.hero.hero--has-bg {
  position: relative;
  overflow: visible;
}

.page-home section.hero {
  padding-bottom: 1.5rem !important;
  border-bottom: 0 !important;
}

section.hero.hero--has-bg > .container-xxl,
section.hero.hero--has-bg > .vh-hero-bleed {
  position: relative;
  z-index: 1;
}

:root[data-theme="dark"] section.hero.hero--has-bg::before,
body.dark section.hero.hero--has-bg::before {
  display: none !important;
  content: none !important;
}

.page-home section.hero .min-height-100px {
  min-height: 120px !important;
}

.page-home section.hero .hero-title-logo {
  display: block;
  max-height: 52px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.page-home section.hero .hero-btn {
  padding: 18px 28px;
  white-space: nowrap;
}

/* ── Slider kabuğu (Mertpin) ── */
.page-home .hero-slider {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 0 !important;
  box-shadow:
    0 22px 50px rgba(15, 23, 42, 0.11),
    0 4px 14px rgba(15, 23, 42, 0.05);
}

:root[data-theme="dark"] .page-home .hero-slider,
body.dark .page-home .hero-slider {
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.page-home .hero-slider .main-slider .swiper-slide {
  border-radius: 20px;
  max-height: 500px;
  min-height: 420px;
  overflow: hidden;
}

.page-home .hero-slider .main-slider .swiper-slide a.hero-slide-link {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
}

.page-home .hero-slider .main-slider .swiper-slide a.hero-slide-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    102deg,
    rgba(15, 23, 42, 0.52) 0%,
    rgba(15, 23, 42, 0.18) 36%,
    transparent 58%
  );
}

.page-home .hero-slider .main-slider .swiper-slide img {
  display: block;
  width: 100%;
  height: 420px !important;
  min-height: 420px !important;
  max-height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-home .hero-slider .main-slider .swiper-slide-active img {
  transform: scale(1.015);
}

.page-home .hero-slider .main-slider .swiper-slide .txt-content {
  z-index: 5;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  height: calc(100% - 80px) !important;
}

.page-home .hero-slider .main-slider .swiper-slide .txt-content .main-title {
  letter-spacing: -0.02em;
}

/* Thumb — kart icinde absolute (calisan Mertpin hali) */
.page-home .hero-slider .swiper-pagination {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 6px !important;
  gap: 6px;
  height: auto !important;
  min-height: 72px;
  border-radius: 0 0 18px 18px;
  background: rgba(14, 16, 24, 0.72) !important;
  border: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: none;
  justify-content: stretch !important;
  z-index: 10 !important;
}

.page-home .hero-slider .swiper-pagination .hero-tumb,
.page-home .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet {
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  height: 64px !important;
  padding: 10px 14px !important;
  margin: 0 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-top: 1px solid rgba(15, 23, 42, 0.14) !important;
  border-left: 1px solid rgba(15, 23, 42, 0.14) !important;
  background: rgba(15, 23, 42, 0.2) !important;
}

.page-home .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet-active {
  border-top: 3px solid var(--hero-thumb-accent, #7c8cff) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  padding-top: 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--hero-thumb-accent, #7c8cff) 26%, transparent);
}

:root[data-theme="dark"] .page-home .hero-slider .swiper-pagination,
body.dark .page-home .hero-slider .swiper-pagination {
  background: rgba(14, 16, 24, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

:root[data-theme="dark"] .page-home .hero-slider .swiper-pagination .hero-tumb,
body.dark .page-home .hero-slider .swiper-pagination .hero-tumb,
:root[data-theme="dark"] .page-home .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet,
body.dark .page-home .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet {
  background: rgba(0, 0, 0, 0.38) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

:root[data-theme="dark"] .page-home .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet-active,
body.dark .page-home .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--hero-thumb-accent, #8b9bff) 32%, transparent);
}

.hero-slider .swiper-pagination .hero-tumb.hero-tumb--theme-accent:not(.swiper-pagination-bullet-active) svg,
.hero-slider .swiper-pagination .hero-tumb.hero-tumb--theme-accent:not(.swiper-pagination-bullet-active) svg * {
  fill: #fff !important;
  filter: brightness(0) invert(1) !important;
  opacity: 1;
  transition: fill 0.3s ease, filter 0.3s ease;
}

.hero-slider .swiper-pagination .hero-tumb.hero-tumb--theme-accent.swiper-pagination-bullet-active {
  border-top-color: var(--hero-thumb-accent) !important;
  color: var(--hero-thumb-accent) !important;
}

.hero-slider .swiper-pagination .hero-tumb.hero-tumb--theme-accent.swiper-pagination-bullet-active svg,
.hero-slider .swiper-pagination .hero-tumb.hero-tumb--theme-accent.swiper-pagination-bullet-active svg * {
  filter: none !important;
  fill: var(--hero-thumb-accent) !important;
  opacity: 1;
  transition: fill 0.3s ease, filter 0.3s ease;
}

:root[data-theme="dark"] .hero-slider .swiper-pagination .hero-tumb:not(.swiper-pagination-bullet-active),
body.dark .hero-slider .swiper-pagination .hero-tumb:not(.swiper-pagination-bullet-active) {
  background: rgba(0, 0, 0, 0.44);
  border-left-color: rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.1);
}

:root[data-theme="dark"] .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet-active,
body.dark .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet-active {
  background: rgba(0, 0, 0, 0.15);
}

@media (min-width: 992px) {
  .hero-slider .swiper-pagination {
    overflow: visible !important;
  }
}

@media (max-width: 991px) {
  .hero-slider .swiper-pagination {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    min-height: 48px !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .hero-slider .swiper-pagination::-webkit-scrollbar {
    display: none;
  }

  .page-home .hero-slider .swiper-pagination .hero-tumb,
  .page-home .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet {
    flex: 0 0 40px !important;
    min-width: 40px !important;
    width: 40px !important;
    height: 40px !important;
    padding: 8px !important;
    border-radius: 999px !important;
  }

  .page-home .hero-slider .swiper-pagination .vh-thumb-label {
    display: none !important;
  }

  .page-home .hero-slider {
    border-radius: 14px;
    overflow: hidden !important;
  }

  .page-home .hero-slider .main-slider {
    overflow: hidden !important;
  }

  .page-home .hero-slider .main-slider .swiper-slide,
  .page-home .hero-slider .main-slider .swiper-slide img,
  .page-home .hero-slider .main-slider .swiper-slide a.hero-slide-link {
    border-radius: 14px;
  }

  .page-home .hero-slider .main-slider .swiper-slide {
    max-height: 280px !important;
    min-height: 220px !important;
  }

  .page-home .hero-slider .main-slider .swiper-slide img {
    height: 220px !important;
    min-height: 220px !important;
    max-height: 280px !important;
  }

  .page-home .hero-slider .main-slider .swiper-slide .txt-content {
    height: calc(100% - 52px) !important;
    padding: 16px 16px 8px !important;
  }

  .page-home .hero-slider .main-slider .swiper-slide .txt-content .main-title {
    font-size: clamp(1.05rem, 4.5vw, 1.35rem) !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 575px) {
  .page-home .hero-slider .main-slider .swiper-slide,
  .page-home .hero-slider .main-slider .swiper-slide img {
    min-height: 200px !important;
    height: 200px !important;
    max-height: 220px !important;
  }

  .page-home .hero-slider .swiper-pagination {
    min-height: 42px !important;
    padding: 4px 6px !important;
  }

  .page-home .hero-slider .swiper-pagination .hero-tumb,
  .page-home .hero-slider .swiper-pagination .hero-tumb.swiper-pagination-bullet {
    flex: 0 0 34px !important;
    min-width: 34px !important;
    width: 34px !important;
    height: 34px !important;
    padding: 6px !important;
  }
}

.swiper-wrapper {
  position: relative;
}

.hero-slider .swiper-pagination .hero-tumb svg {
  overflow: visible !important;
}

/* Üst şerit — min-height ustte 72px */

.page-home section.hero.hero--has-bg .hero-title {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.hero .hero-btn.hero-btn--accent {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (prefers-reduced-motion: reduce) {
  .hero .hero-btn,
  .page-home .hero-slider .main-slider .swiper-slide img {
    transition: none !important;
  }

  .page-home .hero-slider .main-slider .swiper-slide-active img {
    transform: none;
  }
}
