/* ============================================================================
   HERBASSADOR — PWA Install Banner & Update Toast
   ============================================================================ */

/* ============================================================================
   Install Banner (appears at top, non-intrusive)
   ============================================================================ */

.pwa-install-banner {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  background: linear-gradient(135deg, #1a6f6e 0%, #0d4d4c 100%);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: pwa-slide-up 0.3s ease-out;
}

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

.pwa-install-banner.pwa-install-hidden {
  animation: pwa-slide-down 0.3s ease-out forwards;
}

@keyframes pwa-slide-down {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(120px);
    opacity: 0;
  }
}

.pwa-install-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: white;
}

.pwa-install-content strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.pwa-install-content p {
  font-size: 13px;
  opacity: 0.85;
  margin: 0;
}

.pwa-install-btn {
  background: #00d4aa;
  color: #0d4d4c;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pwa-install-btn:hover {
  background: #00e5bb;
  transform: translateY(-2px);
}

.pwa-install-btn:active {
  transform: translateY(0);
}

.pwa-dismiss-btn {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.pwa-dismiss-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   Update Toast (appears at bottom-right)
   ============================================================================ */

.pwa-update-toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: linear-gradient(135deg, #00d4aa 0%, #00b59e 100%);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 24px rgba(0, 212, 170, 0.3);
  z-index: 1001;
  animation: pwa-fade-in 0.3s ease-out;
}

@keyframes pwa-fade-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pwa-update-toast.pwa-update-hidden {
  animation: pwa-fade-out 0.3s ease-out forwards;
}

@keyframes pwa-fade-out {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

.pwa-update-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: white;
  font-size: 14px;
}

.pwa-update-btn {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pwa-update-btn:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.pwa-update-btn:active {
  transform: translateY(0);
}

/* ============================================================================
   Mobile responsive
   ============================================================================ */

@media (max-width: 480px) {
  .pwa-install-banner {
    bottom: 70px;
    left: 8px;
    right: 8px;
    padding: 12px 16px;
  }

  .pwa-install-content {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .pwa-install-btn {
    width: 100%;
    text-align: center;
  }

  .pwa-update-toast {
    left: 8px;
    right: 8px;
    bottom: 70px;
  }
}
