/* ================= Wikimind — Popup lien externe ================= */

#wm-link-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#wm-link-overlay.active {
  opacity: 1;
  pointer-events: all;
}

#wm-link-popup {
  width: 380px;
  max-width: calc(100vw - 32px);
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 20px 20px 16px;
  color: #ffffff;
  font-family: 'Geist', sans-serif;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
#wm-link-overlay.active #wm-link-popup {
  transform: translateY(0) scale(1);
}

#wm-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #a0a0a0;
}
#wm-link-icon svg { width: 20px; height: 20px; }

#wm-link-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

#wm-link-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #a0a0a0;
  margin-bottom: 4px;
}

#wm-link-url {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  color: #e0e0e0;
  font-family: 'Geist Mono', monospace;
  word-break: break-all;
}

#wm-link-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

#wm-link-actions button {
  flex: 1;
  height: 38px;
  border-radius: 9px;
  border: none;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Geist', sans-serif;
  transition: all 0.12s;
}

#wm-link-cancel {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}
#wm-link-cancel:hover { background: rgba(255, 255, 255, 0.12); }

#wm-link-continue {
  background: #ffffff;
  color: #000000;
}
#wm-link-continue:hover { background: #d8d8d8; }
