/* ─────────────────────────────────────────────────────────────
   Vignetta PWA Install UI
   Components: install banner (bottom) + iOS instructions modal
───────────────────────────────────────────────────────────── */

/* ── Install Banner ───────────────────────────────────────── */

#vignetta-install-banner {
  display: none; /* shown by JS */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0d0d0d;
  border-top: 1px solid #712c91;
  box-shadow: 0 -4px 24px rgba(113, 44, 145, 0.35);
  padding: 12px 16px 16px;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vn-install-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.vn-install-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vn-install-text {
  flex: 1;
  min-width: 0;
}

.vn-install-text strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.vn-install-text span {
  display: block;
  color: #888888;
  font-size: 12px;
  margin-top: 3px;
  line-height: 1.3;
}

#vn-install-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, #712c91 0%, #c04b9b 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

#vn-install-btn:active {
  opacity: 0.8;
}

#vn-install-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #555555;
  font-size: 20px;
  line-height: 1;
  padding: 4px 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#vn-install-dismiss:active {
  color: #888888;
}

/* ── iOS Instructions Modal ───────────────────────────────── */

#vn-ios-modal {
  display: none; /* shown by JS */
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.80);
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vn-ios-sheet {
  background: #141414;
  border-radius: 20px;
  border: 1px solid #2a2a2a;
  padding: 24px 20px 28px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.6);
}

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

.vn-ios-header h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}

#vn-modal-close {
  background: #2a2a2a;
  border: none;
  color: #888888;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

#vn-modal-close:active {
  background: #3a3a3a;
}

.vn-ios-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

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

.vn-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #712c91, #c04b9b);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.vn-step-text {
  color: #aaaaaa;
  font-size: 15px;
  line-height: 1.5;
  padding-top: 4px;
}

.vn-step-text strong {
  color: #ffffff;
}

.vn-share-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #1c6ef3;
  color: #ffffff;
  padding: 3px 10px 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
  margin: 0 2px;
}

.vn-share-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
