/* Add this to your input-fields.css file or create a new cursor.css file */

/* Hide default cursor when using custom cursor */
.ihub-cursor-hidden * {
  cursor: none !important;
}

/* Cursor pointer styles */
.ihub-cursor-pointer,
.ihub-cursor-pointer-transparent {
  cursor: pointer;
}
.ihub-cursor-pointer-transparent {
  background-color: transparent !important;
}

/* Cursor click animation */
.ihub-cursor-click {
  animation: ihub-cursor-pulse 0.5s cubic-bezier(0, 0, 0.2, 1);
}

@keyframes ihub-cursor-pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Cursor interaction styles for different elements */
.ihub-cursor-text-hover {
  mix-blend-mode: difference;
  background-color: var(--White) !important;
}

.ihub-cursor-link-hover {
  width: 20px !important;
  height: 20px !important;
  background-color: rgba(0, 131, 143, 0.2) !important;
  border: 1px solid var(--DarkCyan) !important;
}

/* Cursor loading animation */
.ihub-cursor-loading {
  border: 2px solid rgba(0, 131, 143, 0.3) !important;
  border-top: 2px solid var(--DarkCyan) !important;
  animation: ihub-cursor-rotate 1s linear infinite;
}

@keyframes ihub-cursor-rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Cursor highlight for draggable elements */
.ihub-cursor-draggable {
  background-color: transparent !important;
  border: 2px dashed var(--DarkCyan) !important;
}

/* Cursor for prohibited actions */
.ihub-cursor-not-allowed {
  background-color: var(--Danger) !important;
}

/* Cursor with magnetic effect for buttons */
.ihub-magnetic-cursor {
  transition: transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Cursor highlight effect */
.ihub-cursor-highlight {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ihub-cursor-highlight:hover {
  background-color: var(--DarkCyan);
  color: var(--White);
}

/* Cursor glow effect */
.ihub-cursor-glow {
  transition: box-shadow 0.3s ease;
}

.ihub-cursor-glow:hover {
  box-shadow: 0 0 15px rgba(0, 131, 143, 0.5);
}

/* Ripple effect */
.ihub-ripple-effect {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  width: 100px;
  height: 100px;
  transform: translate(-50%, -50%) scale(0);
  animation: ihub-ripple 0.6s linear;
}

@keyframes ihub-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Specific cursor interactions for different elements */
[data-cursor-type="default"] {
  cursor: none;
}

[data-cursor-type="pointer"] {
  cursor: pointer;
}

[data-cursor-type="text"] {
  cursor: text;
}

[data-cursor-type="loading"] {
  cursor: none;
}

[data-cursor-type="draggable"] {
  cursor: pointer;
}

[data-cursor-type="not-allowed"] {
  cursor: none;
}

/* Demo component styles */
.ihub-cursor-controls,
.ihub-cursor-interaction-area {
  background-color: var(--Magnolia);
  border-radius: 10px;
  box-shadow: var(--lightShadow);
}

.ihub-cursor-controls h2,
.ihub-cursor-interaction-area h2 {
  font-family: var(--Montserat);
  font-weight: 600;
  color: var(--DarkCyan);
  border-bottom: var(--borderDefault);
  padding-bottom: 10px;
}

.ihub-cursor-controls h3,
.ihub-cursor-interaction-area h3 {
  font-family: var(--Nunito);
  font-weight: 600;
  font-size: 1rem;
  color: var(--Gunmetal);
}

/* Media queries for responsive layout */
@media (max-width: 768px) {
  .ihub-cursor-controls,
  .ihub-cursor-interaction-area {
    margin-bottom: 20px;
  }
}

/* Magnetic button styling */
.ihub-magnetic-button {
  position: relative;
  overflow: hidden;
}

.ihub-magnetic-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.ihub-magnetic-button:hover::after {
  opacity: 1;
  transform: scale(1);
}

/* Custom animations for cursor interaction */
.ihub-cursor-blink {
  animation: ihub-blink 1s infinite;
}

@keyframes ihub-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.ihub-cursor-spin {
  animation: ihub-spin 2s linear infinite;
}

@keyframes ihub-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Additional hover effects for elements */
.ihub-hover-float {
  transition: transform 0.3s ease;
}

.ihub-hover-float:hover {
  transform: translateY(-5px);
}

.ihub-hover-scale {
  transition: transform 0.3s ease;
}

.ihub-hover-scale:hover {
  transform: scale(1.05);
}

/* Custom styles for cursor types */
.ihub-cursor-custom-1 {
  mix-blend-mode: difference;
  background-color: white !important;
}

.ihub-cursor-custom-2 {
  backdrop-filter: invert(1);
  background-color: transparent !important;
  border: none !important;
}

.ihub-cursor-custom-3 {
  background: linear-gradient(
    to right,
    var(--DarkCyan),
    var(--TurkishRose)
  ) !important;
  border: none !important;
}
