/* ============================================================
   06 · COMPONENTS · Toast
   Social-proof activity notification appearing periodically.
   ============================================================ */

.c-toast {
  position: fixed;
  left: 16px;
  bottom: 88px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--border-strong);
  background: color-mix(in oklab, var(--bg-2) 95%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  max-width: 320px;
  font-size: 13px;
  box-shadow: var(--shadow-pop);
  pointer-events: none;
  transition:
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 300ms;
}

/* Without JS (builder), keep the toast visible for editing. */
body.bricks-is-frontend .c-toast {
  transform: translateY(20px) scale(0.96);
  opacity: 0;
}

.c-toast.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.c-toast__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--glow);
  flex-shrink: 0;
}

.c-toast__title {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.c-toast__meta {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  font-family: var(--font-mono);
}

@media (max-width: 560px) {
  .c-toast {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 84px;
  }
}
