/* PWA install, update, and iOS hint banners */

.pwa-install-banner,
.pwa-update-banner,
.pwa-ios-hint {
  position: fixed;
  left: 16px;
  right: 16px;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  animation: pwaSlideUp 0.35s ease;
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

.pwa-install-banner {
  bottom: calc(var(--bottom-nav-height, 64px) + 16px + env(safe-area-inset-bottom));
  background: #fff;
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.pwa-update-banner {
  top: calc(16px + env(safe-area-inset-top));
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
}

.pwa-ios-hint {
  bottom: calc(var(--bottom-nav-height, 64px) + 16px + env(safe-area-inset-bottom));
  background: #212529;
  color: #fff;
}

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

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

.pwa-install-icon {
  flex-shrink: 0;
  border-radius: 12px;
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pwa-install-text strong {
  font-size: 0.9375rem;
  color: #212529;
}

.pwa-install-text span {
  font-size: 0.8125rem;
  color: #6c757d;
}

.pwa-banner-text {
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.pwa-banner-btn {
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.pwa-banner-btn-primary {
  background: #fff;
  color: #28a745;
  padding: 8px 16px;
  font-size: 0.875rem;
}

.pwa-update-banner .pwa-banner-btn-primary {
  background: rgba(255, 255, 255, 0.95);
  color: #218838;
}

.pwa-banner-btn-dismiss {
  background: transparent;
  color: inherit;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px 8px;
  opacity: 0.8;
}

.pwa-banner-btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

.pwa-ios-hint-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.pwa-ios-hint-content i {
  font-size: 1.25rem;
  color: #20c997;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .pwa-install-banner,
  .pwa-ios-hint {
    left: auto;
    right: 24px;
    max-width: 420px;
  }

  .pwa-update-banner {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 480px;
    width: calc(100% - 48px);
  }
}
