/**
 * Reklax bar — split: %25 ikon + %50 yazı + %25 WhatsApp.
 * Mobil: position:fixed + bottom + safe-area (viewport: interactive-widget=overlays-content).
 * Glass: blur yalnızca __track / segmentlerde (wrapper’da filter yok).
 */
.reklax-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--reklax-mb, 16px) + env(safe-area-inset-bottom, 0px));
  z-index: 480;
  display: flex;
  justify-content: center;
  padding: 0 var(--reklax-ms, 20px);
  box-sizing: border-box;
  pointer-events: none;
  transform: none;
  -webkit-transform: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.reklax-bar__track {
  --reklax-glass-blur: 18px;
  position: relative;
  display: flex;
  align-items: stretch;
  width: min(var(--reklax-dock-max, 292px), 100%);
  height: var(--reklax-ph, 48px);
  min-height: var(--reklax-ph, 48px);
  border-radius: 999px;
  overflow: visible;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  border: none;
  background: transparent;
  box-shadow:
    0 10px 32px rgba(15, 55, 60, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}

/* Glass blur: track gövdesinde değil ::before’da (iOS fixed+transform ile çakışmasın) */
.reklax-bar__track::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(var(--reklax-glass-blur)) saturate(1.65);
  -webkit-backdrop-filter: blur(var(--reklax-glass-blur)) saturate(1.65);
  pointer-events: none;
}

.reklax-bar__track > :not(.reklax-bar__scroll-ring) {
  position: relative;
  z-index: 1;
}

/* Kontur (altta) + ilerleme (üstte) — pill halka çevresi, yol boyunca */
.reklax-bar__scroll-ring {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.reklax-bar__scroll-ring-bg,
.reklax-bar__scroll-ring-fill {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.reklax-bar__scroll-ring-bg {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.reklax-bar__scroll-ring-fill {
  stroke: url(#reklaxScrollGrad);
  stroke-dasharray: 1;
  stroke-dashoffset: var(--reklax-scroll-offset, 1);
}

.reklax-bar__phone,
.reklax-bar__wa {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  text-decoration: none !important;
  margin: 0;
  border: none;
  background: transparent;
}

/* Telefon — split: %25 ikon + %50 yazı (toplam %75) */
.reklax-bar--split .reklax-bar__phone {
  flex: 0 0 75%;
  width: 75%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  padding: 0;
  gap: 0;
}

.reklax-bar__phone {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  padding: 0;
  gap: 0;
  font-size: calc(0.78rem + 2px);
  font-weight: var(--fw-bold);
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.reklax-bar__phone::before {
  content: none;
}

.reklax-bar__phone.btn--primary:hover,
.reklax-bar__phone.btn--primary:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

.reklax-bar__phone-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 calc(100% * 25 / 75);
  width: calc(100% * 25 / 75);
  min-width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 999px 0 0 999px;
}

.reklax-bar__phone-icon .icon--fa {
  font-size: calc(0.88rem + 2px);
  width: 1em;
  flex-shrink: 0;
  color: #fff !important;
}

.reklax-bar__phone-label {
  flex: 0 0 calc(100% * 50 / 75);
  width: calc(100% * 50 / 75);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.reklax-bar__phone-label-text {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 0.35rem;
  text-align: center;
  color: var(--primary) !important;
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reklax-bar__phone.btn--primary:hover .reklax-bar__phone-icon,
.reklax-bar__phone.btn--primary:focus-visible .reklax-bar__phone-icon {
  background: #185a61 !important;
}

.reklax-bar__phone.btn--primary:hover .reklax-bar__phone-label,
.reklax-bar__phone.btn--primary:focus-visible .reklax-bar__phone-label {
  background: rgba(255, 255, 255, 0.04);
}

/* Arka plan tonuna göre (initReklaxBarLabelContrast) */
.reklax-bar--label-light .reklax-bar__phone .reklax-bar__phone-label-text,
.reklax-bar--label-light .reklax-bar__phone-label-text {
  color: var(--primary) !important;
}

.reklax-bar--label-dark .reklax-bar__phone .reklax-bar__phone-label-text,
.reklax-bar--label-dark .reklax-bar__phone-label-text {
  color: #fff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* WhatsApp — %25 */
.reklax-bar--split .reklax-bar__wa {
  flex: 0 0 25%;
  width: 25%;
  min-width: 2.75rem;
  max-width: 25%;
  border-radius: 0 999px 999px 0;
}

.reklax-bar__wa {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  padding: 0;
  line-height: 0;
  background: #25d366 !important;
  border-left: none;
}

.reklax-bar__wa::before {
  content: none;
}

.reklax-bar__wa:hover,
.reklax-bar__wa:focus-visible {
  background: #1fb855 !important;
}

.reklax-bar--phone-only .reklax-bar__phone {
  width: 100%;
}

.reklax-bar--phone-only .reklax-bar__phone-icon {
  flex: 0 0 25%;
  width: 25%;
  border-radius: 999px 0 0 999px;
}

.reklax-bar--phone-only .reklax-bar__phone-label {
  flex: 0 0 75%;
  width: 75%;
  border-radius: 0 999px 999px 0;
}

.reklax-bar--wa-only .reklax-bar__wa {
  width: 100%;
  max-width: none;
  min-width: 0;
  border-left: none;
  border-radius: 999px;
}

.reklax-bar__wa-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 1;
  color: #fff !important;
  line-height: 1;
}

.reklax-bar__wa .icon--fa,
.reklax-bar__wa-icon .icon--fa,
.reklax-bar__wa .fa-whatsapp {
  opacity: 1;
  color: #fff !important;
  font-size: calc((1.15rem + 2px) * 1.15);
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 70, 35, 0.45));
}

body.menu-open .reklax-bar {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* backdrop-filter yoksa: okunaklı düz cam yedeği */
@supports not (
  (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))
) {
  .reklax-bar__track::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(31, 111, 120, 0.88);
  }

  .reklax-bar--split .reklax-bar__phone-icon {
    background: var(--primary) !important;
  }

  .reklax-bar--split .reklax-bar__phone-label {
    background: rgba(255, 255, 255, 0.35);
  }

  .reklax-bar--split .reklax-bar__wa,
  .reklax-bar--wa-only .reklax-bar__wa {
    background: #25d366 !important;
  }
}

@media (min-width: 768px) {
  .reklax-bar--phone-mobile-only,
  .reklax-bar--wa-mobile-only,
  .reklax-bar--split {
    display: none !important;
  }
}
