/* ──────────────────────────────────────────────────────────────────────
   Hermes — Proactive Update Notification Styles
   Toast notification + proactive message bubbles inside agent chat.
   ────────────────────────────────────────────────────────────────────── */

/* ── Toast ─────────────────────────────────────────────────────────── */
.hermes-proactive-toast {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 100001;
  display: flex;
  align-items: center;
  gap: 12px;
  background: color-mix(in srgb, var(--info-color) 7%, var(--card));
  color: var(--foreground);
  border: 1px solid color-mix(in srgb, var(--info-color) 32%, var(--border));
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow-xl);
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hermes-proactive-toast.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.hermes-proactive-toast.dismissing {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
}

.hermes-proactive-toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hermes-pulse 2s ease-in-out infinite;
}

.hermes-proactive-toast-icon svg {
  width: 18px;
  height: 18px;
  color: var(--background);
}

.hermes-proactive-toast-body {
  flex: 1;
  min-width: 0;
}

.hermes-proactive-toast-body strong {
  display: block;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.hermes-proactive-toast-body span {
  color: var(--muted-foreground);
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hermes-proactive-toast-action {
  flex-shrink: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.hermes-proactive-toast-action:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.hermes-proactive-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted-foreground);
  font-size: 18px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
  transition: color 0.15s;
}

.hermes-proactive-toast-close:hover {
  color: var(--foreground);
}

/* ── Pulse animation for toast icon ─────────────────────────────── */
@keyframes hermes-pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--info-color) 38%, transparent); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

/* ── Proactive message content inside agent chat bubble ────────── */
.hermes-proactive-msg p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--foreground);
}

.hermes-proactive-msg p:last-child {
  margin-bottom: 0;
}

.hermes-proactive-msg strong {
  color: var(--foreground);
}

.hermes-proactive-msg ul {
  margin: 6px 0;
  padding-left: 18px;
  list-style: disc;
}

.hermes-proactive-msg li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--foreground);
  margin-bottom: 2px;
}

.hermes-proactive-msg .hermes-proactive-movs {
  list-style: none;
  padding-left: 0;
}

.hermes-proactive-msg .hermes-proactive-movs li {
  padding: 4px 8px;
  background: var(--accent);
  border-left: 2px solid #2563eb;
  border-radius: 0 6px 6px 0;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--foreground);
}

.hermes-proactive-msg .hermes-proactive-list li {
  margin-bottom: 4px;
}

.hermes-proactive-msg .hermes-proactive-list li strong {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 11px;
}

/* ── Responsive: stack toast vertically on small screens ────────── */
@media (max-width: 480px) {
  .hermes-proactive-toast {
    right: 12px;
    left: 12px;
    bottom: 80px;
    max-width: none;
  }
}
