/* PWA iOS Prompt - Rodapé */
.pwa-prompt-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  padding: 16px;
  pointer-events: none;
}

.pwa-prompt-card {
  width: 100%;
  max-width: 600px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 16px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  pointer-events: auto;
  transform: translateY(100%);
  opacity: 0;
  animation: pwaSlideUp 300ms ease-out forwards;
}

.pwa-prompt-card.hiding {
  animation: pwaSlideDown 300ms ease-in forwards;
}

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

@keyframes pwaSlideDown {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(100%); opacity: 0; }
}

.pwa-prompt-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pwa-prompt-title {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 8px 0;
}

.pwa-prompt-description {
  font-size: 14px;
  color: #5f6368;
  margin: 0;
}

.pwa-prompt-instruction {
  font-size: 14px;
  color: #000000;
  margin: 12px 0 0 0;
}

.pwa-prompt-instruction-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 2px;
}

.pwa-prompt-instruction-icon svg {
  width: 18px;
  height: 18px;
}

.pwa-prompt-buttons {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.pwa-prompt-btn {
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  background-color: #ffffff;
}

/* Android Install Banner - Estilo Fodmapedia */
.pwa-install-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  color: #333333;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 300ms ease;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pwa-install-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.pwa-install-banner.hiding {
  transform: translateY(-100%);
  opacity: 0;
}

.pwa-banner-close {
  background: transparent;
  border: none;
  color: #666666;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
  line-height: 1;
}

.pwa-banner-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.pwa-banner-text {
  flex: 1;
  font-size: 13px;
  font-weight: 400;
  color: #333333;
  line-height: 1.3;
}

.pwa-banner-install {
  background: #0d6efd;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.pwa-banner-install:active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* Dark mode - manter fundo branco no iOS */
@media (prefers-color-scheme: dark) {
  .pwa-prompt-card {
    background-color: #ffffff;
  }
}
