.social-share {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 20px 0;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
  
  /* Perbaikan: Pisahkan initial state dari animation */
  opacity: 0;
  transform: translateY(20px);
  
  /* Transition yang lebih stabil */
  transition: 
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease;
}

/* Perbaikan: State setelah animasi selesai */
.share-btn.loaded {
  opacity: 1;
  transform: translateY(0);
}

.share-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
  transition: transform 0.3s ease;
  z-index: 3;
  position: relative;
}

/* Hover Effects - Perbaikan */
.share-btn.loaded:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.share-btn.loaded:active {
  transform: translateY(-2px) scale(1.05);
  transition: all 0.1s ease;
}

/* Ripple Effect - Perbaikan Z-index */
.share-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

.share-btn:hover::before {
  width: 120%;
  height: 120%;
}

/* Platform Colors */
.share-btn--facebook { background-color: #1877f2; }
.share-btn--twitter { background-color: #1da1f2; }
.share-btn--whatsapp { background-color: #25d366; }
.share-btn--telegram { background-color: #0088cc; }
.share-btn--linkedin { background-color: #0077b5; }
.share-btn--tumblr { background-color: #001935; }
.share-btn--email { background-color: #ea4335; }
.share-btn--copy { background-color: #6c757d; }

/* Pulse Animation untuk Copy */
.share-btn--copy.copied {
  animation: pulse 0.6s ease-out;
}

@keyframes pulse {
  0% {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
  }
  50% {
    transform: translateY(-6px) scale(1.15);
    box-shadow: 0 12px 35px rgba(108, 117, 125, 0.6);
  }
  100% {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
  }
}

/* Loading Animation */
.share-btn.loading {
  pointer-events: none;
}

.share-btn.loading svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating Animation - Perbaikan */
.social-share:hover .share-btn.loaded:not(:hover) {
  transform: translateY(-1px);
  opacity: 0.8;
}

/* Entrance Animation - Diperbaiki */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-btn:nth-child(1) { animation: fadeInUp 0.5s ease-out 0.1s forwards; }
.share-btn:nth-child(2) { animation: fadeInUp 0.5s ease-out 0.2s forwards; }
.share-btn:nth-child(3) { animation: fadeInUp 0.5s ease-out 0.3s forwards; }
.share-btn:nth-child(4) { animation: fadeInUp 0.5s ease-out 0.4s forwards; }
.share-btn:nth-child(5) { animation: fadeInUp 0.5s ease-out 0.5s forwards; }
.share-btn:nth-child(6) { animation: fadeInUp 0.5s ease-out 0.6s forwards; }
.share-btn:nth-child(7) { animation: fadeInUp 0.5s ease-out 0.7s forwards; }
.share-btn:nth-child(8) { animation: fadeInUp 0.5s ease-out 0.8s forwards; }

/* Responsive */
@media (max-width: 480px) {
  .social-share {
    gap: 12px;
    padding: 15px;
  }
  
  .share-btn {
    width: 45px;
    height: 45px;
  }
  
  .share-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* Accessibility */
.share-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
}