/**
 * Unified social share partial styles.
 */

.social-share {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 1.25rem 0;
}

.social-share button,
.social-share a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-border-color, rgba(255, 255, 255, 0.16));
    border-radius: 50%;
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: transform 0.16s ease, border-color 0.16s ease;
    text-decoration: none;
}

.social-share button:hover,
.social-share a:hover {
    transform: scale(1.06);
    border-color: var(--bs-danger, #dc3545);
}

.social-share button:focus-visible,
.social-share a:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
}

.social-share button span,
.social-share a span {
    width: 1.2rem;
    height: 1.2rem;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.social-share .icon-email {
    background-image: url('/img/icon/email-message.svg');
}

.social-share .icon-fb {
    background-image: url('/img/icon/facebook-icon.svg');
}

.social-share .icon-twitter {
    background-image: url('/img/icon/x_twitter_icon.svg');
}

.social-share .icon-tg {
    background-image: url('/img/icon/telegram-icon.svg');
}

.social-share .icon-whatsapp {
    background-image: url('/img/icon/whatsapp-icon.svg');
}

[data-bs-theme="dark"] .social-share .icon-twitter {
    filter: invert(1);
}

.social-share .icon-link {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
    .social-share button,
    .social-share a {
        transition: none;
    }

    .social-share button:hover,
    .social-share a:hover {
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .social-share button,
    .social-share a {
        width: 40px;
        height: 40px;
    }
}
