/* Cursor Personalitzat Premium per a Oria Records */

/* Ocultar el cursor per defecte si el JS s'està executant correctament */
.custom-cursor-active,
.custom-cursor-active * {
  cursor: none !important;
}

/* Base per als elements del cursor */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* El punt central: instantani, blanc */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

/* L'anell exterior: amb lerp, suau, taronja/blanc */
.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
  /* Utilitzem la variable --ease que ja té la web */
}

/* HOVER: Quan estem sobre un element interactiu */
.cursor-active .cursor-dot {
  width: 0;
  height: 0;
}

.cursor-active .cursor-ring {
  width: 64px;
  height: 64px;
  border-color: var(--accent, #ff3c00);
  background: rgba(255, 60, 0, 0.05); /* Un lleuger toc de color a l'interior */
  border-width: 1.5px;
}

/* CLICK: feedback visual al fer clic */
.cursor-clicking .cursor-ring {
  width: 24px;
  height: 24px;
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  transition: width 0.1s ease, height 0.1s ease;
}

/* DESACTIVACIÓ EN MÒBIL */
@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
  .custom-cursor-active,
  .custom-cursor-active * {
    cursor: auto !important;
  }
}
