/**
 * FixMatka.Net - PWA Install Banner Styles
 */

.pwa-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  padding: 12px 14px calc(18px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  box-sizing: border-box;
}

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

.pwa-banner-card {
  position: relative;
  background: #ffffff;
  color: #1e293b;
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 480px;
  padding: 16px 18px;
  box-sizing: border-box;
  border-top: 4px solid #b91c1c;
}

.pwa-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  transition: color 0.15s;
}

.pwa-close-btn:hover {
  color: #334155;
}

.pwa-app-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.pwa-icon-wrap {
  position: relative;
  flex-shrink: 0;
}

.pwa-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.3);
  display: block;
}

.pwa-live-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 12px;
  height: 12px;
  background: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.4);
  animation: pwaPulse 2s infinite;
}

@keyframes pwaPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

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

.pwa-app-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 2px;
}

.pwa-app-sub {
  font-size: 12.5px;
  color: #b91c1c;
  font-weight: 700;
  margin-bottom: 6px;
}

.pwa-features-pill {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pwa-features-pill span {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 12px;
}

.pwa-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pwa-btn-primary {
  flex: 1;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
  transition: transform 0.15s, background 0.15s;
  text-align: center;
}

.pwa-btn-primary:active {
  transform: scale(0.98);
}

.pwa-btn-dismiss {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #64748b;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.pwa-btn-dismiss:hover {
  background: #f1f5f9;
  color: #334155;
}

/* iOS Specific Guide */
.pwa-ios-instructions {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #334155;
}

.pwa-ios-step {
  margin-bottom: 4px;
}

.pwa-ios-step:last-child {
  margin-bottom: 0;
}

.pwa-ios-icon {
  display: inline-block;
  background: #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: bold;
}
