/* ========================================================
   tenis.izmir - PWA Smart Install Banner & iOS A2HS Guide
   ======================================================== */

.pwa-banner-wrap {
  position: fixed;
  bottom: 74px; /* Tab bar üstünde */
  left: 12px;
  right: 12px;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(18, 24, 38, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 255, 0, 0.28);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 15px rgba(212, 255, 0, 0.12);
  z-index: 990;
  animation: pwaSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaSlideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.pwa-app-icon {
  width: 40px;
  height: 40px;
  background: #d4ff00;
  color: #090d16;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(212, 255, 0, 0.25);
}

.pwa-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pwa-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-subtitle {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.btn-pwa-install {
  background: #d4ff00;
  color: #090d16;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s;
  box-shadow: 0 2px 10px rgba(212, 255, 0, 0.2);
}

.btn-pwa-install:hover {
  background: #bce600;
  transform: scale(1.02);
}

.btn-pwa-dismiss {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.btn-pwa-dismiss:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* iOS Safari Modal Sheet */
.pwa-ios-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  animation: pwaFadeIn 0.25s ease;
}

@keyframes pwaFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.pwa-ios-modal-sheet {
  width: 100%;
  max-width: 440px;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  animation: pwaSheetUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pwaSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

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

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

.pwa-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(25, 34, 51, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.pwa-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.4;
}

.pwa-ios-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 255, 0, 0.15);
  border: 1px solid rgba(212, 255, 0, 0.35);
  color: #d4ff00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.pwa-ios-btn-done {
  width: 100%;
  background: #d4ff00;
  color: #090d16;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
}
