/* =========================================================
   SHARE BOX
   ========================================================= */

.us-share-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    width: auto;
    flex-shrink: 0;

    margin: 0;
    padding: 0;

    border: 0;
    background: transparent;
}


/* =========================================================
   BOTÕES
   ========================================================= */

.us-share-button {
    position: relative;

    width: 44px;
    min-width: 44px;
    max-width: 44px;

    height: 44px;
    min-height: 44px;
    max-height: 44px;

    flex: 0 0 44px;
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;

    background: transparent;
    color: rgba(255, 255, 255, 0.9);

    text-decoration: none;
    cursor: pointer;

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   ÍCONES
   ========================================================= */

.us-share-button svg {
    display: block;

    width: 22px;
    height: 22px;

    fill: currentColor;

    transition: transform 0.2s ease;
}


/* =========================================================
   HOVER / FOCO
   ========================================================= */

.us-share-button:hover,
.us-share-button:focus-visible {
    background: transparent;
    outline: none;

    transform: scale(1.08);
}

.us-share-button:hover svg,
.us-share-button:focus-visible svg {
    transform: scale(1.08);
}

.us-share-button:active {
    transform: scale(0.94);
}


/* =========================================================
   CORES DAS PLATAFORMAS
   ========================================================= */

/* WhatsApp */
.us-share-button[href*="whatsapp"]:hover,
.us-share-button[href*="whatsapp"]:focus-visible {
    color: #25D366;
    border-color: #25D366;
}


/* Facebook */
.us-share-button[href*="facebook"]:hover,
.us-share-button[href*="facebook"]:focus-visible {
    color: #1877F2;
    border-color: #1877F2;
}


/* X */
.us-share-button[href*="twitter"]:hover,
.us-share-button[href*="twitter"]:focus-visible {
    color: #FFFFFF;
    border-color: #FFFFFF;
}


/* Telegram */
.us-share-button[href*="t.me"]:hover,
.us-share-button[href*="t.me"]:focus-visible {
    color: #229ED9;
    border-color: #229ED9;
}


/* Copiar link */
.us-share-copy:hover,
.us-share-copy:focus-visible {
    color: #FF3B30;
    border-color: #FF3B30;
}


/* =========================================================
   TOOLTIP
   ========================================================= */

.us-share-button::after {
    content: attr(data-share-tooltip);

    position: absolute;
    left: 50%;
    bottom: calc(100% + 9px);

    z-index: 20;

    padding: 6px 9px;

    border-radius: 5px;

    background: #18181b;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(-50%, 4px);

    transition:
        opacity 0.15s ease,
        transform 0.15s ease,
        visibility 0.15s ease;
}

.us-share-button:hover::after,
.us-share-button:focus-visible::after {
    opacity: 1;
    visibility: visible;

    transform: translate(-50%, 0);
}


/* =========================================================
   COPIAR LINK — ESTADO DE SUCESSO
   ========================================================= */

.us-share-copy-default,
.us-share-copy-success {
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.us-share-copy-success {
    position: absolute;

    opacity: 0;
    transform: scale(0.65);
}

.us-share-copy.is-copied {
    color: #FF3B30;
    border-color: #FF3B30;
}

.us-share-copy.is-copied .us-share-copy-default {
    opacity: 0;
    transform: scale(0.65);
}

.us-share-copy.is-copied .us-share-copy-success {
    position: static;

    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   LINHA DE META + COMPARTILHAMENTO
   ========================================================= */

.us-single-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.us-single-meta-row .us-share-box {
    width: auto;
    flex: 0 0 auto;

    margin: 0;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .us-single-meta-row {
        flex-wrap: wrap;
    }

    .us-single-meta-row .us-share-box {
        width: 100%;

        justify-content: flex-start;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .us-share-box {
        gap: 8px;
    }

    .us-share-button {
        width: 42px;
        min-width: 42px;
        max-width: 42px;

        height: 42px;
        min-height: 42px;
        max-height: 42px;

        flex-basis: 42px;
    }

    .us-share-button svg {
        width: 19px;
        height: 19px;
    }

    .us-share-button::after {
        display: none;
    }

}


/* =========================================================
   ACESSIBILIDADE — REDUZIR ANIMAÇÕES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .us-share-button,
    .us-share-button svg,
    .us-share-button::after,
    .us-share-copy-default,
    .us-share-copy-success {
        transition: none;
    }

}