/* Social Share Modal Styles */

/* Overlay */
.social-share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

/* Modal */
.social-share-modal {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  position: relative;
}

/* Close Button */
.social-share-modal__close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #374151; /* Darker grey for better readability - meets WCAG AA */
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.social-share-modal__close-btn:hover {
  color: #000;
}

/* Title */
.social-share-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
}

/* Links Container */
.social-share-modal__links-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media screen and (min-width: 768px) {
  .social-share-modal__links-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Social Link */
.social-share-modal__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

/* Social Icon */
.social-share-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.social-share-modal__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Social Text */
.social-share-modal__text {
  flex: 1;
  text-align: center;
}

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

/* Platform-specific colors */
.social-share-modal__link--facebook {
  background: #1877F2;
}

.social-share-modal__link--twitter {
  background: #000000;
}

.social-share-modal__link--linkedin {
  background: #0077B5;
}

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

.social-share-modal__link--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

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

.social-share-modal__link--email {
  background: #6B7280;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

