/* NewsZiffy PWA install banner & instructions modal */

#nz-pwa-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 99999;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  max-width: 480px;
  margin: 0 auto;
  animation: nz-pwa-slide-up 0.35s ease-out;
}

@keyframes nz-pwa-slide-up {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

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

#nz-pwa-banner .nz-pwa-text {
  flex: 1;
  min-width: 0;
}

#nz-pwa-banner .nz-pwa-title {
  font-weight: 600;
  font-size: 14px;
  color: #222;
  margin: 0 0 2px;
}

#nz-pwa-banner .nz-pwa-sub {
  font-size: 12px;
  color: #777;
  margin: 0;
}

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

#nz-pwa-banner button {
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

#nz-pwa-banner .nz-pwa-install-btn {
  background: #c0392b;
  color: #fff;
}

#nz-pwa-banner .nz-pwa-close-btn {
  background: transparent;
  color: #999;
  font-size: 18px;
  line-height: 1;
  padding: 6px 8px;
}

/* Modal with install instructions */
#nz-pwa-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#nz-pwa-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px;
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  position: relative;
}

#nz-pwa-modal h2 {
  font-size: 18px;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#nz-pwa-modal h2 img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

#nz-pwa-modal p.nz-pwa-modal-desc {
  font-size: 13px;
  color: #777;
  margin: 0 0 14px;
}

#nz-pwa-modal .nz-pwa-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: #999;
  cursor: pointer;
  line-height: 1;
}

#nz-pwa-modal .nz-pwa-steps {
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
}

#nz-pwa-modal .nz-pwa-steps li {
  margin-bottom: 6px;
}

#nz-pwa-modal .nz-pwa-icon-inline {
  display: inline-block;
  vertical-align: middle;
  font-weight: 600;
  padding: 1px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  background: #f7f7f7;
}

#nz-pwa-modal .nz-pwa-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

#nz-pwa-modal .nz-pwa-tab {
  flex: 1;
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #f7f7f7;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #555;
}

#nz-pwa-modal .nz-pwa-tab.active {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
}

#nz-pwa-modal .nz-pwa-panel {
  display: none;
}

#nz-pwa-modal .nz-pwa-panel.active {
  display: block;
}

#nz-pwa-modal .nz-pwa-install-now {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #c0392b;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 380px) {
  #nz-pwa-banner .nz-pwa-sub { display: none; }
}
