/* === CURSOR SPOTLIGHT (inspired by ikonmovie.pl) ===
   Shared styl dla wszystkich stron — include via <link>
   + dodaj <div class="cursor-spotlight" id="cursor-spotlight"></div> na stronie
   + załaduj cursor-spotlight.js (init + event handlers).
*/
.cursor-spotlight {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(232, 53, 109, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 30%,
    transparent 65%
  );
  mix-blend-mode: screen;
  transition: opacity 0.3s;
  opacity: 0;
}
.cursor-spotlight.active { opacity: 1; }

/* Per-card spotlight — radial glow that follows cursor inside card.
   Dodaj klasę .spot-card na kartach żeby aktywować. */
.spot-card { position: relative; overflow: hidden; isolation: isolate; }
.spot-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(232, 53, 109, 0.12),
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
.spot-card:hover::before { opacity: 1; }
.spot-card > * { position: relative; z-index: 2; }

/* Touch devices — nie pokazuj poświaty (trigger tylko przez mysz) */
@media (hover: none) {
  .cursor-spotlight { display: none; }
  .spot-card::before { display: none; }
}

/* === ACCESSIBILITY: Global focus-visible ===
   Dla użytkowników klawiaturowych (Tab navigation) — wyraźny outline
   różowy (brand color), wspólny dla wszystkich linków, buttonów, inputów,
   summary, [tabindex] i [role="button"]. Ignorowany przy fokusie z myszy
   (focus-visible vs focus). */
:where(a, button, input, textarea, select, summary, [tabindex]:not([tabindex="-1"]), [role="button"]):focus-visible {
  outline: 2px solid #E8356D;
  outline-offset: 2px;
  border-radius: 4px;
}
:where(a, button, input, textarea, select, summary, [tabindex]:not([tabindex="-1"]), [role="button"]):focus:not(:focus-visible) {
  outline: none;
}
