/* PWA Install - iOS Prompt */
.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: 20px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

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

.pwa-prompt-instruction {
  font-size: 15px;
  color: #000000;
  margin: 14px 0 0 0;
  line-height: 1.5;
}

.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: 16px;
}

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

.pwa-prompt-btn:active {
  transform: scale(0.97);
}

.pwa-prompt-btn:hover {
  background-color: #f5f5f5;
}

/* Android Install Banner - Rodapé estilo 2048 */
.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #f9f6f2;
  border-top: 1px solid #bbada0;
  color: #776e65;
  font-family: "Clear Sans", "Helvetica Neue", Arial, sans-serif;
  transform: translateY(100%);
  opacity: 0;
  transition: all 300ms ease;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
}

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

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

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

.pwa-banner-text {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: #776e65;
}

.pwa-banner-install {
  background: #8f7a66;
  color: #f9f6f2;
  border: none;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  flex-shrink: 0;
}

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

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

.pwa-banner-close:hover {
  color: #776e65;
}

/* Dark mode - keep white background */
@media (prefers-color-scheme: dark) {
  .pwa-prompt-card {
    background-color: #ffffff;
  }
  .pwa-prompt-title {
    color: #000000;
  }
  .pwa-prompt-description {
    color: #5f6368;
  }
  .pwa-prompt-btn {
    background-color: #ffffff;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .pwa-prompt-overlay {
    padding: 12px;
  }
  .pwa-prompt-card {
    padding: 14px;
  }
  .pwa-install-fab {
    bottom: 16px;
    right: 16px;
    padding: 10px 16px;
    font-size: 14px;
  }
}
