/* ─────────────────────────────────────────────────────────────────────────
   Share Widget — appended to portal.css; loaded with share.js
   ───────────────────────────────────────────────────────────────────────── */

.hoc-share-bar {
  padding: 14px 0 6px;
  border-top: 1px solid var(--line, #e6e6e1);
  margin-top: 16px;
}
.hoc-sb-hook {
  font-size: 12px; font-weight: 600;
  color: var(--ink-muted, #6c6c75);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.hoc-sb-btns {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.hoc-sb-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2px;
  padding: 7px 12px;
  border-radius: 18px;
  border: none;
  color: #fff;
  cursor: pointer;
  font-family: inherit; line-height: 1;
  transition: opacity .12s, transform .12s;
}
.hoc-sb-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.hoc-sb-wa   { background: #25D366; }
.hoc-sb-wast { background: #128C7E; }
.hoc-sb-tw   { background: #15171a; }
.hoc-sb-fb   { background: #1877F2; }
.hoc-sb-tg   { background: #229ED9; }
.hoc-sb-li   { background: #0A66C2; }
.hoc-sb-th   { background: #000; }
.hoc-sb-ig   { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.hoc-sb-cp   { background: #6B7280; }
.hoc-sb-qr   { background: #404654; }
.hoc-sb-native { background: #15171a; }
.hoc-sb-primary { padding: 9px 16px; font-size: 13px; }

.hoc-share-event { display: flex; gap: 8px; padding: 10px 0; border-top: none; }

/* Compact (used inside card lists) */
.hoc-share-compact {
  display: flex; gap: 4px; margin-top: 8px;
}
.hoc-share-compact button {
  width: 26px; height: 26px;
  border: 1px solid var(--line, #e6e6e1);
  background: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 12px;
  transition: transform .12s, border-color .12s;
}
.hoc-share-compact button:hover {
  transform: scale(1.1);
  border-color: var(--ink, #15151a);
}

/* Streak pill */
.hoc-streak-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  color: #fff;
  letter-spacing: 0.02em;
}

/* Toast */
.hoc-toast {
  position: fixed;
  bottom: 84px; left: 50%; transform: translateX(-50%);
  background: #15171a;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  z-index: 9999;
  animation: hoc-toast-in 0.2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
@keyframes hoc-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* QR overlay */
.hoc-qr-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: grid; place-items: center;
  padding: 20px;
}
.hoc-qr-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0,0,0,0.2);
  max-width: 280px;
}
.hoc-qr-card img {
  width: 224px; height: 224px;
  border-radius: 8px;
  display: block; margin: 0 auto;
}
.hoc-qr-cap {
  margin-top: 12px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-muted, #6c6c75);
}
.hoc-qr-close {
  margin-top: 14px;
  padding: 8px 22px;
  border-radius: 6px;
  border: 1px solid var(--line, #e6e6e1);
  background: #fff;
  cursor: pointer;
  font-size: 12px; font-weight: 600;
  font-family: inherit;
}
.hoc-qr-close:hover { background: var(--bg, #fafaf7); }

/* Mobile-friendly compact bar */
@media (max-width: 640px) {
  .hoc-sb-btns { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .hoc-sb-btn { white-space: nowrap; flex-shrink: 0; }
}
