/**
 * Precision Dot & Morphing Comet Trail Cursor
 * Theme: Pengadilan Negeri Red (PN-RED Suite)
 * Author: Catur Adi Sukrisno
 * Subpackage: C-Widget c-Cursor
 */

.cr-mouse-trail-dot {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 9999999 !important;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
  opacity: 0;
  will-change: transform, opacity, width, height, border-radius;
  transition: opacity 0.3s ease;
}

/* Titik Utama (10px Normal) */
.cr-mouse-trail-dot.is-head {
  width: 10px;
  height: 10px;
  background: var(--c-cursor-color, #9a2109);
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(154, 33, 9, 0.6), 0 0 12px rgba(154, 33, 9, 0.3);
  transition: opacity 0.3s ease,
              width 0.28s cubic-bezier(0.25, 1, 0.5, 1),
              height 0.28s cubic-bezier(0.25, 1, 0.5, 1),
              border-radius 0.28s cubic-bezier(0.25, 1, 0.5, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

/* State Morphing: Membingkai Tombol/Link secara Lembut, Rapi & Jernih (Tanpa Blur) */
.cr-mouse-trail-dot.is-head.is-morphed {
  background: rgba(154, 33, 9, 0.06) !important;
  border: 1px solid rgba(154, 33, 9, 0.45) !important;
  box-shadow: 0 2px 10px rgba(154, 33, 9, 0.10) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mix-blend-mode: normal !important;
}

/* Titik-Titik Jejak Ekor (Trail) */
.cr-mouse-trail-dot.is-trail {
  background: rgba(154, 33, 9, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: opacity 0.3s ease;
}

/* Mute ekor saat kursor membesar memeluk tombol */
.cr-mouse-trail-dot.is-trail.is-muted {
  opacity: 0.12 !important;
}

/* Muncul saat kursor di dalam layar */
.cr-mouse-trail-dot.is-active {
  opacity: 1;
}

/* Matikan otomatis di layar sentuh HP / mobile & pengguna reduce-motion */
@media (hover: none) and (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cr-mouse-trail-dot {
    display: none !important;
  }
}
