/* Floating (sticky) share bar redesign: premium, modern, professional */
.post-share-floating {
  gap: 12px;
  width: auto;
  padding: 12px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(2, 6, 23, 0.1), 0 0 1px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(12px) saturate(150%);
  transform: translateX(calc(-100% - 18px));
}

.post-share-floating .share-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--theme-primary) 6%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--theme-primary) 14%, rgba(15, 23, 42, 0.08));
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.05);
  color: var(--theme-primary);
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.post-share-floating .share-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.post-share-floating .share-icon:hover {
  transform: translateY(-4px) scale(1.08);
  background: color-mix(in srgb, var(--theme-primary) 18%, #fff);
  border-color: color-mix(in srgb, var(--theme-primary) 32%, rgba(15, 23, 42, 0.08));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 24%, rgba(2, 6, 23, 0.15));
}

.post-share-floating .share-icon:active {
  transform: translateY(-1px) scale(0.98);
}

.post-share-floating .share-icon:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--theme-primary) 52%, transparent);
  outline-offset: 3px;
}

/* Facebook: use official blue */
.post-share-floating .share-icon.fb {
  color: #1877f2;
}

.post-share-floating .share-icon.fb:hover {
  background: color-mix(in srgb, #1877f2 18%, #fff);
  border-color: color-mix(in srgb, #1877f2 32%, rgba(15, 23, 42, 0.08));
  box-shadow: 0 8px 24px color-mix(in srgb, #1877f2 24%, rgba(2, 6, 23, 0.15));
}

/* WhatsApp: use official green on hover */
.post-share-floating .share-icon.wa {
  color: var(--rcard3-primary, #25d366);
}

.post-share-floating .share-icon.wa:hover {
  color: #25d366;
  background: color-mix(in srgb, #25d366 18%, #fff);
  border-color: color-mix(in srgb, #25d366 32%, rgba(15, 23, 42, 0.08));
  box-shadow: 0 8px 24px color-mix(in srgb, #25d366 24%, rgba(2, 6, 23, 0.15));
}

/* Pinterest: red button with rounded background */
.post-share-floating .share-icon.pin {
  background: color-mix(in srgb, #e60023 8%, #fff) !important;
  border: 1.5px solid color-mix(in srgb, #e60023 20%, rgba(15, 23, 42, 0.08)) !important;
}

.post-share-floating .share-icon.pin svg {
  width: 38px !important;
  height: 38px !important;
}

/* Facebook: 1 step bigger */
.post-share-floating .share-icon.fb svg {
  width: 32px !important;
  height: 32px !important;
}

/* WhatsApp: 2-3 steps bigger */
.post-share-floating .share-icon.wa svg {
  width: 38px !important;
  height: 38px !important;
}

.post-share-floating .share-icon.pin:hover {
  background: color-mix(in srgb, #e60023 16%, #fff) !important;
  border-color: color-mix(in srgb, #e60023 32%, rgba(15, 23, 42, 0.08)) !important;
  box-shadow: 0 8px 24px rgba(230, 0, 35, 0.25) !important;
  filter: none;
}

/* Optional special button style */
.post-share-floating .share-icon.ing {
  background: var(--theme-secondary) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.post-share-floating .share-icon.ing svg {
  color: #fff !important;
  fill: currentColor !important;
}

/* Mobile inline bar */
.post-share-inline-mobile {
  display: none;
}

.post-share-inline-mobile .ms-inline.wa {
  color: var(--rcard3-primary, #25d366);
}

/* Mobile: show desktop-like share pills under author (non-sticky) */
@media (max-width: 880px), (hover: none) and (pointer: coarse) {
  .post-share-floating {
    display: none !important;
  }

  .post-share-inline-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 10px auto 0;
    padding: 12px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.1), 0 0 1px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px) saturate(150%);
  }

  .post-share-inline-mobile .ms-inline {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--theme-primary) 6%, #fff);
    border: 1.5px solid color-mix(in srgb, var(--theme-primary) 14%, rgba(15, 23, 42, 0.08));
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.05);
    color: var(--theme-primary);
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    padding: 0;
    outline: none;
    appearance: none;
  }

  .post-share-inline-mobile .ms-inline svg {
    width: 28px;
    height: 28px;
    display: block;
  }

  .post-share-inline-mobile .ms-inline:hover {
    transform: translateY(-3px) scale(1.06);
    background: color-mix(in srgb, var(--theme-primary) 18%, #fff);
    border-color: color-mix(in srgb, var(--theme-primary) 32%, rgba(15, 23, 42, 0.08));
    box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary) 24%, rgba(2, 6, 23, 0.15));
  }

  .post-share-inline-mobile .ms-inline:active {
    transform: translateY(-1px) scale(0.98);
  }

  .post-share-inline-mobile .ms-inline:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--theme-primary) 52%, transparent);
    outline-offset: 3px;
  }

  /* Hide text labels visually (keep for a11y) */
  .post-share-inline-mobile .ms-inline span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  /* Per-network styling */
  .post-share-inline-mobile .ms-inline.fb {
    color: #1877f2;
  }

  .post-share-inline-mobile .ms-inline.fb:hover {
    background: color-mix(in srgb, #1877f2 18%, #fff);
    border-color: color-mix(in srgb, #1877f2 32%, rgba(15, 23, 42, 0.08));
    box-shadow: 0 8px 24px color-mix(in srgb, #1877f2 24%, rgba(2, 6, 23, 0.15));
  }

  .post-share-inline-mobile .ms-inline.wa {
    color: #25d366;
  }

  .post-share-inline-mobile .ms-inline.wa:hover {
    color: #25d366;
    background: color-mix(in srgb, #25d366 18%, #fff);
    border-color: color-mix(in srgb, #25d366 32%, rgba(15, 23, 42, 0.08));
    box-shadow: 0 8px 24px color-mix(in srgb, #25d366 24%, rgba(2, 6, 23, 0.15));
  }
}
