/**
 * AWP PrintWise - Footer UX/UI Professional Design
 * Fintech/SaaS style: clean, trustworthy, modern
 */

/* Footer container — 100vw scrollbar’da sağda boş şerit; kök zaten tam genişlik */
.awp-footer,
#awp-printwise-root .awp-footer,
footer.awp-footer {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  background-color: #050d18;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(56, 189, 248, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(99, 102, 241, 0.05), transparent 45%),
    linear-gradient(180deg, #0a1424 0%, #050d18 100%);
}

#awp-printwise-root .awp-footer:not(.awp-footer-bg-solid) {
  background-image: var(--awp-footer-bg-image) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

.awp-footer::before,
#awp-printwise-root .awp-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Alt kuşak altında boş lacivert şerit bırakmamak için footer kutusu ile sınırlı (eskiden bottom: -500px idi). */
  background: #050d18;
  z-index: -1;
  pointer-events: none;
}

#awp-printwise-root .awp-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-family: var(--font-family-base, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: #ffffff;
  /* Yatay padding içeride (.awp-footer-inner); alt kuşak %100 genişlikte sağ/sol boşluk olmasın */
  padding: 40px 0 0;
  margin-top: 32px;
  overflow-x: hidden;
  overflow-y: visible;
}

/* Sadece AWP footer — tema footer’larına dokunma */
footer.awp-footer {
  position: relative;
  font-family: var(--font-family-base, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: #ffffff;
  padding: 40px 0 0;
  margin-top: 32px;
  overflow-x: hidden;
  overflow-y: visible;
  min-height: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.awp-footer-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  pointer-events: none;
}

#awp-printwise-root .awp-footer:not(.awp-footer-bg-solid):not(.awp-footer-bg-overlay-off) .awp-footer-overlay {
  background: var(--awp-footer-bg-overlay, rgba(0, 0, 0, 0.55)) !important;
  mix-blend-mode: normal !important;
}

#awp-printwise-root .awp-footer.awp-footer-overlay-linear.awp-footer-overlay-linear-to-bottom:not(.awp-footer-bg-solid):not(.awp-footer-bg-overlay-off) .awp-footer-overlay {
  background: linear-gradient(
    to bottom,
    var(--awp-footer-bg-overlay, rgba(0, 0, 0, 0.55)) 0%,
    var(--awp-footer-bg-overlay, rgba(0, 0, 0, 0.55)) var(--awp-footer-overlay-linear-stop, 55%),
    rgba(0, 0, 0, 0) 100%
  ) !important;
}

#awp-printwise-root .awp-footer.awp-footer-overlay-linear.awp-footer-overlay-linear-to-top:not(.awp-footer-bg-solid):not(.awp-footer-bg-overlay-off) .awp-footer-overlay {
  background: linear-gradient(
    to top,
    var(--awp-footer-bg-overlay, rgba(0, 0, 0, 0.55)) 0%,
    var(--awp-footer-bg-overlay, rgba(0, 0, 0, 0.55)) var(--awp-footer-overlay-linear-stop, 55%),
    rgba(0, 0, 0, 0) 100%
  ) !important;
}

#awp-printwise-root .awp-footer.awp-footer-bg-overlay-off:not(.awp-footer-bg-solid) .awp-footer-overlay,
#awp-printwise-root .awp-footer.awp-footer-bg-solid .awp-footer-overlay {
  background: transparent !important;
}

#awp-printwise-root .awp-footer.awp-footer-bg-solid {
  background: var(--awp-footer-bg-solid-color, #050d18) !important;
  background-image: none !important;
}

/* Inner container - max width, centered */
.awp-footer-inner {
  position: relative;
  z-index: 1;
  /* Varsayılan; gerçek değer class-ders-notu-hesaplama.php inline CSS ile awp_header_content_width ile eşlenir */
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  width: 100%;
}

/* Trust badges - card style, horizontal */
.awp-footer-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}

.awp-footer-trust-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  transition: background 0.2s ease;
}

.awp-footer-trust-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.awp-footer-trust-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(56, 189, 248, 0.9);
  flex-shrink: 0;
}

