/* ═══════════════════════════════════════════════════════════════════════════
   ALIMAJ THEME — Cursor
   Always-visible crosshair on any background surface
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CROSSHAIR ── */
#alimaj-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-cursor);
  pointer-events: none;
  will-change: transform;
}

#alimaj-cursor::before,
#alimaj-cursor::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  /* Drop shadow makes it visible on any background */
  filter:
    drop-shadow(0  0 1px rgba(0, 0, 0, 0.85))
    drop-shadow(0  0 3px rgba(0, 0, 0, 0.55));
}

/* Vertical bar */
#alimaj-cursor::before {
  width: 1px;
  height: 22px;
  transform: translate(-50%, -50%);
}

/* Horizontal bar */
#alimaj-cursor::after {
  width: 22px;
  height: 1px;
  transform: translate(-50%, -50%);
}

/* ── GOLD DOT (lags slightly behind) ── */
#alimaj-cursor-dot {
  position: fixed;
  z-index: calc(var(--z-cursor) - 1);
  pointer-events: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(212, 168, 50, 0.95);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.65));
  transition: background 0.3s, transform 0.3s;
  will-change: transform;
}

/* ── RING (lags behind cursor) ── */
#alimaj-cursor-ring {
  position: fixed;
  z-index: calc(var(--z-cursor) - 2);
  pointer-events: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(0, 0, 0, 0.18);
  transform: translate(-50%, -50%);
  transition:
    width  0.5s var(--ease-out),
    height 0.5s var(--ease-out),
    border-color 0.4s,
    background   0.4s;
  will-change: transform;
}

/* ── RING STATE: hovering interactive elements ── */
#alimaj-cursor-ring.is-hovering {
  width: 60px;
  height: 60px;
  border-color: rgba(212, 168, 50, 0.82);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  background: rgba(212, 168, 50, 0.05);
}

/* ── RING STATE: hovering link/blush element ── */
#alimaj-cursor-ring.is-link {
  width: 54px;
  height: 54px;
  border-color: rgba(232, 0, 110, 0.65);
  background: rgba(232, 0, 110, 0.04);
}

/* ── DOT STATE: over interactive ── */
#alimaj-cursor-ring.is-hovering ~ #alimaj-cursor-dot,
body.cursor-hovering #alimaj-cursor-dot {
  background: rgba(232, 0, 110, 0.95);
  transform: translate(-50%, -50%) scale(1.4);
}

/* ── HIDE on touch devices ── */
@media (hover: none) and (pointer: coarse) {
  #alimaj-cursor,
  #alimaj-cursor-dot,
  #alimaj-cursor-ring {
    display: none;
  }
  body {
    cursor: auto;
  }
  a, button, [role="button"] {
    cursor: pointer;
  }
}
