/* LogicsDev – share button (inc/tools.php → ld_tool_share). Used on tool pages and blog posts. */
.ld-share { position: relative; display: inline-flex; margin: 22px 0 4px; }
body.ld-hero-center .ld-page-hero .ld-share { display: flex; justify-content: center; }
.ldt-features .ld-share { margin: 0; }
.ld-share__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 99px; cursor: pointer;
  font: 600 14px/1 var(--font-body, inherit); color: var(--orange, #6a4bc9);
  background: var(--glass, rgba(255, 255, 255, .7)); border: 1px solid var(--glass-edge, rgba(255, 255, 255, .8));
  box-shadow: 0 8px 22px rgba(40, 30, 90, .08); transition: transform .15s, box-shadow .2s;
}
body.ld-neu .ld-share__btn { background: var(--neu-base); border: 0; box-shadow: var(--neu-out); }
.ld-share__btn:hover { transform: translateY(-1px); }
.ld-share.is-open .ld-share__btn { box-shadow: inset 0 0 0 2px var(--orange, #6a4bc9); }
body.ld-neu .ld-share.is-open .ld-share__btn { box-shadow: var(--neu-in-sm); }
.ld-share__btn:focus-visible, .ld-share__item:focus-visible { outline: 2px solid var(--orange, #6a4bc9); outline-offset: 3px; }
.ld-share__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); z-index: 60;
  width: 240px; padding: 8px; display: grid; gap: 2px; text-align: left;
  background: #fff; border-radius: 16px; box-shadow: 0 22px 60px rgba(30, 20, 70, .22), 0 0 0 1px rgba(0, 0, 0, .05);
  animation: ldShareIn .18s ease-out;
}
.ld-share__menu[hidden] { display: none; }
@keyframes ldShareIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.ld-share__item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: #1b1530; font: 500 14px var(--font-body, inherit); text-decoration: none; cursor: pointer;
}
.ld-share__item:hover { background: rgba(106, 75, 201, .08); color: #1b1530; }
.ld-share__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #8a84a3; }
.ld-share__item--whatsapp .ld-share__dot { background: #25d366; }
.ld-share__item--facebook .ld-share__dot { background: #1877f2; }
.ld-share__item--x .ld-share__dot { background: #111; }
.ld-share__item--linkedin .ld-share__dot { background: #0a66c2; }
.ld-share__item--telegram .ld-share__dot { background: #29a9eb; }
.ld-share__item--reddit .ld-share__dot { background: #ff4500; }
.ld-share__item--email .ld-share__dot { background: var(--orange, #6a4bc9); }
.ld-share__copy { border-top: 1px solid rgba(0, 0, 0, .06); border-radius: 0 0 10px 10px; margin-top: 4px; }
.ld-share.is-copied .ld-share__copy { color: #128a52; }
.ld-share.is-copied .ld-share__copy .ld-share__dot { background: #128a52; }
/* In the top banner the menu opens inside the page flow (the banner clips anything that sticks out) */
.ld-page-hero .ld-share { flex-direction: column; align-items: center; }
body:not(.ld-hero-center) .ld-page-hero .ld-share { align-items: flex-start; }
.ld-page-hero .ld-share__menu {
  position: static; transform: none; margin-top: 12px; width: min(460px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr)); animation: ldShareDown .2s ease-out;
}
.ld-page-hero .ld-share__copy { grid-column: 1 / -1; }
@keyframes ldShareDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
