/* ==========================================
   PWA - BFC Style - Navbar ke andar pill
   css/pwa.css
   ========================================== */

#pwa-banner {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  z-index: 99999;
  background: rgba(15, 10, 3, 0.95);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50px;
  padding: 9px 14px 9px 10px;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}

#pwa-banner.show {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#pwa-banner img {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
}

#pwa-banner span {
  font-family: 'Jost', sans-serif;
  font-size: 0.83rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
}

#pwa-install-btn {
  background: linear-gradient(135deg, #C9A84C, #E8C97A);
  color: #0D0D0D;
  border: none;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: 'Jost', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#pwa-install-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(201,168,76,0.5);
}

#pwa-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
}

#pwa-close-btn:hover { color: #fff; }

/* ---- MOBILE: navbar ke andar, center mein ---- */
@media (max-width: 768px) {
  #pwa-banner {
    top: 18px;         /* navbar height ke beech mein */
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%) translateY(-80px);
    border-radius: 50px;
    padding: 8px 12px 8px 8px;
    white-space: nowrap;
    max-width: calc(100vw - 180px); /* logo aur hamburger ke liye jagah */
  }

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

  #pwa-banner img {
    width: 28px;
    height: 28px;
  }

  #pwa-banner span {
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
  }

  #pwa-install-btn {
    padding: 6px 14px;
    font-size: 0.73rem;
  }
}

/* iOS Popup */
#ios-install-popup {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 99997;
  background: rgba(20,15,5,0.97);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 20px;
  padding: 24px;
  width: 88%;
  max-width: 340px;
  text-align: center;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(12px);
}

#ios-install-popup.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

#ios-install-popup img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  margin: 0 auto 12px;
}

#ios-install-popup h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #E8C97A;
  margin-bottom: 8px;
}

#ios-install-popup p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  font-family: 'Jost', sans-serif;
  line-height: 1.6;
  margin-bottom: 16px;
}

#ios-install-popup p strong { color: #C9A84C; }

.ios-steps {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.ios-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-family: 'Jost', sans-serif;
}

.ios-step-icon {
  width: 36px;
  height: 36px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

#ios-close-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  transition: all 0.2s;
}

#ios-close-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }