/* ═══════════════════════════════════════════
   eSarkari PWA Styles
   Install Banner, Update Banner, Toasts
   ═══════════════════════════════════════════ */

/* ── Install Banner ── */
#pwa-install-banner {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  z-index: 9998;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 12px 12px;
}

#pwa-install-banner.visible {
  bottom: 0;
}

.pwa-banner-inner {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, #110a14, #1e0d24);
  border: 1px solid rgba(208, 45, 129, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 30px rgba(0,0,0,0.3);
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-banner-text strong {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.pwa-banner-text span {
  color: rgba(255,255,255,0.55);
  font-size: 0.78rem;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-install {
  background: rgba(208, 45, 129, 0.85);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, transform 0.2s;
}

.pwa-btn-install:hover {
  background: rgba(208, 45, 129, 1);
  transform: scale(1.03);
}

.pwa-btn-dismiss {
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.pwa-btn-dismiss:hover {
  color: rgba(255,255,255,0.8);
}

/* ── Update Banner ── */
#pwa-update-banner {
  position: fixed;
  top: -60px;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#pwa-update-banner.visible {
  top: 0;
}

.pwa-update-inner {
  background: linear-gradient(135deg, #0f0a12, #2a1030);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
}

.pwa-btn-reload {
  background: rgba(208, 45, 129, 0.8);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.pwa-btn-reload:hover {
  background: rgba(208, 45, 129, 1);
}

/* ── Online/Offline Toasts ── */
.pwa-toast {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 10px 24px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: #fff;
  transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.pwa-toast.visible {
  bottom: 24px;
}

.pwa-toast-online {
  background: linear-gradient(135deg, #059669, #10b981);
}

.pwa-toast-offline {
  background: linear-gradient(135deg, #dc2626, #ef4444);
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
  .pwa-banner-inner {
    padding: 12px 14px;
  }
  .pwa-banner-icon {
    width: 36px;
    height: 36px;
  }
  .pwa-banner-text strong {
    font-size: 0.85rem;
  }
  .pwa-btn-install {
    padding: 7px 14px;
    font-size: 0.8rem;
  }
}
