/* ============================================================
   YardieNews Share — Inline Share Strip
   ============================================================ */

/* Container — sits inside .single-article__meta (flex row) */
.yns-share {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto; /* push to far right of the flex row */
    flex-shrink: 0;
}

.yns-share__label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bn-muted, #888);
    margin-right: 0.2rem;
    white-space: nowrap;
}

/* Base icon button */
.yns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    background: #f4f4f5;
    color: #444;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease,
                border-color 0.18s ease, transform 0.15s ease,
                box-shadow 0.18s ease;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.yns-btn:hover,
.yns-btn:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    text-decoration: none;
    outline: none;
}

/* Brand hover colours */
.yns-btn--x:hover     { background: #000;     border-color: #000;     color: #fff; }
.yns-btn--fb:hover    { background: #1877f2;  border-color: #1877f2;  color: #fff; }
.yns-btn--wa:hover    { background: #25d366;  border-color: #25d366;  color: #fff; }
.yns-btn--copy:hover  { background: #6366f1;  border-color: #6366f1;  color: #fff; }

/* Copy — check icon hidden by default, link icon shown */
.yns-btn--copy .yns-icon--check { display: none; }
.yns-btn--copy .yns-icon--link  { display: block; }

/* Copied state */
.yns-btn--copy.yns-copied {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
    transform: translateY(-3px);
}
.yns-btn--copy.yns-copied .yns-icon--link  { display: none; }
.yns-btn--copy.yns-copied .yns-icon--check { display: block; }

/* Responsive — collapse label on narrow screens */
@media (max-width: 640px) {
    .yns-share__label { display: none; }
    .yns-btn { width: 26px; height: 26px; }
}
