/* ══════════════════════════════════════════════════════════
   Edukated – Share (articles & resource cards)
   Used with js/share.js
══════════════════════════════════════════════════════════ */

/* Main "Share" button (article pages) */
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 0;
  border-radius: 10px;
  background: #2563EB;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.share-btn:hover { background: #1D4ED8; box-shadow: 0 4px 14px rgba(37, 99, 235, .32); }
.share-btn:active { transform: scale(.97); }
.share-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.share-btn svg { flex: 0 0 auto; }

/* Bar that holds the Share button on article pages */
.share-bar { padding: 16px 20px 12px; }

/* Compact "Share" button in the card footer */
.card-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px 0 11px;
  border: 1.5px solid var(--border, #E2E8F0);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted, #64748B);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
  -webkit-tap-highlight-color: transparent;
}
.card-share-btn svg { width: 15px; height: 15px; flex: 0 0 auto; }
.card-share-btn:hover { border-color: #2563EB; background: #EFF6FF; color: #2563EB; }
.card-share-btn:active { transform: scale(.96); }
.card-share-btn:focus-visible { outline: 2px solid #2563EB; outline-offset: 2px; }

/* Floating "Share" pill that stays on screen while reading an article */
.share-fab {
  position: fixed;
  right: 16px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 8000;
  padding: 14px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .3);
}

/* Dropdown menu: WhatsApp / X / Facebook / Copy Link */
.ek-share-menu {
  position: fixed;
  z-index: 9000;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
  animation: ekShareIn .14s ease;
}
@keyframes ekShareIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ek-share-menu__item {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ek-share-menu__item:hover,
.ek-share-menu__item:focus-visible { background: #f3f4f6; outline: none; }
.ek-share-menu__wa   { color: #25D366; }
.ek-share-menu__x    { color: #111827; }
.ek-share-menu__fb   { color: #1877F2; }
.ek-share-menu__copy { color: #6b7280; }
