/* ==========================================================================
   toast.css — "Download started" confirmation, bottom-right of the viewport.
   Shown by assets/js/toast.js once a download has been kicked off.
   ========================================================================== */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 340px;
  max-width: calc(100vw - 48px);
  padding: 20px;
  background: var(--surface2);
  border: 1px solid var(--border2);

  /* Hidden by default: kept in the layout so the transition has something to
     animate, but pushed out of reach of the pointer and screen readers. */
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.toast.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toast-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}
.toast-title::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

.toast-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.toast-file {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  word-break: break-all;
}

.toast-text a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border2);
  transition: border-color 0.2s;
}
.toast-text a:hover { border-color: #fff; }

.toast-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s;
}
.toast-close:hover { color: #fff; }

@media (max-width: 768px) {
  .toast {
    right: 16px;
    left: 16px;
    bottom: 16px;
    width: auto;
    max-width: none;
  }
}
