/* Ayrı footer stili - ana CSS'ten bağımsız premium cam footer */
:root{
  --footer-bg-1: rgba(255,255,255,.74);
  --footer-bg-2: rgba(255,255,255,.54);
  --footer-border: rgba(255,255,255,.42);
  --footer-stroke: rgba(15,23,42,.10);
  --footer-text: #162033;
  --footer-muted: #5b6578;
  --footer-shadow: 0 18px 44px rgba(15,23,42,.10);
  --footer-highlight: rgba(255,255,255,.95);
  --footer-btn-bg: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  --footer-btn-text: #ffffff;
}

html, body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > * {
  width: 100%;
}

.custom-site-footer {
  position: relative;
  margin-top: auto;
  padding: 18px 18px 22px;
  z-index: 20;
}

/* Sol sabit menülü sayfalarda footer menünün altında kalmasın */
@media (min-width: 981px) {
  .layout ~ .custom-site-footer {
    padding-left: 304px;
    padding-right: 22px;
  }
}

.custom-site-footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 22px 22px 0 0;
  border: 1px solid var(--footer-border);
  background:
    linear-gradient(180deg, var(--footer-bg-1), var(--footer-bg-2)),
    linear-gradient(120deg, rgba(255,255,255,.32), rgba(255,255,255,.08));
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: var(--footer-shadow);
  overflow: hidden;
  isolation: isolate;
}

/* Premium üst çizgi */
.custom-site-footer-inner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--footer-highlight), transparent);
  opacity: .95;
}

/* Cam yüzey konturu */
.custom-site-footer-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid var(--footer-stroke);
  border-radius: inherit;
}

/* Renkli animasyon halkası */
.custom-site-footer-inner .footer-animated-ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: conic-gradient(
    from 0deg,
    rgba(37,99,235,.00) 0deg,
    rgba(37,99,235,.34) 52deg,
    rgba(168,85,247,.34) 126deg,
    rgba(34,197,94,.26) 210deg,
    rgba(14,165,233,.32) 292deg,
    rgba(37,99,235,.00) 360deg
  );
  filter: blur(14px);
  animation: footerGlowRotate 7.2s linear infinite;
  opacity: .9;
}

@keyframes footerGlowRotate {
  from { transform: rotate(0deg) scale(1.02); }
  to { transform: rotate(360deg) scale(1.02); }
}

.custom-site-footer-left,
.custom-site-footer-center,
.custom-site-footer-right {
  position: relative;
  z-index: 1;
}

.custom-site-footer-left {
  justify-self: start;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--footer-text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.custom-site-footer-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-site-footer-center {
  justify-self: center;
}

.custom-site-footer-right {
  justify-self: end;
  text-align: right;
  font-weight: 600;
  color: var(--footer-muted);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-live-support {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--footer-btn-text);
  background: var(--footer-btn-bg);
  box-shadow: 0 10px 24px rgba(29,78,216,.24);
  font-weight: 800;
  font-size: 13px;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.footer-live-support:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 28px rgba(29,78,216,.28);
  opacity: .98;
}

.footer-live-support-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.14);
  font-size: 14px;
}

.login-premium-page ~ .custom-site-footer,
.login-split-page ~ .custom-site-footer {
  padding-top: 8px;
}

@media (max-width: 980px) {
  .custom-site-footer {
    padding: 14px 12px 16px;
  }

  .custom-site-footer-inner {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 15px 15px 16px;
    border-radius: 18px 18px 0 0;
  }

  .custom-site-footer-left,
  .custom-site-footer-center,
  .custom-site-footer-right {
    justify-self: stretch;
    width: 100%;
    text-align: center;
  }

  .custom-site-footer-left {
    display: flex;
    justify-content: center;
    white-space: normal;
  }

  .custom-site-footer-right {
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
  }

  .custom-site-footer-center {
    width: 100%;
  }

  .footer-live-support {
    width: 100%;
    justify-content: center;
  }

  .footer-brand-link {
    justify-content: center;
    margin: 0 auto;
  }

  .footer-brand-text {
    white-space: normal;
    text-align: center;
  }
}


.footer-brand-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  text-decoration: none;
  color: var(--footer-text);
  border-radius: 999px;
  padding: 6px 12px;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.footer-brand-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.42);
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}

.footer-brand-text {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.footer-brand-shine {
  position: absolute;
  inset: -40% auto -40% -22%;
  width: 24%;
  transform: skewX(-26deg) translateX(-220%);
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.22) 25%, rgba(255,255,255,.88) 50%, rgba(255,255,255,.22) 75%, rgba(255,255,255,0) 100%);
  filter: blur(.2px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.footer-brand-link:hover .footer-brand-shine {
  opacity: 1;
  animation: footerBrandShine 1.15s ease forwards;
}

@keyframes footerBrandShine {
  0% {
    transform: skewX(-26deg) translateX(-220%);
    opacity: 0;
  }
  18% {
    opacity: .95;
  }
  100% {
    transform: skewX(-26deg) translateX(560%);
    opacity: 0;
  }
}

.custom-site-footer-left span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
