/* ===================================================================
   App Promo Banner — mobile floating card
   Dark theme, --next-* tokens, slide-up animation.
   =================================================================== */

.next-app-promo {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 44%),
    var(--next-surface-strong);
  border-top: 1px solid var(--next-border);
  border-radius: var(--next-radius-md) var(--next-radius-md) 0 0;
  box-shadow: var(--next-shadow-md);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: nextAppPromoSlideUp 300ms ease;
}

.next-app-promo[hidden] {
  display: none;
}

.next-app-promo__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.next-app-promo__logo {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.next-app-promo__text {
  font-size: var(--next-font-sm);
  font-weight: 500;
  color: var(--next-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-app-promo__close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--next-surface-soft);
  color: var(--next-text-muted);
  cursor: pointer;
  transition:
    background var(--next-transition-fast),
    color var(--next-transition-fast);
}

.next-app-promo__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--next-text-primary);
}

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

@media (prefers-reduced-motion: reduce) {
  .next-app-promo {
    animation: none;
  }
}
