/* Social Share Buttons Styling */

.social-share-container {
  margin: 2rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-share-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-share-title svg {
  width: 20px;
  height: 20px;
}

.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.share-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-button:hover::before {
  opacity: 1;
}

.share-button:active {
  transform: scale(0.95);
}

.share-button svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Platform-specific colors */
.share-button-twitter {
  background: #1DA1F2;
}

.share-button-twitter:hover {
  background: #1a8cd8;
}

.share-button-telegram {
  background: #0088cc;
}

.share-button-telegram:hover {
  background: #007ab8;
}

.share-button-whatsapp {
  background: #25D366;
}

.share-button-whatsapp:hover {
  background: #20bd5a;
}

.share-button-facebook {
  background: #1877F2;
}

.share-button-facebook:hover {
  background: #1565d8;
}

.share-button-email {
  background: #666;
}

.share-button-email:hover {
  background: #555;
}

.share-button-native {
  background: #6c5ce7;
  display: none; /* Hidden by default, shown via JS if Web Share API is available */
}

.share-button-native:hover {
  background: #5b4bc4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .social-share-container {
    padding: 1rem;
    margin: 1.5rem 0;
  }

  .social-share-title {
    font-size: 1rem;
  }

  .social-share-buttons {
    gap: 0.5rem;
  }

  .share-button {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    flex: 1;
    justify-content: center;
    min-width: calc(50% - 0.25rem);
  }
}

@media (max-width: 480px) {
  .share-button {
    flex: 1;
    min-width: 100%;
  }

  .share-button-text {
    display: none;
  }

  .share-button {
    justify-content: center;
    padding: 0.75rem;
  }
}

/* Dark mode adjustments (if needed) */
@media (prefers-color-scheme: light) {
  .social-share-container {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
  }

  .social-share-title {
    color: #333;
  }
}

/* Animation for share container */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-share-container {
  animation: slideInUp 0.4s ease-out;
}

/* Loading state (optional) */
.share-button.loading {
  pointer-events: none;
  opacity: 0.6;
}

.share-button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

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