.awp-footer-trust-item span:last-child {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.awp-footer-trust-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  align-self: center;
}

/* Main content - 2 column grid (Ödeme | İletişim) */
.awp-footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 32px 48px;
}

.awp-footer-main {
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Section titles */
.awp-footer-section-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px 0;
}

/* Payment area */
.awp-footer-payments {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.awp-footer-payment-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.awp-footer-payment-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s ease, color 0.2s ease;
}

.awp-footer-payment-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.awp-footer-payment-icon svg {
  width: 22px;
  height: 22px;
}

.awp-footer-payment-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
  text-align: left;
}

/* Contact links */
.awp-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.awp-footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.15s ease;
  padding: 6px 0;
}

.awp-footer-contact-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.awp-footer-contact-link svg {
  flex-shrink: 0;
  opacity: 0.85;
  width: 18px;
  height: 18px;
}

/* Map section */
.awp-footer-map-section {
  padding: 0 0 28px;
  margin-bottom: 24px;
  border-bottom: none;
}

.awp-footer-location-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 12px 0;
}

.awp-footer-location-title svg {
  opacity: 0.8;
  width: 16px;
  height: 16px;
}

.awp-footer-map-preview {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.2s ease;
}

.awp-footer-map-preview:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.awp-footer-map-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;
  transition: opacity 0.2s ease;
}

.awp-footer-map-preview:hover .awp-footer-map-overlay {
  opacity: 1;
}

.awp-footer-map-overlay span {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  padding: 6px 14px;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
}

/**
 * Alt kuşak: tam genişlik 50px şerit; sosyal / yasal / telif üstte (içeride hizalı)
 */
.awp-footer-bottom-band {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
  flex: 0 0 auto;
  align-self: stretch;
  min-height: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);  
  /* Varsayılan kuşak; calculator şablonu inline style ile üzerine yazar */
  background: color-mix(in srgb, var(--awp-footer-bg-solid-color, #2d1c10) 75%, rgba(0, 0, 0, 0.9));
}

.awp-footer-bottom-band__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  height: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* Bottom row - social, legal, copyright (awp-footer-row grid üstüne yazılır) */
.awp-footer-row.awp-footer-bottom {
  display: flex;
  grid-template-columns: unset;
}

/* Bottom row - social, legal, copyright */
.awp-footer-bottom {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 24px;
  padding-top: 0;
}

.awp-footer-bottom-band .awp-footer-bottom {
  flex: 1;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 12px 20px;
}

/* 50px şeritte ikonları sığdır */
.awp-footer-bottom-band .awp-footer-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
}

.awp-footer-bottom-band .awp-footer-social-svg {
  width: 16px;
  height: 16px;
}

.awp-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.awp-footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.awp-footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-2px);
}

.awp-footer-social-svg {
  width: 18px;
  height: 18px;
}

.awp-footer-legal {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
}

.awp-footer-legal-link {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.awp-footer-bottom-band .awp-footer-legal-link {
  color: var(--awp-footer-bottom-legal-color, rgba(255, 255, 255, 0.72));
}

.awp-footer-legal-link:hover {
  color: rgba(255, 255, 255, 0.95);
}

.awp-footer-bottom-band .awp-footer-legal-link:hover {
  color: color-mix(in srgb, var(--awp-footer-bottom-legal-color, rgba(255, 255, 255, 0.72)) 80%, #ffffff);
}

.awp-footer-copyright {
  margin: 0;
}

.awp-footer-copyright-text {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.awp-footer-bottom-band .awp-footer-copyright-text {
  color: var(--awp-footer-bottom-copyright-color, rgba(255, 255, 255, 0.45));
}

/* calculator.css legacy — kuşak içinde ekstra padding şeridi şişirmesin */
#awp-printwise-root .awp-footer-bottom-band #footer-copyright,
#awp-printwise-root .awp-footer-bottom-band .awp-footer-copyright {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Section titles - translatable via data-translate */
.awp-footer-section-title {
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px 0;
}

/* =========================================================
   Çok sütunlu footer grid (kurumsal + sözleşme modalları)
   ========================================================= */
.awp-footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  padding-bottom: 28px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.awp-footer-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
}

/* Marka sütunu */
.awp-footer-col--brand {
  align-items: flex-start;
  gap: 14px;
}

.awp-footer-brand-logo {
  max-width: 150px;
  width: auto;
  height: auto;
  display: block;
}

.awp-footer-brand-tagline {
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: normal;
  color: rgba(255, 255, 255, 0.62);
  margin: 0;
  max-width: 260px;
}

.awp-footer-col--brand .awp-footer-payment-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.awp-footer-col--brand .awp-footer-social {
  margin-top: 2px;
}

/* Sütun başlıkları (900 kalınlık, kurumsal) */
.awp-footer-col-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 14px 0;
  line-height: 1.4;
}

/* Link listeleri (modal açan butonlar) */
.awp-footer-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.awp-footer-link {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.66);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.15s ease;
}

