/**
 * Masaüstü header düzeni + mobil alt navigasyon
 */
:root {
  --md-brand-header: #202c45;
  --md-mobile-cta-muted: #64748b;
  --md-footer-bg: #1a1a1a;
  --md-footer-bg-soft: rgba(15, 23, 42, 0.98);
}

body.md-site .md-legacy-middle-hidden {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Üst bilgi şeridi — #202c45, beyaz metin (modern-theme gradient'ini ezer) */
body.md-site .header-top,
body.md-site .header-top.md-header-top,
body.md-site .header-top.bg-white-f1 {
  background: var(--md-brand-header, #202c45) !important;
  background-image: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.md-site .header-top.md-header-top a,
body.md-site .header-top.md-header-top .list-inline li,
body.md-site .header-top.md-header-top .list-inline li a,
body.md-site .header-top.md-header-top .md-header-top__contacts,
body.md-site .header-top.md-header-top .md-header-top__contacts a,
body.md-site .header-top.md-header-top .md-header-top__contacts li,
body.md-site .header-top.md-header-top .md-header-top__contacts i,
body.md-site .header-top.md-header-top .md-header-top__social a {
  color: #fff !important;
}

/* Sosyal: beyaz daire, ikon #202c45 */
body.md-site .header-top.md-header-top .md-header-top__social.styled-icons a,
body.md-site .header-top.md-header-top .styled-icons.icon-sm a {
  background: #fff !important;
  color: var(--md-brand-header, #202c45) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  border-radius: 50%;
  line-height: 1 !important;
}

body.md-site .header-top.md-header-top .styled-icons.icon-sm a:hover {
  background: #fff !important;
  color: var(--md-brand-header, #202c45) !important;
  opacity: 0.88;
}

/* Masaüstü nav: menü tek satır */
body.md-site .md-desktop-nav-menu .menuzord-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  float: none !important;
}

body.md-site .md-desktop-nav-menu .menuzord-menu > li > a {
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 10px 6px !important;
}

body.md-site .md-nav-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 999px;
  background: #fff !important;
  color: var(--md-brand-header, #202c45) !important;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none !important;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

body.md-site .md-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  color: var(--md-brand-header, #202c45) !important;
}

@media (min-width: 992px) {
  body.md-site .md-site-header .header-nav .container {
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
  }

  body.md-site .md-desktop-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    width: 100%;
    padding: 6px 0 10px;
  }

  body.md-site .md-desktop-nav-logo {
    flex: 0 0 auto;
    float: none !important;
    margin: 0 36px 0 6px !important;
    padding: 0 !important;
    line-height: 0;
    display: flex;
    align-items: center;
    align-self: center;
  }

  body.md-site .md-desktop-nav-logo img {
    max-height: 68px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
  }

  body.md-site .md-desktop-nav-menu {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  body.md-site .md-desktop-nav-menu .menuzord {
    width: 100%;
    float: none !important;
  }

  body.md-site .md-desktop-nav-actions {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 6px;
    align-self: center;
  }

  body.md-site .md-desktop-nav-cta {
    margin: 0 !important;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
  }

  body.md-site .md-desktop-nav-cta > li {
    margin: 0 !important;
    padding: 0;
  }
}

/* Mobil alt bar */
body.md-site .md-mobile-tabbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 10080;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  justify-items: center;
  gap: 0;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--md-footer-bg-soft);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.97) 0%, rgba(15, 23, 42, 1) 100%);
  border-radius: 22px 22px 26px 26px;
  box-shadow:
    0 -4px 32px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: translateY(110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

body.md-site .md-mobile-tabbar.is-visible {
  display: grid;
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.md-site.md-tabbar-visible {
  padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

body.md-site .md-tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 2px 1px 0;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body.md-site .md-tabbar-item i {
  font-size: 17px;
  opacity: 0.95;
  flex-shrink: 0;
}

body.md-site .md-tabbar-item span:last-child {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 1px;
}

body.md-site .md-tabbar-item--center {
  position: relative;
  justify-content: flex-end;
  padding-top: 22px;
  min-height: 58px;
}

body.md-site .md-tabbar-center-ring {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.97) 0%, rgba(15, 23, 42, 1) 100%);
  border: 3px solid rgba(15, 23, 42, 1);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.md-site .md-tabbar-item--center .md-tabbar-center-ring i {
  font-size: 21px;
  color: #fff;
}

body.md-site .md-tabbar-item--center > span:last-child {
  margin-top: 0;
}

body.md-site .md-tabbar-item:active {
  opacity: 0.85;
}

@media (min-width: 992px) {
  body.md-site .md-mobile-tabbar {
    display: none !important;
  }

  body.md-site.md-tabbar-visible {
    padding-bottom: 0;
  }
}

@media (max-width: 991px) {
  body.md-site.md-tabbar-visible .whatsapp {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.md-site.md-tabbar-visible .telefon {
    bottom: calc(156px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.md-site.md-tabbar-visible .scrollToTop {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
