/* Floating Contact Icons */
.molecule-floating-contact {
  position: fixed;
  right: var(--spacing-6);
  bottom: var(--spacing-6);
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.molecule-floating-contact__item {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 20px rgba(236, 72, 153, 0.4),
    0 0 0 0 rgba(236, 72, 153, 0.7);
  cursor: pointer;
  pointer-events: all;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: floatingPulse 2s ease-in-out infinite;
  text-decoration: none;
  color: var(--color-text-white);
  will-change: transform, box-shadow;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.molecule-floating-contact__item:hover {
  transform: translateY(-5px) scale(1.1) translateZ(0);
  -webkit-transform: translateY(-5px) scale(1.1) translateZ(0);
  box-shadow: 
    0 8px 30px rgba(236, 72, 153, 0.6),
    0 0 0 8px rgba(236, 72, 153, 0.1);
}

.molecule-floating-contact__item:active {
  transform: translateY(-3px) scale(1.05) translateZ(0);
  -webkit-transform: translateY(-3px) scale(1.05) translateZ(0);
}

.molecule-floating-contact__item--phone {
  animation-delay: 0s;
}

.molecule-floating-contact__item--email {
  animation-delay: 0.3s;
}

.molecule-floating-contact__icon {
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.molecule-floating-contact__tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: var(--color-text-white);
  padding: var(--spacing-3) var(--spacing-4);
  border-radius: 8px;
  font-size: var(--font-size-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(-50%) translateX(-10px);
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.molecule-floating-contact__tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid rgba(0, 0, 0, 0.9);
}

.molecule-floating-contact__item:hover .molecule-floating-contact__tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@keyframes floatingPulse {
  0%, 100% {
    box-shadow: 
      0 4px 20px rgba(236, 72, 153, 0.4),
      0 0 0 0 rgba(236, 72, 153, 0.7);
  }
  50% {
    box-shadow: 
      0 4px 20px rgba(236, 72, 153, 0.4),
      0 0 0 10px rgba(236, 72, 153, 0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .molecule-floating-contact {
    right: var(--spacing-4);
    bottom: var(--spacing-4);
    gap: var(--spacing-3);
  }
  
  .molecule-floating-contact__item {
    width: 52px;
    height: 52px;
    animation: floatingPulseMobile 2s ease-in-out infinite;
  }
  
  .molecule-floating-contact__icon {
    font-size: 22px;
  }
  
  .molecule-floating-contact__tooltip {
    display: none;
  }
  
  .molecule-floating-contact__item:hover {
    transform: translateY(-3px) scale(1.05) translateZ(0);
    -webkit-transform: translateY(-3px) scale(1.05) translateZ(0);
  }
}

@keyframes floatingPulseMobile {
  0%, 100% {
    box-shadow: 
      0 4px 15px rgba(236, 72, 153, 0.3),
      0 0 0 0 rgba(236, 72, 153, 0.5);
  }
  50% {
    box-shadow: 
      0 4px 15px rgba(236, 72, 153, 0.3),
      0 0 0 8px rgba(236, 72, 153, 0);
  }
}

/* Hide on very small screens if needed */
@media (max-width: 480px) {
  .molecule-floating-contact {
    right: var(--spacing-3);
    bottom: var(--spacing-3);
  }
  
  .molecule-floating-contact__item {
    width: 48px;
    height: 48px;
  }
  
  .molecule-floating-contact__icon {
    font-size: 20px;
  }
}
