/* Social sharing styles for weiwei-site */

/* Share button on cards */
.share-btn {
  position: absolute;
  top: 12px;
  right: 48px;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: var(--muted, #78716c);
  padding: 4px;
}

.ww-post-card:hover .share-btn,
.ww-pillcard:hover .share-btn {
  opacity: 1;
}

.share-btn:hover {
  color: var(--accent, #2563eb);
  transform: scale(1.1);
}

/* Share menu */
.share-menu {
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e7e5e4);
  border-radius: 12px;
  padding: 12px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: shareMenuIn 0.2s ease;
}

@keyframes shareMenuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.share-menu-header {
  font-size: 0.8rem;
  color: var(--muted, #78716c);
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--border, #e7e5e4);
  margin-bottom: 8px;
}

.share-menu-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--fg, #1c1917);
  transition: background 0.2s ease;
}

.share-option:hover {
  background: var(--bg, #fafaf9);
}

.share-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* Toast notification */
.share-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--fg, #1c1917);
  color: var(--bg, #fafaf9);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Dark mode */
.dark .share-menu {
  background: var(--card);
  border-color: var(--border);
}

.dark .share-option {
  color: var(--fg);
}

.dark .share-option:hover {
  background: var(--bg);
}

.dark .share-toast {
  background: var(--fg);
  color: var(--bg);
}
