/* ==========================================================================
   components.css
   Small component-level styles that are easier to express as plain CSS
   than as Tailwind utility strings (custom cursor, network visualization
   wiring, marquee track). Kept intentionally minimal since almost every
   visual detail is already carried by the Tailwind utility classes in
   style.css, transcribed directly from the original JSX.
   ========================================================================== */

/* Restored dark "inner page" theme wrapper — see the navy/blue design
   tokens reinstated in index.css. These pages (About, Campaigns, Contact,
   Publishers, PartnerWithUs) were authored against a dark page background;
   applying it here restores the page to its designed appearance. */
body.theme-navy {
  background-color: var(--background);
  color: var(--text-primary);
}
#custom-cursor {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
#custom-cursor.is-visible {
  opacity: 1;
}
#cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  background: var(--aff-orange);
  transform: translate(-50%, -50%);
  will-change: transform;
}
#cursor-ring {
  position: fixed;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 90, 31, 0.7);
  background: rgba(255, 90, 31, 0);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 0.25s ease-out, background-color 0.25s ease-out;
  will-change: transform;
}
#cursor-ring[data-variant="button"] {
  transform: translate(-50%, -50%) scale(1.4);
  background: rgba(255, 90, 31, 0.12);
}
#cursor-ring[data-variant="card"],
#cursor-ring[data-variant="view"],
#cursor-ring[data-variant="explore"] {
  transform: translate(-50%, -50%) scale(2.2);
  background: rgba(255, 90, 31, 0.12);
}
#cursor-ring .cursor-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--aff-orange);
  display: none;
  white-space: nowrap;
}
#cursor-ring[data-variant="view"] .cursor-label,
#cursor-ring[data-variant="explore"] .cursor-label {
  display: block;
}

/* Network visualization canvas/svg host */
.network-viz {
  position: relative;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
}

/* Form field invalid state — used instead of swapping border-color
   utility classes so specificity/ordering can't cause flicker. */
.is-invalid {
  border-color: #ef4444 !important;
}
