/* Share Component — SD-62
 * Label + Facebook/X share links. One size for L, M, S.
 */

.share {
  display: flex;
  align-items: center;
  gap: var(--dk-space-04);       /* 20px */
  border-top: 1px solid rgba(0, 0, 0, 0.5);
  padding-block: var(--dk-space-03);   /* 12px */
  padding-right: var(--dk-space-00);   /* 4px */
}

.share__label {
  white-space: nowrap;
  flex-shrink: 0;
}

.share__buttons {
  display: flex;
  align-items: center;
  gap: var(--dk-space-03);       /* 12px */
  flex-shrink: 0;
}

/* --- Share link: 44×44 touch target --- */
.share__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;    /* 44px */
  height: 2.75rem;   /* 44px */
  text-decoration: none;
  color: var(--dk-color-black);
  flex-shrink: 0;
}

/* --- Inner pill: 32×32, white 20% bg --- */
.share__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;       /* 32px */
  height: 2rem;      /* 32px */
  border-radius: 1000px;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.15s ease, width 0.1s ease, height 0.1s ease;
  pointer-events: none;
}

.share__inner svg {
  width: 1.25rem;    /* 20px */
  height: 1.25rem;
  display: block;
}

/* --- Hover: full white --- */
.share__link:hover .share__inner {
  background-color: var(--dk-color-white);
}

/* --- Active: full white + pill shrinks to 28px --- */
.share__link:active .share__inner {
  background-color: var(--dk-color-white);
  width: 1.75rem;    /* 28px */
  height: 1.75rem;   /* 28px */
}

/* --- Focus-visible --- */
.share__link:focus-visible {
  outline: none;
  border-radius: 1000px;
  box-shadow:
    0 0 0 2px var(--dk-color-black),
    0 0 0 4px var(--dk-color-white),
    0 0 0 8px #008eff;
}

@media (prefers-reduced-motion: reduce) {
  .share__inner {
    transition: none;
  }
}
