/* SA Share Buttons — Sabbir Ahmed */
.sa-sb {
    width: 100%;
}

.sa-sb__header {
    margin: 0 0 12px;
    color: rgba(17,17,17,0.6);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
}

.sa-sb__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: flex-start;
}

/* ── Button base ── */
.sa-sb__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #000000;
    color: #ffffff;
    border: 0 solid transparent;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    flex-shrink: 0;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    outline: none;
}

.sa-sb__btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.sa-sb__btn:active { transform: translateY(0); }

.sa-sb__btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.sa-sb__btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
    display: block;
}

/* ── Copy tooltip ── */
.sa-sb__btn--copy {
    position: relative;
}

.sa-sb__tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    padding: 4px 10px;
    background: #000000;
    color: #ffffff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

.sa-sb__tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: currentColor;
    pointer-events: none;
    color: inherit;
}

.sa-sb__btn--copy.is-copied .sa-sb__tip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .sa-sb__btn, .sa-sb__tip { transition: none; }
}

@media (max-width: 767px) {
    .sa-sb__buttons { gap: 6px; }
}
