/* ==========================================================================
   Responsive & Mobile Navigation Drawer
   ========================================================================== */

/* Fullscreen Editorial Mobile Navigation Overlay */
.po-mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: var(--po-z-drawer);
  background-color: var(--po-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem var(--po-gutter) 2.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--po-transition-base), visibility var(--po-transition-base);
  overflow-y: auto;
}

.po-mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.po-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--po-line);
}

.po-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--po-line);
  color: var(--po-charcoal);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color var(--po-transition-fast);
}

.po-drawer-close:hover {
  background-color: var(--po-warm-white);
}

.po-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 3rem 0;
}

.po-drawer-link {
  font-family: var(--po-font-serif);
  font-size: clamp(2rem, 8vw, 3.25rem);
  font-weight: 400;
  color: var(--po-charcoal);
  text-decoration: none;
  line-height: 1.1;
  transition: color var(--po-transition-fast), transform var(--po-transition-fast);
  display: inline-block;
}

.po-drawer-link:hover {
  color: var(--po-champagne-dark);
  transform: translateX(6px);
}

.po-drawer-footer {
  padding-top: 2rem;
  border-top: 1px solid var(--po-line);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.po-drawer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--po-muted);
}

.po-drawer-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--po-whatsapp);
  color: var(--po-white);
  padding: 1rem 1.5rem;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ==========================================================================
   Mobile Fixed Contact Bar (Call & WhatsApp)
   ========================================================================== */
.po-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  background-color: var(--po-mob-bar-bg, #181714);
  border-top: 1px solid var(--po-mob-bar-border, rgba(197, 168, 128, 0.25));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: var(--po-z-bar, 999);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .po-mobile-bar {
    display: none !important;
  }
}

.po-mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  height: 44px;
  padding: 0 10px;
  box-sizing: border-box;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.po-mobile-bar-btn:active {
  transform: scale(0.97);
}

.po-mobile-bar-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Buton 1 (Bizi Arayın) - Siyah Zemin, Beyaz Yazı */
.po-mobile-bar-btn--phone,
.po-mobile-bar-btn:first-child {
  background-color: var(--po-mob-btn1-bg, #181714) !important;
  color: var(--po-mob-btn1-color, #FFFFFF) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.po-mobile-bar-btn--phone svg,
.po-mobile-bar-btn:first-child svg {
  color: var(--po-mob-btn1-color, #FFFFFF) !important;
  stroke: var(--po-mob-btn1-color, #FFFFFF) !important;
}

.po-mobile-bar-btn--phone:hover,
.po-mobile-bar-btn:first-child:hover {
  filter: brightness(1.15);
}

/* Buton 2 (WhatsApp) - Altın Sarısı Zemin, Siyah Yazı */
.po-mobile-bar-btn--whatsapp,
.po-mobile-bar-btn.is-whatsapp {
  background-color: var(--po-mob-btn2-bg, #C5A880) !important;
  color: var(--po-mob-btn2-color, #181714) !important;
  border: 1px solid rgba(197, 168, 128, 0.4);
  box-shadow: 0 2px 10px rgba(197, 168, 128, 0.25);
}

.po-mobile-bar-btn--whatsapp svg,
.po-mobile-bar-btn.is-whatsapp svg {
  color: var(--po-mob-btn2-color, #181714) !important;
  fill: var(--po-mob-btn2-color, #181714) !important;
}

.po-mobile-bar-btn--whatsapp:hover,
.po-mobile-bar-btn.is-whatsapp:hover {
  filter: brightness(1.08);
}

/* Compensate bottom margin on mobile when mobile bar is visible */
@media (max-width: 767px) {
  body {
    padding-bottom: 60px;
  }
}

/* ==========================================================================
   Desktop Floating WhatsApp Button (Screen >= 768px)
   ========================================================================== */
.po-desktop-whatsapp {
  display: none;
}

@media (min-width: 768px) {
  .po-desktop-whatsapp {
    display: block;
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 9999;
  }

  .po-desktop-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--po-desk-wa-bg, #25D366);
    color: var(--po-desk-wa-color, #FFFFFF) !important;
    text-decoration: none !important;
    padding: 12px 20px 12px 16px;
    border-radius: 50px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, filter 0.2s ease;
    position: relative;
    box-sizing: border-box;
  }

  .po-desktop-whatsapp-link:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.18);
    filter: brightness(1.06);
    color: var(--po-desk-wa-color, #FFFFFF) !important;
  }

  .po-desktop-whatsapp-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
  }

  .po-desktop-whatsapp-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
  }

  .po-desktop-whatsapp-pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50px;
    background: inherit;
    opacity: 0.4;
    z-index: -1;
    animation: po-wa-pulse 2.4s cubic-bezier(0.24, 0, 0.38, 1) infinite;
    pointer-events: none;
  }

  @keyframes po-wa-pulse {
    0% {
      transform: scale(0.95);
      opacity: 0.55;
    }
    50% {
      transform: scale(1.22);
      opacity: 0;
    }
    100% {
      transform: scale(1.22);
      opacity: 0;
    }
  }

  .po-desktop-whatsapp-label {
    line-height: 1;
    white-space: nowrap;
    font-family: inherit;
  }
}

/* --------------------------------------------------------------------------
   Mobil iletişim çubuğu — üç butonlu varyant
   PHP üç buton bastığında ızgara iki sütunda kaldığı için üçüncü buton
   sabit yükseklikli çubuktan taşıyordu. Bu sınıf çubuğu üç sütuna geçirir
   ve dar ekranda yazıları sığdırır.
   -------------------------------------------------------------------------- */
.po-mobile-bar--three {
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding-left: 8px;
  padding-right: 8px;
}

.po-mobile-bar--three .po-mobile-bar-btn {
  gap: 5px;
  padding: 0 4px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.po-mobile-bar--three .po-mobile-bar-btn svg {
  width: 16px;
  height: 16px;
}

.po-mobile-bar--three .po-mobile-bar-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Çok dar ekranlarda üçüncü butonda yalnızca ikon kalsın. */
@media (max-width: 360px) {
  .po-mobile-bar--three .po-mobile-bar-btn {
    font-size: 9.5px;
  }
}

/* Buton 3 (opsiyonel aksiyon) — şampanya çerçeveli koyu zemin. */
.po-mobile-bar-btn--action,
.po-mobile-bar-btn.is-primary {
  background-color: var(--po-mob-btn3-bg, #2A2721) !important;
  color: var(--po-mob-btn3-color, #F1DC91) !important;
  border: 1px solid rgba(197, 168, 128, 0.45);
}

.po-mobile-bar-btn--action svg,
.po-mobile-bar-btn.is-primary svg {
  color: var(--po-mob-btn3-color, #F1DC91) !important;
  stroke: var(--po-mob-btn3-color, #F1DC91) !important;
}
