/* PWA Styles v2 - Compact + Fixed */

.pwa-banner {
  position: fixed;
  bottom: 70px;
  left: 8px;
  right: 8px;
  background: linear-gradient(135deg, rgba(209, 18, 31, 0.97), rgba(180, 10, 20, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
  z-index: 50;
  transform: translateY(200%);
  transition: transform 0.4s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
}

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

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.pwa-banner-icon {
  flex-shrink: 0;
  font-size: 20px;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  font-weight: 700;
  font-size: 13px;
  color: #fff;
  line-height: 1.2;
}

.pwa-banner-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
  margin-top: 1px;
}

.pwa-banner-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.pwa-btn {
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  -webkit-tap-highlight-color: rgba(255,255,255,0.2);
  touch-action: manipulation;
  user-select: none;
  position: relative;
  z-index: 1;
}

.pwa-btn-primary {
  background: #fff;
  color: #b00a14;
  border: none;
  font-weight: 800;
  white-space: nowrap;
}

.pwa-btn-primary:active {
  background: #e0e0e0;
  transform: scale(0.95);
}

.pwa-btn-secondary {
  background: rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.9);
  border: none;
  min-width: 32px;
  padding: 8px;
}

.pwa-btn-secondary:active {
  background: rgba(0, 0, 0, 0.5);
}

/* Modal Styles */
.pwa-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.pwa-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.pwa-modal {
  background: #1a1a2e;
  border-radius: 16px;
  max-width: 360px;
  width: 92%;
  max-height: 80vh;
  overflow: auto;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-modal-overlay.show .pwa-modal {
  transform: scale(1);
}

.pwa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-modal-title {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.pwa-modal-body {
  padding: 16px;
  color: white;
}

.pwa-instructions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pwa-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pwa-step-number {
  background: #d1121f;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.pwa-step-text {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  font-size: 13px;
}

/* Success Toast */
.pwa-success-toast {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  background: #065f46;
  color: white;
  padding: 14px;
  border-radius: 10px;
  z-index: 51;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  transform: translateY(-200%);
  transition: transform 0.4s ease;
}

.pwa-success-toast.show {
  transform: translateY(0);
}

/* Update Notification */
.pwa-update-notification {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  background: #1976D2;
  color: white;
  padding: 14px;
  border-radius: 10px;
  z-index: 51;
  transform: translateY(-200%);
  transition: transform 0.4s ease;
}

.pwa-update-notification.show {
  transform: translateY(0);
}

/* Extra small screens */
@media (max-height: 700px) {
  .pwa-banner {
    bottom: 60px;
    padding: 8px 10px;
  }
  .pwa-banner-title { font-size: 12px; }
  .pwa-banner-subtitle { font-size: 10px; }
  .pwa-btn { font-size: 11px; padding: 6px 10px; }
}
