/* Airplane Animation Styles */
.plugin-example-container {
  position: relative;
  width: 100%;
  max-width: 28rem;
}

.airplane-animation-overlay {
  position: absolute;
  top: calc(50% + 30px);
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  pointer-events: all;
}

.airplane-icon-wrapper {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: background 0.3s ease;
}

.airplane-icon {
  overflow: visible;
  color: #000000;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.airplane-path {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: center;
}

/* Speed lines - hidden by default */
.speed-line {
  opacity: 0;
  stroke-dasharray: 6;
  stroke-dashoffset: 0;
  transform: translate(-3px, 3px);
  transition: all 0.3s ease;
}

/* Animated state */
.airplane-icon-wrapper.animating .airplane-path {
  transform: translate(3px, -3px) scale(0.8);
}

.airplane-icon-wrapper.animating .speed-line {
  opacity: 1;
  transform: translate(0, 0);
}

.airplane-icon-wrapper.animating .speed-line-1 {
  animation: speedLine 0.5s ease-out infinite;
  animation-delay: 0.1s;
}

.airplane-icon-wrapper.animating .speed-line-2 {
  animation: speedLine 0.5s ease-out infinite;
  animation-delay: 0.2s;
}

.airplane-icon-wrapper.animating .speed-line-3 {
  animation: speedLine 0.5s ease-out infinite;
  animation-delay: 0.3s;
}

@keyframes speedLine {
  0% {
    stroke-dashoffset: -6;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -12;
    opacity: 0;
  }
}

/* Remove animation when not hovering */
.airplane-icon-wrapper:not(.animating) .airplane-path {
  transform: translate(0, 0) scale(1);
}

.airplane-icon-wrapper:not(.animating) .speed-line {
  opacity: 0;
  transform: translate(-3px, 3px);
}
