/* Share-knop + dropdown-popover. Past in vintage cabinet-stijl. */

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(232, 154, 60, 0.3);
  border-radius: 6px;
  color: var(--amber, #e89a3c);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.share-btn:hover,
.share-btn:focus-visible {
  border-color: var(--amber, #e89a3c);
  color: var(--amber-glow, #ffb84d);
  background: rgba(232, 154, 60, 0.08);
  outline: none;
}
.share-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Subtiele variant — voor footer of als secondary action.
   Activeer met class="share-btn share-btn-subtle". */
.share-btn-subtle {
  border-color: transparent;
  color: var(--wood-mid, #7a4a14);
  opacity: 0.7;
}
.share-btn-subtle:hover {
  border-color: rgba(232, 154, 60, 0.3);
  color: var(--amber-glow, #ffb84d);
  opacity: 1;
}

/* Popover-dropdown (desktop-fallback voor Web Share API). */
.share-popover {
  background: var(--paper, #f5f3ec);
  border: 1.5px solid var(--wood-dark, #3a2818);
  border-radius: 8px;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  padding: 6px;
  min-width: 180px;
  font-family: var(--font-sans, system-ui);
  animation: share-popover-in 0.15s ease;
}
@keyframes share-popover-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.share-popover-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: var(--wood-dark, #3a2818);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s ease;
}
.share-popover-item:hover,
.share-popover-item:focus-visible {
  background: rgba(232, 154, 60, 0.15);
  outline: none;
}
.share-popover-item svg {
  flex-shrink: 0;
}
/* Brand-colors voor channel-icons binnen popover */
.share-popover-item.share-whatsapp svg { color: #25D366; }
.share-popover-item.share-facebook svg { color: #1877F2; }
.share-popover-item.share-x        svg { color: #000000; }
.share-popover-item.share-email    svg { color: #5a3e26; }
.share-popover-item.share-copy     svg { color: #5a3e26; }
