/* ext-links.css — External link guard
   Replaces clickable external links with copy-to-clipboard URLs.
   Legal compliance: no direct redirection to third-party sites. */

/* Neutralize link appearance */
a.ext-guarded {
  cursor: default;
  text-decoration: none;
}

/* URL bar (appended to card-style links) */
.ext-url-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.03);
  border-radius: 5px;
  border: 1px solid var(--border, rgba(255,255,255,0.08));
}

.ext-url-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted, #888);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  user-select: all;
  letter-spacing: 0.02em;
}

.ext-copy-btn {
  background: none;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  color: var(--muted, #888);
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.03em;
  transition: all 0.2s;
  white-space: nowrap;
}

.ext-copy-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--al, #818cf8);
  border-color: var(--al, #818cf8);
}

.ext-copy-btn.copied {
  color: #22c55e;
  border-color: rgba(34,197,94,0.3);
}

/* Inline link replacement (e.g. agenda "Voir ↗") */
a.ext-guarded.ext-inline {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}

a.ext-guarded.ext-inline .ext-url-bar {
  margin-top: 0;
  padding: 4px 8px;
  border: none;
  background: none;
  gap: 6px;
}

a.ext-guarded.ext-inline .ext-url-text {
  max-width: 180px;
  font-size: 0.55rem;
}

a.ext-guarded.ext-inline .ext-copy-btn {
  font-size: 0.55rem;
  padding: 1px 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .ext-url-text { font-size: 0.55rem; }
  .ext-copy-btn { font-size: 0.55rem; padding: 2px 6px; }
  a.ext-guarded.ext-inline .ext-url-text { max-width: 120px; }
}
