/**
 * Social Share Buttons Styles
 * Clean, icon-only share buttons with tooltips
 */

.social-share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  /* margin-top: 20px;
  padding-top : 8px;
  border-top: 1px solid #e0e0e0; */
  width: fit-content
}

.social-share-buttons .share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  margin-inline-end: 5px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: transparent;
  color: var(--color-primary);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-size: 14px;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.share-btn:active {
  transform: translateY(0);
}

/* Individual platform colors on hover */
.share-twitter:hover {
  background-color: #1DA1F2;
  color: #fff;
}

.share-facebook:hover {
  background-color: #1877F2;
  color: #fff;
}

.share-whatsapp:hover {
  background-color: #25D366;
  color: #fff;
}

.share-linkedin:hover {
  background-color: #0A66C2;
  color: #fff;
}

.share-email:hover {
  background-color: #EA4335;
  color: #fff;
}

.share-copy:hover {
  background-color: #666;
  color: #fff;
}

.share-copy.copied {
  background-color: #4CAF50;
  color: #fff;
}

/* Tooltip styles */
.share-btn::before {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.share-btn::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1000;
}

.share-btn:hover::before,
.share-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Copy button special states */
.share-copied-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.share-copy.copied .fa-link {
  display: none;
}

.share-copy.copied .share-copied-icon {
  display: block !important;
  animation: checkmark-pop 0.3s ease;
}

@keyframes checkmark-pop {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

/* RTL Support */
[dir="rtl"] .social-share-buttons {
  direction: rtl;
}

[dir="rtl"] .share-label {
  margin-inline-start: 5px;
  margin-inline-end: 0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .social-share-buttons {
    gap: 8px;
  }

  .share-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .share-label {
    font-size: 13px;
  }

  /* Hide tooltips on mobile */
  .share-btn::before,
  .share-btn::after {
    display: none;
  }
}

/* Accessibility: Focus states */
.share-btn:focus {
  outline: 2px solid #4A90E2;
  outline-offset: 2px;
}

.share-btn:focus:not(:focus-visible) {
  outline: none;
}
