/* ----------------------------------------
   5. PWA STYLES
   ---------------------------------------- */
/* Install prompt banner */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 99999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(239, 55, 36, 0.3);
  backdrop-filter: blur(20px);
}

.pwa-install-banner.show {
  transform: translateY(0);
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}

.pwa-install-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ef3724 0%, #ffd700 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.pwa-install-text h4 {
  color: white;
  margin: 0 0 4px;
  font-size: 1rem;
}

.pwa-install-text p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.85rem;
}

.pwa-install-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.pwa-install-btn {
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.9rem;
}

.pwa-install-btn.primary {
  background: linear-gradient(135deg, #ef3724 0%, #ff6b5b 100%);
  color: white;
}

.pwa-install-btn.primary:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(239, 55, 36, 0.4);
}

.pwa-install-btn.secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pwa-install-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Offline indicator */
.offline-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, #ff6b5b 0%, #ef3724 100%);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 0.85rem;
  z-index: 999999;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.offline-indicator.show {
  transform: translateY(0);
}

.offline-indicator i {
  margin-right: 8px;
}

/* PWA update available toast */
.pwa-update-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(30, 30, 30, 0.95);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 99999;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(239, 55, 36, 0.3);
  backdrop-filter: blur(10px);
  max-width: 350px;
}

.pwa-update-toast.show {
  transform: translateX(0);
}

.pwa-update-toast p {
  color: white;
  margin: 0;
  font-size: 0.9rem;
}

.pwa-update-toast button {
  padding: 8px 16px;
  background: #ef3724;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s ease;
}

.pwa-update-toast button:hover {
  background: #ff6b5b;
}

@media (max-width: 576px) {
  .pwa-install-banner {
    flex-direction: column;
    padding: 15px;
    gap: 15px;
  }

  .pwa-install-content {
    width: 100%;
  }

  .pwa-install-actions {
    width: 100%;
  }

  .pwa-install-btn {
    flex: 1;
    text-align: center;
  }

  .pwa-update-toast {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
  }
}

