/**
 * Social Media Share Widgets CSS
 */

/* Share button styling */
.social-links a {
  position: relative;
  overflow: hidden;
}

/* Button animation when clicked */
.social-links a.share-clicked {
  animation: share-pulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes share-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.3);
  }
}

/* Share tooltip */
.share-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

/* Arrow for tooltip */
.share-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
}

/* Show tooltip on hover */
.social-links a:hover .share-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Temporary tooltip for unsupported platforms */
.temp-tooltip {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.875rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  text-align: center;
}

.temp-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Share success indicator */
.share-success {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.share-success.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile styling */
@media (max-width: 768px) {
  .social-links {
    justify-content: center;
  }
  
  .share-tooltip {
    display: none; /* Hide tooltips on mobile for better touch experience */
  }
}
