/* ============================================================
   Connection Status Banner
   Shows a floating message when the user goes offline/online
   ============================================================ */

.conn-banner{
  position:fixed; left:50%; bottom:1.2rem;
  transform:translate(-50%, 180%);
  z-index:300;
  display:flex; align-items:center; gap:.6rem;
  padding:.75rem 1.25rem; border-radius:999px;
  font-size:.85rem; font-weight:700; line-height:1.3;
  font-family:system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
  background:#fff; color:#1a2332;
  border:1px solid #e6ebf1;
  box-shadow:0 14px 34px -14px rgba(15,23,42,.45);
  transition:transform .38s cubic-bezier(.4,0,.2,1), opacity .3s;
  opacity:0; pointer-events:none;
  max-width:calc(100vw - 2rem);
  text-align:center;
}
.conn-banner.show{ transform:translate(-50%, 0); opacity:1; }

.conn-banner .conn-dot{
  width:9px; height:9px; border-radius:50%;
  background:#e11d48; flex:0 0 auto;
  animation:conn-pulse 1.8s infinite;
}

/* --- offline state (rose) --- */
.conn-banner.offline{
  background:#fff1f2; color:#9f1239; border-color:#fecdd3;
}
.conn-banner.offline .conn-dot{
  background:#e11d48;
  box-shadow:0 0 0 0 rgba(225,29,72,.55);
}

/* --- online state (green — matches site theme) --- */
.conn-banner.online{
  background:#ecfdf5; color:#047857; border-color:#a7f3d0;
}
.conn-banner.online .conn-dot{
  background:#059669;
  box-shadow:0 0 0 0 rgba(5,150,105,.55);
}

@keyframes conn-pulse{
  0%   { box-shadow:0 0 0 0 currentColor; }
  70%  { box-shadow:0 0 0 10px transparent; }
  100% { box-shadow:0 0 0 0 transparent; }
}

@media(max-width:520px){
  .conn-banner{ font-size:.8rem; padding:.7rem 1rem; bottom:1rem; }
}