/* ==========================================================
   Tryker PWA UI — install button, update banner, iOS hint
   ========================================================== */

/* Install button — floats at bottom-left of the screen */
.pwa-install-btn {
  position: fixed;
  bottom: 20px;
  left: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 14px;
  background: linear-gradient(135deg, #6A0DAD, #7B1FBE);
  color: #fff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(106, 13, 173, .35);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  animation: pwaSlideIn .4s ease;
}
.pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(106, 13, 173, .45);
}
.pwa-install-btn:disabled { opacity: .6; cursor: wait }
.pwa-install-btn svg { width: 16px; height: 16px }

@media (min-width: 1024px) {
  .pwa-install-btn { bottom: 24px; left: 24px }
}
@media (max-width: 767px) {
  .pwa-install-btn {
    bottom: 70px; left: 12px;
    padding: 9px 14px;
    font-size: 12px;
  }
}

@keyframes pwaSlideIn {
  from { opacity: 0; transform: translateY(10px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* Update banner — top sticky */
.pwa-update-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(135deg, #6A0DAD, #4D0A82);
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
  animation: pwaSlideDown .4s ease;
}
.pwa-update-banner button {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
}
.pwa-update-banner #pwa-update-btn {
  background: #fff;
  color: #6A0DAD;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
}
.pwa-update-banner #pwa-update-btn:hover { background: #FFE4F1 }
.pwa-update-banner #pwa-dismiss-btn {
  background: transparent;
  color: #fff;
  font-size: 16px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.pwa-update-banner #pwa-dismiss-btn:hover { background: rgba(255, 255, 255, .15) }

@keyframes pwaSlideDown {
  from { transform: translateY(-100%) }
  to   { transform: translateY(0) }
}

/* iOS install hint (Safari only) */
.pwa-ios-hint {
  position: fixed;
  bottom: 110px;
  left: 16px; right: 16px;
  z-index: 90;
  background: #fff;
  border: 1px solid #E9D9F7;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(106, 13, 173, .25);
  padding: 16px 18px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  animation: pwaSlideIn .4s ease;
}
.ios-hint-inner strong {
  display: block;
  font-size: 14px;
  color: #111;
  margin-bottom: 4px;
}
.ios-hint-inner p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6B6478;
  line-height: 1.4;
}
.share-icon {
  display: inline-block;
  background: #6A0DAD;
  color: #fff;
  padding: 0 6px;
  border-radius: 4px;
  font-weight: 700;
}
#pwa-ios-close {
  background: linear-gradient(135deg, #6A0DAD, #7B1FBE);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
