/* Floating Social Sidebar Container */
.floating-social-sidebar {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

/* Individual Social Icon Button */
.social-sidebar-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Colors matching official social media brand identities */
.social-sidebar-item.whatsapp {
  background-color: #25D366;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.social-sidebar-item.facebook {
  background-color: #1877F2;
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-sidebar-item.instagram {
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.3);
}

.social-sidebar-item.linkedin {
  background-color: #0077B5;
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.social-sidebar-item.twitter {
  background-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hover effects */
.social-sidebar-item:hover {
  transform: scale(1.1) translateX(-3px);
}

/* Specific brand color adjustments and enhanced shadow glows on hover */
.social-sidebar-item.whatsapp:hover {
  background-color: #128C7E;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.5);
}

.social-sidebar-item.facebook:hover {
  background-color: #165ED0;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.5);
}

.social-sidebar-item.instagram:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 18px rgba(220, 39, 67, 0.5);
}

.social-sidebar-item.linkedin:hover {
  background-color: #005987;
  box-shadow: 0 6px 18px rgba(0, 119, 181, 0.5);
}

.social-sidebar-item.twitter:hover {
  background-color: #262626;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Tooltip text sliding out to the left */
.social-sidebar-tooltip {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background-color: #0B0F19;
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #1E293B;
}

/* Small arrow for tooltip */
.social-sidebar-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent #0B0F19;
}

.social-sidebar-item:hover .social-sidebar-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Pulse animation for WhatsApp specifically to retain call to action priority */
.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(37, 211, 102, 0.3);
  z-index: -1;
  animation: whatsapp-ripple 2s infinite;
}

@keyframes whatsapp-ripple {
  0% {
    transform: scale(0.95);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .floating-social-sidebar {
    right: 10px;
    gap: 8px;
  }
  
  .social-sidebar-item {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  
  .social-sidebar-tooltip {
    display: none; /* Hide tooltips on mobile screens for better UX */
  }
}
