/* components/pwa-nudge/pwa-nudge.css
 *
 * PWA install nudge — a prominent card above the gallery grid.
 * Shown to users who haven't installed the app yet.
 * More prominent than the push nudge: icon, headline, description, CTA button.
 * Mobile-first.
 */

.pwa-nudge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  color: #fff;
  border-radius: var(--radius-xl, 14px);
  padding: 1.1rem 1rem 1.1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.28);
  position: relative;
  /* animate in */
  animation: pwa-nudge-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pwa-nudge-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* iOS variant: slightly warmer blue since it's instructional rather than action-driven */
.pwa-nudge--ios {
  background: linear-gradient(135deg, #0a6cc7 0%, #3178da 100%);
}

/* Icon area */
.pwa-nudge__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md, 10px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-nudge__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Text block */
.pwa-nudge__body {
  flex: 1;
  min-width: 0;
}

.pwa-nudge__title {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.pwa-nudge__desc {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* iOS step list */
.pwa-nudge__steps {
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.pwa-nudge__steps li::before {
  content: attr(data-step) ". ";
  font-weight: 700;
}

/* Action row */
.pwa-nudge__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Add extra space above actions row when checkbox is inline */
.pwa-nudge__actions--with-checkbox {
  margin-top: 20px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
}

/* "Maybe later" dismiss button */
.pwa-nudge__dismiss {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  border-radius: var(--radius-full, 9999px);
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  margin-left: 20px;
}

.pwa-nudge__dismiss:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* CTA install button */
.pwa-nudge__btn {
  background: #fff;
  color: #1a73e8;
  border: none;
  border-radius: var(--radius-full, 9999px);
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.pwa-nudge__btn:active {
  opacity: 0.82;
}

/* Close × button top-right */
.pwa-nudge__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  padding: 0;
  transition: background 0.15s;
  z-index: 10;
}

.pwa-nudge__close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* "Don't show again" checkbox row */
.pwa-nudge__no-repeat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* Inline variant for iOS: sits inside the actions row instead of below it */
.pwa-nudge__no-repeat--inline {
  margin-top: 0;
}

.pwa-nudge__no-repeat input[type="checkbox"] {
  accent-color: #fff;
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}

.pwa-nudge__no-repeat label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  user-select: none;
  align-self: center;
}
