/* ============================================================
   REPS APP — PWA Install Banner Styles
   Add to main.css or a dedicated pwa.css
   ============================================================ */

/* ── ANDROID INSTALL BANNER ─────────────────────────────── */
#android-install-banner,
#ios-install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0D1420;
  border-top: 2px solid #00D4FF;
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 32px rgba(0, 212, 255, 0.12);
}

#android-install-banner.pwa-banner-visible,
#ios-install-banner.pwa-banner-visible {
  transform: translateY(0);
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 212, 255, 0.2);
}

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

.pwa-banner-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 1px;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 3px;
}

.pwa-banner-sub {
  font-size: 12px;
  color: #5A6A80;
  line-height: 1.4;
}

.pwa-banner-sub strong {
  color: #00D4FF;
}

/* Install button */
.pwa-banner-btn {
  background: #00D4FF;
  color: #080C14;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.1s;
}

.pwa-banner-btn:hover {
  background: #33DDFF;
}

.pwa-banner-btn:active {
  transform: scale(0.97);
}

/* Dismiss X button */
.pwa-banner-close {
  background: none;
  border: none;
  color: #5A6A80;
  font-size: 16px;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s;
}

.pwa-banner-close:hover {
  color: #E2EAF4;
}

/* ── iOS SPECIFIC ──────────────────────────────────────────── */
.pwa-ios-content {
  padding-bottom: 10px;
}

.pwa-ios-arrow {
  text-align: center;
  color: #00D4FF;
  font-size: 18px;
  padding: 0 0 12px;
  animation: bounce-arrow 1.5s ease-in-out infinite;
}

@keyframes bounce-arrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.pwa-share-icon {
  display: inline-block;
  background: #00D4FF;
  color: #080C14;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  margin: 0 2px;
}

/* ── UPDATE TOAST ────────────────────────────────────────── */
#pwa-update-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 9999;
  background: #0D1420;
  border: 1px solid #00D4FF;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #E2EAF4;
  box-shadow: 0 4px 24px rgba(0, 212, 255, 0.2);
  white-space: nowrap;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#pwa-update-toast.pwa-toast-visible {
  transform: translateX(-50%) translateY(0);
}

#pwa-update-btn {
  background: #00D4FF;
  color: #080C14;
  border: none;
  border-radius: 4px;
  padding: 6px 14px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

#pwa-update-btn:hover {
  background: #33DDFF;
}

/* ── STANDALONE MODE ADJUSTMENTS ─────────────────────────── */
/* When running as installed PWA, hide browser-specific UI */
@media (display-mode: standalone) {
  /* Add padding for iOS status bar */
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }

  /* Hide any "open in browser" type links */
  .browser-only {
    display: none !important;
  }
}

/* ── MOBILE SAFE AREA ────────────────────────────────────── */
@supports (padding: max(0px)) {
  #android-install-banner,
  #ios-install-banner {
    padding-bottom: max(0px, env(safe-area-inset-bottom));
  }
}
