/**
 * Bar bagikan artikel — dipakai single post v2 dan artikel rangkaian.
 *
 * Kelas sengaja berprefiks `share-` (bukan `sp-`) agar tidak beradu dengan
 * aturan lama `.sp-share*` di singlepost/v2.css. Enqueue: inc/enqueue.php.
 */

.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid var(--color-border);
}

.share-bar-title {
    margin: 0;

    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #6b7280;
}

.share-bar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    box-sizing: border-box;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 42px;
    height: 42px;
    padding: 0 13px;

    border: 1px solid var(--color-border);
    border-radius: 10px;

    background: var(--surface);

    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    text-decoration: none;

    color: #374151;

    cursor: pointer;

    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.share-btn:hover,
.share-btn:focus-visible {
    border-color: transparent;

    color: #ffffff;
}

.share-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Warna merek saat hover/fokus */
.share-x:hover,
.share-x:focus-visible {
    background: #0f1419;
}

.share-fb:hover,
.share-fb:focus-visible {
    background: #1877f2;
}

.share-wa:hover,
.share-wa:focus-visible {
    background: #25d366;
}

.share-tg:hover,
.share-tg:focus-visible {
    background: #229ed9;
}

.share-li:hover,
.share-li:focus-visible {
    background: #0a66c2;
}

.share-mail:hover,
.share-mail:focus-visible {
    background: #374151;
}

.share-ig:hover,
.share-ig:focus-visible {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-tt:hover,
.share-tt:focus-visible {
    background: #010101;
}

.share-copy {
    padding: 0 15px;

    font-size: 13px;
    font-weight: 600;
}

.share-copy:hover,
.share-copy:focus-visible {
    border-color: var(--color-primary);

    background: rgba(9, 105, 218, 0.06);

    color: var(--color-primary);
}

.share-copy.is-copied {
    border-color: #1a7f37;

    color: #1a7f37;
}

.share-bar-status {
    flex: 1 0 100%;

    margin: 0;

    font-size: 12.5px;
    line-height: 1.5;

    color: var(--color-muted);
}

.share-bar-status:empty {
    display: none;
}

/* Di dalam kartu artikel rangkaian: garis atas sudah ada di .share-bar,
   jadi hanya jarak yang dirapatkan. */
.ts-article .share-bar {
    margin-top: 30px;
    padding-top: 22px;
}

@media (max-width: 560px) {

    .share-bar {
        gap: 12px 14px;
    }

    .share-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 11px;
        font-size: 14px;
    }

    .share-copy {
        padding: 0 13px;
    }
}
