/**
 * Floating Pedal CTA Styles
 * Global component that appears on all pages
 */

/* Floating pedal CTA button */
.floating-pedal-cta {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #7d11ff 0%, #5a0fb8 100%);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(125, 17, 255, 0.3);
  cursor: pointer;
  z-index: 999;
  transition: all 0.3s ease;
  animation: float-gentle 3s ease-in-out infinite, pulse-ring 2s ease-out infinite;
}

@media (max-width: 768px) {
  .floating-pedal-cta {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }
}

.floating-pedal-cta:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 30px rgba(125, 17, 255, 0.4);
}

.floating-pedal-cta:hover .pedal-tooltip {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

/* Pedal icon */
.floating-pedal-cta .pedal-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.floating-pedal-cta .pedal-icon img {
  width: 50%;
  height: 50%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Tooltip */
.floating-pedal-cta .pedal-tooltip {
  position: absolute;
  top: 50%;
  right: 100%;
  transform: translateY(-50%) scale(0.95);
  background: white;
  color: #333;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 280px;
  margin-right: 15px;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Hide tooltip on mobile */
@media (max-width: 768px) {
  .floating-pedal-cta .pedal-tooltip {
    display: none;
  }
}

/* Tooltip arrow */
.floating-pedal-cta .pedal-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 8px;
  border-color: transparent transparent transparent white;
}

/* Tooltip content */
.floating-pedal-cta .tooltip-header {
  font-size: 18px;
  font-weight: 700;
  color: #7d11ff;
  margin-bottom: 8px;
}

.floating-pedal-cta .tooltip-subtitle {
  font-size: 14px;
  line-height: 1.4;
  color: #666;
  margin-bottom: 12px;
}

.floating-pedal-cta .tooltip-cta {
  font-size: 14px;
  font-weight: 600;
  color: #7d11ff;
}

/* Animations */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 4px 20px rgba(125, 17, 255, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(125, 17, 255, 0.3), 0 0 0 15px rgba(125, 17, 255, 0.1);
  }
  100% {
    box-shadow: 0 4px 20px rgba(125, 17, 255, 0.3), 0 0 0 30px rgba(125, 17, 255, 0);
  }
}