/* Share button styles */
.share-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.2s ease;
  margin-left: 5px;
}

.share-icon:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: #6366f1;
}

/* Share modal styles */
.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-modal.active {
  opacity: 1;
}

.share-modal.closing .share-modal-content {
  transform: scale(0.9);
  opacity: 0;
}

.share-modal-content {
  background: var(--surface);
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  transform: scale(1);
  opacity: 1;
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}

.share-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text);
}

.share-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  line-height: 1;
}

.share-modal-close:hover {
  color: var(--primary);
}

.share-modal-body {
  padding: 20px;
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  color: #fff;
}

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

.share-button.twitter {
  background-color: #1DA1F2;
}

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

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

.share-button.bluesky {
  background-color: #0085FF;
}

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

.share-button.email {
  background-color: #6366f1;
}

.share-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.share-link {
  display: flex;
  margin-top: 15px;
}

.share-link input {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px 0 0 6px;
  background-color: var(--surface);
  color: var(--text);
}

.copy-link-btn {
  padding: 10px 15px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.copy-link-btn:hover {
  background-color: var(--primary-hover);
}

.copy-link-btn.copied {
  background-color: var(--success);
}

/* Responsive styles */
@media (max-width: 480px) {
  .share-buttons {
    grid-template-columns: 1fr;
  }
  
  .share-modal-content {
    width: 95%;
  }
}