/* components/anon-signup-nudge/anon-signup-nudge.css
 *
 * Slide-up nudge shown to anonymous voters after a successful payment.
 * Encourages them to create a free account to follow the photo's progress
 * and get notified if it wins.
 *
 * Slides up from the bottom, sits above the gallery, dismisses with ×.
 */

.anon-signup-nudge {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9500;
  /* Translate fully off-screen when hidden; JS adds --visible to slide in */
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  /* Safe-area padding so the nudge clears the iOS home bar */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.anon-signup-nudge--visible {
  transform: translateY(0);
}

.anon-signup-nudge__inner {
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.13);
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.anon-signup-nudge__handle {
  width: 40px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}

.anon-signup-nudge__emoji {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.anon-signup-nudge__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}

.anon-signup-nudge__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  text-align: left;
  display: inline-block;
}

.anon-signup-nudge__perks li {
  font-size: 0.9rem;
  color: #444;
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.anon-signup-nudge__perks li::before {
  content: "✓";
  color: #27ae60;
  font-weight: 700;
  flex-shrink: 0;
}

.anon-signup-nudge__cta {
  display: block;
  width: 100%;
  padding: 0.85rem;
  background: var(--color-accent, #27ae60);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg, 8px);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-bottom: 0.65rem;
  transition: opacity 0.15s;
}

.anon-signup-nudge__cta:active {
  opacity: 0.85;
}

.anon-signup-nudge__dismiss {
  background: none;
  border: none;
  color: #888;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* Dark mode */
html.np-dark-mode .anon-signup-nudge__inner {
  background: #1e1e2e;
}

html.np-dark-mode .anon-signup-nudge__title {
  color: #f0f0f0;
}

html.np-dark-mode .anon-signup-nudge__perks li {
  color: #ccc;
}

/* ── Vote-confirmed toast ─────────────────────────────────────────────────
 * Top-anchored, separate from the bottom slide-up nudge above. Deliberately
 * a different message at a different time: this confirms the transaction
 * ("your votes landed"), the nudge below asks for signup. Splitting them
 * means the thank-you never reads as a lead-in to a sales pitch.
 */
.anon-vote-confirmed-toast {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9600;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-top, 0px));
  padding-top: calc(1rem + env(safe-area-inset-top, 0px));
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.anon-vote-confirmed-toast--visible {
  transform: translateY(0);
}

.anon-vote-confirmed-toast__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  color: var(--color-accent, #2ecc71);
}

.anon-vote-confirmed-toast__icon svg {
  width: 100%;
  height: 100%;
}

.anon-vote-confirmed-toast__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.anon-vote-confirmed-toast__msg {
  font-size: 0.85rem;
  color: #555;
  margin: 0.15rem 0 0;
}

html.np-dark-mode .anon-vote-confirmed-toast {
  background: #1e1e2e;
}

html.np-dark-mode .anon-vote-confirmed-toast__title {
  color: #f0f0f0;
}

html.np-dark-mode .anon-vote-confirmed-toast__msg {
  color: #ccc;
}
