/* ============================================================
   Blog post share row (X, Telegram, LinkedIn, email, copy link,
   native mobile share). Markup lives in pages/blog-post.html;
   behavior in js/pages/blog-share.js.

   Colors are dashboard tokens throughout, so light mode comes
   free from theme-light.css, and the blanket no-motion rule
   covers the hover transitions.
   ============================================================ */

/* The section ships hidden and is revealed by blog-share.js once the
   hrefs are filled; both [hidden] re-asserts below are load-bearing
   (the author display values would otherwise beat the UA hidden rule). */
.bp-share[hidden] {
    display: none;
}

.bp-share {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border-default);
}

.bp-share-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.bp-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border-default);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.bp-share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.bp-share-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-focus);
    background: var(--bg-highlight);
}

.bp-share-btn[hidden] {
    display: none;
}

/* Copy button: link icon swaps to a check while "copied" is active. */
.bp-share-btn .bp-icon-check { display: none; }

.bp-share-btn.bp-share-copied {
    color: var(--positive);
    border-color: var(--positive-muted);
}

.bp-share-btn.bp-share-copied .bp-icon-link { display: none; }
.bp-share-btn.bp-share-copied .bp-icon-check { display: block; }
