/* Dark theme + hover-link style (based on the hover-preview component) */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Syne:wght@400;700;800&display=swap');

:root {
  --bg: #0a0a0a !important;
  --surface: #141418 !important;
  --fg: #e5e5e5 !important;
  --muted: #8a8a8f !important;
  --line: #2a2a30 !important;
  --ink: #ffffff !important;
  --tint: #24171a !important;
}
html, body {
  background: #0a0a0a !important;
  color: #a3a3a3 !important;
}
body {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  font-size: 17px;
}
h1, h2, h3, h4 {
  color: #ffffff !important;
  font-family: 'Syne', sans-serif !important;
}
[style*="background:#fff"], [style*="background: #fff"] {
  background: #141418 !important;
}
.cv-host { background: transparent !important; }

/* Text links with gradient underline (from hover-preview component) */
.hover-link {
  color: #ffffff;
  font-weight: 700;
  font-family: 'Syne', sans-serif;
  cursor: pointer;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}
.hover-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-link:hover::after { width: 100%; }

/* Floating preview card */
.preview-card {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
  width: 260px;
}
.preview-card.visible { opacity: 1; transform: translateY(0) scale(1); }
.preview-card-inner {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.1), 0 0 60px rgba(255,107,107,0.1);
  overflow: hidden;
}
.preview-card img { width: 100%; height: auto; border-radius: 10px; display: block; aspect-ratio: 4/3; object-fit: cover; }
.preview-card-title { padding: 12px 8px 4px; font-size: 0.95rem; color: #fff; font-weight: 700; font-family: 'Syne', sans-serif; }
.preview-card-subtitle { padding: 0 8px 8px; font-size: 0.8rem; color: #8a8a8f; }
.preview-card img.hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hover-link::after, .preview-card { transition: none; }
}
