/* ============================================================
   Social Share Buttons — Blog Posts
   Desktop: floating vertical bar left of article content
   Mobile: horizontal bar below article title
   ============================================================ */

/* Desktop: floating vertical bar */
.blog-share {
    position: fixed;
    top: 50%;
    left: calc(50% - 380px - 56px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 100;
}

/* Desktop only — hide on mobile */
@media (max-width: 900px) {
    .blog-share { display: none; }
}

/* Shared button base */
.blog-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--ink, #0a0a0f);
    color: var(--cream, #faf9f6);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
    position: relative;
}

.blog-share-btn:hover {
    transform: scale(1.08);
    opacity: 0.85;
    background: #1a1a22;
}

.blog-share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    display: block;
}

/* Copy link tooltip */
.blog-share-btn-copy .blog-share-tooltip {
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--ink, #0a0a0f);
    color: var(--cream, #faf9f6);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.blog-share-btn-copy .blog-share-tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: var(--ink, #0a0a0f);
}

.blog-share-btn-copy.copied .blog-share-tooltip {
    opacity: 1;
}

.blog-share-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.1);
}

/* Mobile: horizontal bar below article title */
.blog-share-mobile {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line, #d4cfc8);
    border-bottom: 1px solid var(--line, #d4cfc8);
}

/* Mobile only — hide on desktop */
@media (max-width: 900px) {
    .blog-share-mobile { display: flex; }
}

/* Mobile share label */
.blog-share-mobile-label {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted, #6b6560);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    margin-right: 4px;
}

/* Mobile button base */
.blog-share-mbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ink, #0a0a0f);
    color: var(--cream, #faf9f6);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    position: relative;
    flex-shrink: 0;
}

.blog-share-mbtn:hover {
    transform: scale(1.06);
    opacity: 0.85;
}

.blog-share-mbtn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

/* Mobile copy tooltip */
.blog-share-mbtn-copy .blog-share-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--ink, #0a0a0f);
    color: var(--cream, #faf9f6);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.blog-share-mbtn-copy.copied .blog-share-tooltip {
    opacity: 1;
}

.blog-share-mbtn-copy .blog-share-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ink, #0a0a0f);
}