/* Custom Cursor Component - Lucide Icon Mode
-------------------------------------------------- */

/* Default glassmorphic autofocus lens */
#simple-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 2147483647;
  transform: translate(-50%, -50%);
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease,
    visibility 0.2s ease;
  opacity: 1;
  visibility: visible;
  margin: 0;
  padding: 0;
  outline: none;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Moving state - blurred like unfocused lens */
#simple-cursor.is-moving {
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%) scale(1.1);
}

/* Icon container for Lucide icons */
#simple-cursor .cursor-icon {
  width: 16px;
  height: 16px;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none !important;
}

/* Show icon when in interactive states */
#simple-cursor.is-internal-link .cursor-icon,
#simple-cursor.is-external-link .cursor-icon,
#simple-cursor.is-lightbox .cursor-icon,
#simple-cursor.is-lightbox-open .cursor-icon,
#simple-cursor.is-lightbox-close .cursor-icon,
#simple-cursor.is-slideshow-prev .cursor-icon,
#simple-cursor.is-slideshow-next .cursor-icon,
#simple-cursor.is-interactive .cursor-icon {
  opacity: 1;
}
/* Note: pagination-bullet cursor has no icon (opacity: 0 set separately) */

/* Lucide SVG icon styling within cursor */
#simple-cursor .cursor-icon svg {
  width: 11px;
  height: 11px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none !important;
  /* Note: fill, stroke, stroke-width, stroke-linecap, stroke-linejoin are set by JavaScript */
}

/* Internal link hover state */
#simple-cursor.is-internal-link {
  background: var(--color-workhorse-yellow);
  border-color: var(--color-workhorse-yellow);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) scale(1.4);
}

#simple-cursor.is-internal-link .cursor-icon svg {
  color: var(--color-pure-black);
}

/* External link hover state */
#simple-cursor.is-external-link {
  background: var(--color-text-link);
  border-color: var(--color-text-link);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%) scale(1.4);
}

#simple-cursor.is-external-link .cursor-icon svg {
  color: var(--color-pure-black);
}

/* Lightbox/gallery hover state */
#simple-cursor.is-lightbox {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#simple-cursor.is-lightbox .cursor-icon svg {
  color: var(--color-white);
  width: 13px;
  height: 13px;
}

/* Lightbox open state - zoom out cursor */
#simple-cursor.is-lightbox-open {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform: translate(-50%, -50%) scale(1.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#simple-cursor.is-lightbox-open .cursor-icon svg {
  color: var(--color-white);
  width: 12px;
  height: 12px;
}

/* Lightbox close state - clean glass appearance with X icon */
#simple-cursor.is-lightbox-close {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#simple-cursor.is-lightbox-close .cursor-icon svg {
  color: var(--color-white);
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

/* Pagination bullet hover state - simple, no special treatment */
#simple-cursor.is-pagination-bullet {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translate(-50%, -50%) scale(1.0); /* No scaling */
}

/* No icon for pagination bullets */
#simple-cursor.is-pagination-bullet .cursor-icon {
  opacity: 0;
}

/* Slideshow navigation - left */
#simple-cursor.is-slideshow-prev {
  background: var(--color-gray-700);
  border-color: var(--color-gray-500);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%) scale(1.3);
}

#simple-cursor.is-slideshow-prev .cursor-icon svg {
  color: var(--color-white);
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

/* Slideshow navigation - right */
#simple-cursor.is-slideshow-next {
  background: var(--color-gray-700);
  border-color: var(--color-gray-500);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%) scale(1.3);
}

#simple-cursor.is-slideshow-next .cursor-icon svg {
  color: var(--color-white);
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

/* Button/general interactive hover state */
#simple-cursor.is-interactive {
  background: var(--color-gray-800);
  border-color: var(--color-gray-600);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%) scale(1.2);
}

#simple-cursor.is-interactive .cursor-icon svg {
  color: var(--color-gray-400);
  width: 10px;
  height: 10px;
}

/* Hidden state for page transitions */
#simple-cursor.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Alternative cursor styles */
#simple-cursor.style-large {
  width: 32px;
  height: 32px;
}

#simple-cursor.style-large .cursor-icon {
  width: 20px;
  height: 20px;
}

#simple-cursor.style-large .cursor-icon svg {
  width: 15px;
  height: 15px;
}

#simple-cursor.style-small {
  width: 18px;
  height: 18px;
}

#simple-cursor.style-small .cursor-icon {
  width: 12px;
  height: 12px;
}

#simple-cursor.style-small .cursor-icon svg {
  width: 8px;
  height: 8px;
}

#simple-cursor.style-square {
  border-radius: 6px;
}

/* Hide default cursor globally when custom cursor is active */
.custom-cursor-active * {
  cursor: none !important;
}

/* Ensure cursor is hidden on mobile devices */
@media (hover: none), (pointer: coarse) {
  #simple-cursor {
    display: none !important;
  }
  
  .custom-cursor-active * {
    cursor: auto !important;
  }
} 