/* PWA Mobile & Desktop Installation Guidance Styling */

/* Bottom Floating Install Banner */
.pwa-banner-wrapper {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 1500;
  width: calc(100% - 32px);
  max-width: 480px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.pwa-banner-wrapper.show {
  transform: translateX(-50%) translateY(0);
}

.pwa-banner-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.pwa-banner-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pwa-banner-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.pwa-banner-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pwa-tag {
  font-size: 10px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.pwa-banner-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

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

.pwa-btn-install {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.pwa-btn-install:hover {
  background: var(--primary-hover);
}

.pwa-btn-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  padding: 2px;
}

.pwa-btn-close:hover {
  color: var(--text-muted);
}

/* iOS Safari Visual Guidance Sheet (Modal) */
.ios-guide-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ios-guide-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.ios-guide-sheet {
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-radius: 24px 24px 0 0;
  width: 100%;
  max-width: 500px;
  padding: 24px 20px 36px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.ios-guide-modal.show .ios-guide-sheet {
  transform: translateY(0);
}

.ios-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.ios-app-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ios-app-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ios-app-icon img {
  width: 100%;
  height: 100%;
}

.ios-app-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.ios-app-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.ios-sheet-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 3-Step Visual Instructions */
.ios-steps-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.ios-step-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 14px;
}

.ios-step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ios-step-text {
  flex: 1;
  font-size: 14px;
  color: #f1f5f9;
  line-height: 1.4;
}

.ios-step-text strong {
  color: #60a5fa;
}

.ios-step-icon {
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
}

/* Bottom bounce indicator pointing to Safari share bar */
.ios-pointer-indicator {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounceDown 1.5s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
