/* ============================================================
   SHARE.CSS — Share dropdown styles
   ============================================================ */

.share-dropdown {
  position: absolute;
  z-index: 10000;
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 180px;
  transform-origin: center bottom;
}

.share-dropdown--below {
  transform-origin: center top;
}

.share-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  color: var(--text, #111);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
  text-align: left;
}

.share-dropdown__item:hover {
  background: var(--bg, #f5f4f0);
}

.share-dropdown__item svg {
  flex-shrink: 0;
}

/* WhatsApp green */
.share-dropdown__item[data-action="whatsapp"] svg {
  color: #25D366;
}

/* Twitter/X */
.share-dropdown__item[data-action="twitter"] svg {
  color: var(--text, #111);
}

/* Copy */
.share-dropdown__item[data-action="copy"] svg {
  color: var(--muted, #888);
}

/* Share button on gallery cards */
.print-card__share {
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--card-bg, #fff);
  color: var(--text, #111);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 3;
}

.print-card:hover .print-card__share {
  opacity: 1;
  transform: translateY(0);
}

.print-card__share:hover {
  background: var(--accent, #e63329);
  color: #fff;
}

/* Dark mode */
[data-theme="dark"] .share-dropdown {
  background: var(--card-bg);
  border-color: var(--border);
}

[data-theme="dark"] .share-dropdown__item:hover {
  background: rgba(255,255,255,0.06);
}

[data-theme="dark"] .share-dropdown__item[data-action="twitter"] svg {
  color: #fff;
}
