/**
 * PWA Install Banner Styles
 * Version: 2026.1.7
 */

.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: white;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-banner.active {
  transform: translateY(0);
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.pwa-banner-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.pwa-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-banner-text {
  flex: 1;
  min-width: 0;
}

.pwa-banner-title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.pwa-banner-subtitle {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pwa-btn-install {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: #00488d;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.pwa-btn-install:hover {
  background: #003d7a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 72, 141, 0.3);
}

.pwa-btn-install:active {
  transform: translateY(0);
}

.pwa-btn-dismiss {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.pwa-btn-dismiss:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* iOS specific */
.pwa-ios-banner .pwa-banner-subtitle {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Dark mode */
[data-theme="dark"] .pwa-install-banner {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .pwa-banner-title {
  color: #e2e8f0;
}

[data-theme="dark"] .pwa-banner-subtitle {
  color: #94a3b8;
}

[data-theme="dark"] .pwa-banner-icon {
  background: #0f172a;
}

[data-theme="dark"] .pwa-btn-install {
  background: #3b82f6;
}

[data-theme="dark"] .pwa-btn-install:hover {
  background: #2563eb;
}

[data-theme="dark"] .pwa-btn-dismiss:hover {
  background: #334155;
  color: #e2e8f0;
}

/* Responsive */
@media (max-width: 640px) {
  .pwa-banner-content {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .pwa-banner-icon {
    width: 40px;
    height: 40px;
  }
  
  .pwa-banner-title {
    font-size: 14px;
  }
  
  .pwa-banner-subtitle {
    font-size: 12px;
  }
  
  .pwa-btn-install {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .pwa-btn-dismiss {
    width: 32px;
    height: 32px;
  }
}

/* Animation */
@keyframes pwa-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.pwa-install-banner.active .pwa-btn-install {
  animation: pwa-bounce 2s ease-in-out 1s 3;
}
