/* Social Share Widget Styles */
.social-share-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  border-radius: 50px;
  transition: background-color 0.2s ease;
/*margin-bottom:30px;*/
}

.social-share-widget:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.share-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-icon {
  width: 20px;
  height: 20px;
}

.share-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Modal Styles */
.social-share-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s ease;
}

.social-share-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  width: 320px;
  max-width: 90vw;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.close-modal {
  font-size: 24px;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.close-modal:hover {
  color: #333;
  background-color: #f5f5f5;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

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

.social-icon img {
  width: 32px;
  height: 32px;
}

/* Page Link Section */
.page-link-section {
  margin-top: 20px;
}

.page-link-section h4 {
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.link-container {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

#page-link-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #666;
  outline: none;
  padding: 4px 0;
}

.copy-btn {
  background: #007cba;
  border: none;
  color: white;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  min-width: 36px;
  height: 36px;
}

.copy-btn:hover {
  background: #005a87;
}

.copy-btn.copied {
  background: #28a745;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .modal-content {
    width: 95vw;
    padding: 16px;
  }

  .social-icons {
    gap: 8px;
    padding: 12px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon img {
    width: 28px;
    height: 28px;
  }

  .link-container {
    padding: 10px;
  }

  #page-link-input {
    font-size: 13px;
  }
}

/* Accessibility */
.social-share-widget:focus,
.social-icon:focus,
.copy-btn:focus,
.close-modal:focus {
  outline: 2px solid #007cba;
  outline-offset: 2px;
}

/* Loading state */
.social-share-modal.loading .modal-content {
  opacity: 0.7;
  pointer-events: none;
}