/* Floating WhatsApp button (inc/whatsapp.php). Self-contained: touches no other element.
   Fixed bottom-left in both languages so it doesn't jump when the language is switched.
   z-index 36: above page content and sticky sub-navs (≤ 35), below the header (40) and top bar (50). */
.nahj-wa-float {
  position: fixed;
  left: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 36;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #7A1228 0%, #520B1A 50%, #340610 100%);
  color: #F3E5AB;
  border: 1px solid rgba(212, 175, 55, .55);
  box-shadow: 0 4px 12px rgba(52, 6, 16, .28), 0 2px 4px rgba(52, 6, 16, .16);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nahj-wa-float svg {
  display: block;
  width: 30px;
  height: 30px;
}
.nahj-wa-float:hover {
  color: #FFFFFF;
  border-color: #D4AF37;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(52, 6, 16, .32), 0 3px 6px rgba(52, 6, 16, .16);
}
.nahj-wa-float:focus-visible {
  outline: 3px solid rgba(212, 175, 55, .55);
  outline-offset: 3px;
}

/* Tablet / mobile: slightly smaller and closer to the edge so it never crowds content. */
@media (max-width: 767px) {
  .nahj-wa-float {
    left: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
  }
  .nahj-wa-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nahj-wa-float { transition: none; }
  .nahj-wa-float:hover { transform: none; }
}

@media print {
  .nahj-wa-float { display: none; }
}
