/* ═══════════════════════════════════════════════════════════════════════════
   PWA INSTALL PROMPT
   ═══════════════════════════════════════════════════════════════════════════ */

.pwa-install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-pwa);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.pwa-install-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

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

.pwa-install-text strong {
  font-size: 14px;
  color: #333;
}

.pwa-install-text p {
  font-size: 12px;
  color: #666;
  margin: 0;
}

.pwa-install-actions {
  display: flex;
  gap: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OFFLINE INDICATOR
   ═══════════════════════════════════════════════════════════════════════════ */

.offline-indicator {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(-60px);
  z-index: var(--z-pwa);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.45);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease;
}

.offline-indicator.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  animation: offlinePulse 3s ease-in-out infinite;
}

@keyframes offlinePulse {
  0%,
  100% {
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.45);
  }
  50% {
    box-shadow: 0 4px 24px rgba(255, 107, 107, 0.7);
  }
}

.offline-icon {
  font-size: 16px;
}
