/* ================================================================
   ARUNE INTERIORS — MAGIC CURSOR
   Gold luxury cursor with sparkle trail effect
================================================================ */

/* Hide default cursor site-wide */
*, *::before, *::after {
  cursor: none !important;
}

/* ── Inner cursor dot ─────────────────────────────────────────── */
#magic-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px;
  height: 10px;
  background: #C9A84C;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 8px #C9A84C, 0 0 16px rgba(201,168,76,0.5);
  will-change: transform;
}

/* ── Outer ring ───────────────────────────────────────────────── */
#magic-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 42px;
  height: 42px;
  border: 2px solid rgba(201, 168, 76, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  transform: translate(-50%, -50%);
  transition: 
    width 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    height 0.35s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.3s ease,
    background 0.3s ease;
  will-change: transform;
  box-shadow: 0 0 12px rgba(201,168,76,0.2);
}

/* ── Hover state: over links / buttons ───────────────────────── */
body.cursor-hover #magic-cursor-dot {
  width: 16px;
  height: 16px;
  background: #E8C97A;
  box-shadow: 0 0 15px #C9A84C, 0 0 30px rgba(201,168,76,0.6);
}

body.cursor-hover #magic-cursor-ring {
  width: 64px;
  height: 64px;
  border-color: rgba(201, 168, 76, 0.9);
  background: rgba(201, 168, 76, 0.06);
}

/* ── Click state: burst ──────────────────────────────────────── */
body.cursor-click #magic-cursor-dot {
  width: 22px;
  height: 22px;
  background: #F0D98C;
  box-shadow: 0 0 25px #C9A84C, 0 0 50px rgba(201,168,76,0.8);
}

body.cursor-click #magic-cursor-ring {
  width: 80px;
  height: 80px;
  border-color: rgba(201, 168, 76, 0.5);
  background: rgba(201, 168, 76, 0.04);
}

/* ── Sparkle particle ────────────────────────────────────────── */
.cursor-sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 999997;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: sparkleLife 0.8s ease-out forwards;
  will-change: transform, opacity;
}

@keyframes sparkleLife {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0);
  }
}

/* ── Trail dot ───────────────────────────────────────────────── */
.cursor-trail {
  position: fixed;
  width: 5px;
  height: 5px;
  background: rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999996;
  transform: translate(-50%, -50%);
  animation: trailFade 0.5s ease-out forwards;
  will-change: opacity, transform;
}

@keyframes trailFade {
  0% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
}

/* ── Star sparkle shape ─────────────────────────────────────── */
.cursor-star {
  position: fixed;
  pointer-events: none;
  z-index: 999997;
  font-size: 12px;
  color: #C9A84C;
  transform: translate(-50%, -50%);
  animation: starLife 1s ease-out forwards;
  will-change: transform, opacity;
  text-shadow: 0 0 6px rgba(201,168,76,0.8);
  line-height: 1;
}

@keyframes starLife {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: translate(var(--sx), var(--sy)) scale(0.2) rotate(var(--sr));
  }
}

/* ── Text Selection Hover State ──────────────────────────────── */
body.cursor-text #magic-cursor-dot {
  width: 2px;
  height: 24px;
  border-radius: 2px;
  background: #C9A84C;
  box-shadow: 0 0 10px rgba(201,168,76,0.8);
}

body.cursor-text #magic-cursor-ring {
  width: 32px;
  height: 32px;
  border-color: transparent;
  background: rgba(201, 168, 76, 0.15);
}
