/* contact.css — copy-to-clipboard button on the Email row.
 * Kept in its own file (loaded last) so a future Claude-design update
 * can't wipe it.
 */

.contact-info-value {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-copy-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out), background var(--dur-mid) var(--ease-out);
}
.contact-copy-btn svg { width: 13px; height: 13px; }
.contact-copy-btn:hover { color: var(--color-accent); border-color: var(--color-accent); }
.contact-copy-btn.is-copied { color: var(--color-accent); border-color: var(--color-accent); background: rgba(143, 218, 250, .12); }

/* Small "Copy" / "Copied!" tooltip above the button. Shown on hover, and
   forced visible for a beat right after a successful copy so the click
   itself has feedback (not just a hover-only hint). */
.contact-copy-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--color-gray-100, #26272D);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-mid) var(--ease-out), transform var(--dur-mid) var(--ease-out);
}
.contact-copy-btn:hover .contact-copy-tip,
.contact-copy-btn.is-copied .contact-copy-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (hover: none) {
  /* No hover on touch — only show the tip as post-tap confirmation. */
  .contact-copy-btn:hover .contact-copy-tip { opacity: 0; transform: translateX(-50%) translateY(4px); }
  .contact-copy-btn.is-copied .contact-copy-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-copy-btn, .contact-copy-tip { transition: none; }
}
