/* Floating Social Media Buttons */
.social-float {
  position: fixed;
  bottom: 120px;
  right: 30px;
  z-index: 999;
  touch-action: none;
  user-select: none;
}

.social-float__toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(145deg, #006838, #4CAF50);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  box-shadow: 0 4px 10px rgba(0, 104, 56, 0.3);
  position: relative;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.social-float__toggle img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.social-float.dragging {
  opacity: 0.8;
}

.social-float__toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 104, 56, 0.4);
}

.social-float__list {
  position: absolute;
  bottom: 60px;
  right: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-float:hover .social-float__list,
.social-float.active .social-float__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.social-float__item {
  width: 160px;
  transform: translateX(110px);
  transition: transform 0.3s ease;
}

.social-float:hover .social-float__item,
.social-float.active .social-float__item {
  transform: translateX(0);
}

.social-float:hover .social-float__item:nth-child(1),
.social-float.active .social-float__item:nth-child(1) {
  transition-delay: 0s;
}

.social-float:hover .social-float__item:nth-child(2),
.social-float.active .social-float__item:nth-child(2) {
  transition-delay: 0.05s;
}

.social-float:hover .social-float__item:nth-child(3),
.social-float.active .social-float__item:nth-child(3) {
  transition-delay: 0.1s;
}

.social-float:hover .social-float__item:nth-child(4),
.social-float.active .social-float__item:nth-child(4) {
  transition-delay: 0.15s;
}

.social-float__link {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 30px;
  color: white;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.social-float__link i,
.social-float__link img {
  margin-right: 8px;
}

.social-float__link span {
  font-weight: 500;
  font-size: 14px;
}

.social-float__link:hover {
  transform: translateX(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.social-float__link--zalo {
  background: linear-gradient(45deg, #0064c2, #0097ff);
}

.social-float__link--facebook {
  background: linear-gradient(45deg, #1551b1, #1877f2);
}

.social-float__link--tiktok {
  background: linear-gradient(45deg, #010101, #323232);
}

.social-float__link--youtube {
  background: linear-gradient(45deg, #cc0000, #ff0000);
}

.social-float.active .social-float__toggle {
  transform: rotate(45deg) scale(1.1);
  background: linear-gradient(145deg, #d82c2c, #ef4444);
  box-shadow: 0 6px 15px rgba(239, 68, 68, 0.4);
}

.social-float__toggle .ripple {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 1.5s ease-out infinite;
}

@keyframes ripple {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .social-float {
    bottom: 85px;
    right: 20px;
  }

  .social-float__item {
    width: 140px;
    transform: translateX(90px);
  }

  .social-float__link {
    padding: 8px 12px;
  }

  .social-float__link span {
    font-size: 12px;
  }
}
