/**
 * Floating Social Media Buttons CSS - Smaller size version
 * Add this file to your css folder and enqueue it
 */

/* Floating Social Media Buttons Container */
.floating-social-buttons {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  border-radius: 18px 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: -3px 0 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.floating-social-buttons:hover {
  transform: translateY(-50%) translateX(-3px);
  background: rgba(0, 0, 0, 0.9);
}

.floating-social-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.floating-social-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  transition: transform 0.3s ease;
  transform: scale(0);
}

.floating-social-button:hover::before {
  transform: scale(1);
}

.floating-social-button svg {
  width: 18px;
  height: 18px;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.floating-social-button:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-social-button:hover svg {
  transform: scale(1.1);
}

/* Facebook Button */
.floating-social-button.facebook {
  background: #1877f2;
}

.floating-social-button.facebook::before {
  background: #166fe5;
}

.floating-social-button.facebook:hover {
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

/* Instagram Button */
.floating-social-button.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.floating-social-button.instagram::before {
  background: linear-gradient(45deg, #e6683c 0%, #dc2743 25%, #cc2366 50%, #bc1888 75%, #8b0a6b 100%);
}

.floating-social-button.instagram:hover {
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
}

/* TikTok Button */
.floating-social-button.tiktok {
  background: #000000;
}

.floating-social-button.tiktok::before {
  background: #333333;
}

.floating-social-button.tiktok:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* WhatsApp Button */
.floating-social-button.whatsapp {
  background: #25d366;
}

.floating-social-button.whatsapp::before {
  background: #128c7e;
}

.floating-social-button.whatsapp:hover {
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* Tooltip */
.floating-social-button .tooltip {
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--black);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-social-button .tooltip::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 4px solid transparent;
  border-left-color: var(--black);
}

.floating-social-button:hover .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-3px);
}

/* Customizable background color - CSS custom property */
.floating-social-buttons {
  background: var(--floating-social-bg, rgba(0, 0, 0, 0.8));
}

.floating-social-buttons:hover {
  background: var(--floating-social-bg-hover, rgba(0, 0, 0, 0.9));
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floating-social-buttons {
    padding: 0.5rem 0.75rem 0.5rem 0.5rem;
    border-radius: 15px 0 0 15px;
    gap: 0.4rem;
  }

  .floating-social-button {
    width: 32px;
    height: 32px;
  }

  .floating-social-button svg {
    width: 16px;
    height: 16px;
  }

  .floating-social-button .tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .floating-social-buttons {
    padding: 0.4rem 0.6rem 0.4rem 0.4rem;
    border-radius: 12px 0 0 12px;
    gap: 0.3rem;
  }

  .floating-social-button {
    width: 28px;
    height: 28px;
  }

  .floating-social-button svg {
    width: 14px;
    height: 14px;
  }
}

/* Animation on page load */
.floating-social-buttons {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%) translateY(-50%);
  }
  to {
    opacity: 1;
    transform: translateX(0) translateY(-50%);
  }
}

/* Individual button animations */
.floating-social-button {
  animation: fadeIn 0.6s ease-out;
}

.floating-social-button:nth-child(1) {
  animation-delay: 0.1s;
}

.floating-social-button:nth-child(2) {
  animation-delay: 0.2s;
}

.floating-social-button:nth-child(3) {
  animation-delay: 0.3s;
}

.floating-social-button:nth-child(4) {
  animation-delay: 0.4s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
