/* ══════════════════════════════════════════════════════════════════════
   social-share.css — Article social sharing bar
   Loaded on insight article pages alongside articles.css.
   Depends on CSS custom properties defined in base.css.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Container ───────────────────────────────────────────────────────── */
.social-share {
  max-width: 780px;
  margin: 24px auto 32px;
  padding: 20px 32px;
  border-top: 1px solid #e8eaeb;
  border-bottom: 1px solid #e8eaeb;
  text-align: center;
}

.social-share__label {
  font-family: 'Proxima Nova', Arial, Helvetica, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a9a9e;
  margin: 0 0 10px;
}

/* ── Button row ──────────────────────────────────────────────────────── */
.social-share__buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

/* ── Individual button ───────────────────────────────────────────────── */
.social-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 4px;
  border: 1px solid #d0d8da;
  font-family: 'Proxima Nova', Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  background: #f8fafa;
  white-space: nowrap;
  color: #5a6a72;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.social-share__btn:focus-visible {
  outline: 2px solid #00A486;
  outline-offset: 3px;
}

/* ── LinkedIn ────────────────────────────────────────────────────────── */
.social-share__btn--linkedin {
  color: #004149;
  border-color: #b0c4c8;
  background: #f5fafa;
}

.social-share__btn--linkedin:hover {
  background: #004149;
  border-color: #004149;
  color: #fff;
  transform: translateY(-1px);
}

/* ── XING ────────────────────────────────────────────────────────────── */
.social-share__btn--xing {
  color: #004149;
  border-color: #b0c4c8;
  background: #f5fafa;
}

.social-share__btn--xing:hover {
  background: #00A486;
  border-color: #00A486;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Email ───────────────────────────────────────────────────────────── */
.social-share__btn--email {
  color: #004149;
  border-color: #b0c4c8;
  background: #f5fafa;
}

.social-share__btn--email:hover {
  background: #004149;
  border-color: #004149;
  color: #fff;
  transform: translateY(-1px);
}

/* ── Copy link ───────────────────────────────────────────────────────── */
.social-share__btn--copy {
  color: #004149;
  border-color: #b0c4c8;
  background: #f5fafa;
  /* position needed so the confirmation tooltip is anchored */
  position: relative;
}

.social-share__btn--copy:hover {
  background: #f0fcf9;
  border-color: #00A486;
  color: #004149;
  transform: translateY(-1px);
}

/* Copied confirmation state */
.social-share__btn--copy.is-copied {
  background: #00A486;
  border-color: #00A486;
  color: #fff;
  transform: translateY(-1px);
  pointer-events: none;
}

/* ── SVG icons ───────────────────────────────────────────────────────── */
.social-share__btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  /* inherit fill from button color unless overridden per icon */
  fill: currentColor;
}

/* ── Responsive: stack on small screens ──────────────────────────────── */
@media (max-width: 480px) {
  .social-share__buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .social-share__btn {
    width: 100%;
    justify-content: center;
  }
}
