/* ============================================================
   DP PWA – Frontend Styles v1.4
   Covers: Install Banner, iOS Guide, Edge Tip
============================================================ */

/* ─── INSTALL BANNER (Android / Chrome / Edge) ─── */
#dp-pwa-banner {
  position: fixed;
  bottom: -120px;
  left: 0; right: 0;
  z-index: 99999;
  transition: bottom 0.4s cubic-bezier(0.25,0.8,0.25,1);
}
#dp-pwa-banner.dp-banner-visible { bottom: 0; }

.dp-banner-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a2e;
  color: #fff;
  padding: 14px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  flex-wrap: wrap;
}
.dp-banner-icon { flex-shrink: 0; opacity: .85; }
.dp-banner-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 160px; }
.dp-banner-text strong { font-size: .95rem; }
.dp-banner-text span   { font-size: .82rem; color: #bbb; }
.dp-banner-actions     { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

#dp-install-btn {
  background: #1a73e8;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
#dp-install-btn:hover { background: #1557b0; }

#dp-dismiss-btn {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color .2s;
}
#dp-dismiss-btn:hover { color: #fff; }

/* ─── iOS VISUAL GUIDE ─── */
#dp-ios-guide {
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
#dp-ios-guide.dp-ios-visible { opacity: 1; visibility: visible; }

.dp-ios-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
}

.dp-ios-sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 32px;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(40px);
  transition: transform .35s ease;
  box-shadow: 0 -8px 40px rgba(0,0,0,.2);
}
#dp-ios-guide.dp-ios-visible .dp-ios-sheet { transform: translateY(0); }

.dp-ios-handle {
  width: 40px; height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.dp-ios-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dp-ios-title { font-size: 1.05rem; font-weight: 700; color: #111; }
.dp-ios-close-btn {
  background: #f0f0f0;
  border: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: .85rem;
  cursor: pointer;
  color: #555;
  display: flex; align-items: center; justify-content: center;
}

/* iOS Push warning */
.dp-ios-push-warn {
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: .82rem;
  color: #92400e;
  margin-bottom: 14px;
  line-height: 1.5;
}

/* Steps */
.dp-ios-steps { display: flex; flex-direction: column; gap: 16px; }

.dp-ios-step {
  display: flex;
  gap: 14px;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 14px;
  align-items: flex-start;
}

.dp-ios-step-num {
  width: 28px; height: 28px;
  background: #007AFF;
  color: #fff;
  border-radius: 50%;
  font-size: .85rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.dp-ios-step-body { flex: 1; }
.dp-ios-step-title { font-weight: 700; font-size: .9rem; color: #111; margin-bottom: 4px; }
.dp-ios-step-desc  { font-size: .82rem; color: #555; line-height: 1.5; margin-bottom: 10px; }

/* Step animations */
.dp-ios-anim {
  border-radius: 8px;
  overflow: hidden;
  background: #e8ecf0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 70px;
}

.dp-ios-anim-share svg { animation: dp-ios-bounce 1.6s ease-in-out infinite; }
@keyframes dp-ios-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.dp-ios-tap-dot {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  background: rgba(0,122,255,.6);
  border-radius: 50%;
  animation: dp-ios-tap 1.6s ease-in-out infinite;
}
@keyframes dp-ios-tap {
  0%,100% { transform: translateX(-50%) scale(1); opacity: .7; }
  50%      { transform: translateX(-50%) scale(1.5); opacity: 0; }
}

.dp-ios-anim-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  background: #fff;
  border-radius: 10px;
  padding: 6px;
  width: 100%;
}
.dp-ios-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-size: .82rem;
  color: #333;
  border-radius: 6px;
}
.dp-ios-menu-highlight {
  background: #007AFF;
  color: #fff;
  font-weight: 600;
  animation: dp-ios-pulse 1.8s ease-in-out infinite;
}
@keyframes dp-ios-pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .7; }
}

.dp-ios-anim-add { flex-direction: column; align-items: stretch; width: 100%; }
.dp-ios-add-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f2f2f7;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .82rem;
}
.dp-ios-add-bar span:first-child { color: #007AFF; }
.dp-ios-add-title { font-weight: 600; color: #111; }
.dp-ios-add-btn {
  color: #fff;
  background: #007AFF;
  padding: 4px 14px;
  border-radius: 6px;
  font-weight: 700;
  animation: dp-ios-pulse 1.8s ease-in-out infinite;
}

/* iOS footer buttons */
.dp-ios-footer {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: center;
}
.dp-ios-dismiss-btn, .dp-ios-noshow-btn {
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: .85rem;
  cursor: pointer;
  font-weight: 500;
}
.dp-ios-dismiss-btn  { background: #007AFF; color: #fff; }
.dp-ios-noshow-btn   { background: #f0f0f0; color: #555; }
.dp-ios-dismiss-btn:hover { background: #0060cc; }
.dp-ios-noshow-btn:hover  { background: #e0e0e0; }

/* ─── WINDOWS EDGE TIP ─── */
#dp-edge-tip {
  position: fixed;
  bottom: -90px;
  right: 20px;
  z-index: 99999;
  transition: bottom .4s ease;
  max-width: 340px;
}
#dp-edge-tip.dp-edge-visible { bottom: 20px; }

.dp-edge-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #0078d4;
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.dp-edge-icon { flex-shrink: 0; }
.dp-edge-text { flex: 1; }
.dp-edge-text strong { font-size: .88rem; display: block; color: #111; margin-bottom: 2px; }
.dp-edge-text span   { font-size: .78rem; color: #555; line-height: 1.4; }
.dp-edge-close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}
.dp-edge-close:hover { color: #333; }

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  .dp-banner-inner { padding: 12px 16px; gap: 10px; }
  #dp-install-btn  { padding: 9px 18px; font-size: .84rem; }
  .dp-ios-sheet    { padding: 12px 16px 28px; }
}