.awp-footer-link:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.awp-footer-link:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.8);
  outline-offset: 2px;
  border-radius: 4px;
}

/* İletişim + Konum sütunu */
.awp-footer-col--contact {
  align-items: flex-start;
  gap: 10px;
}

.awp-footer-col--contact .awp-footer-map-section {
  width: 100%;
  padding: 0;
  margin: 12px 0 0;
  border-bottom: none;
}

.awp-footer-col--contact .awp-footer-map-preview {
  width: 100%;
}

/* Güven şeridi artık grid altında; üstten hafif boşluk */
.awp-footer-grid + .awp-footer-trust-row {
  margin-top: 0;
}

/* Alt kuşak yasal linkleri (buton görünümü) */
.awp-footer-bottom-band .awp-footer-legal-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

/* Responsive - Tablet */
@media (max-width: 900px) {
  .awp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
  }
  .awp-footer-col--brand {
    grid-column: auto;
  }
  .awp-footer-col--contact {
    grid-column: auto;
  }
  .awp-footer-col--contact .awp-footer-map-preview {
    max-width: 100%;
  }

  .awp-footer-row {
    grid-template-columns: 1fr;
  }
}

/* Responsive - Mobile */
@media (max-width: 640px) {
  #awp-printwise-root .awp-footer {
    padding: 24px 0 0;
    margin-top: 24px;
  }

  #awp-printwise-root .awp-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .awp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .awp-footer-col--brand {
    grid-column: 1 / -1;
    align-items: flex-start;
  }

  .awp-footer-col--contact {
    grid-column: 1 / -1;
  }

  .awp-footer-col--contact .awp-footer-map-preview {
    max-width: 100%;
    min-height: 120px !important;
  }

  .awp-footer-col-title {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .awp-footer-trust-row {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    margin-bottom: 0;
  }

  .awp-footer-trust-item {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .awp-footer-trust-divider {
    width: 100%;
    height: 1px;
    max-width: 120px;
    margin: 0 auto;
  }

  .awp-footer-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .awp-footer-main {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .awp-footer-main .awp-footer-payments::before,
  .awp-footer-main .awp-footer-contact::before {
    margin-bottom: 10px;
  }

  .awp-footer-payments,
  .awp-footer-contact {
    align-items: center;
    text-align: center;
  }

  .awp-footer-payment-text {
    text-align: center;
  }

  .awp-footer-contact-link {
    justify-content: center;
  }

  .awp-footer-map-section {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .awp-footer-map-preview {
    min-height: 100px !important;
    max-height: 140px !important;
  }

  .awp-footer-map-preview iframe {
    min-height: 100px !important;
    max-height: 140px !important;
  }

  .awp-footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 16px;
    gap: 16px;
  }

  .awp-footer-bottom-band {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: auto;
    min-height: 50px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .awp-footer-bottom-band__inner {
    padding: 0 16px;
    min-height: 0;
    height: auto;
    align-items: stretch;
  }

  .awp-footer-bottom-band .awp-footer-bottom {
    flex-direction: column;
    padding-top: 0;
    gap: 14px;
  }

  .awp-footer-legal {
    justify-content: center;
  }
}
