/*
 * =================================
 *  Social Share Buttons - Style
 *  Appears next to article H1 title
 *  Uses local SVG image files
 * =================================
 */

/* Wrapper that makes H1 row a flex container */
.article-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.article-title-row h1 {
    flex: 1;
    min-width: 0;
}

/* Share buttons container */
.social-share-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-top: 6px;
    /* Align with title baseline visually */
}

/* Individual share button */
.social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
    padding: 0;
    text-decoration: none;
    opacity: 0.5;
}

.social-share-btn:hover {
    opacity: 1;
    transform: scale(1.15);
    background: rgba(0, 0, 0, 0.06);
}

.social-share-btn:active {
    transform: scale(0.95);
}

/* Image inside button */
.social-share-btn img {
    width: 15px;
    height: 15px;
    display: block;
    pointer-events: none;
}

/* Copy link button special states */
.social-share-btn.share-copy.copied {
    opacity: 1;
    background: rgba(46, 204, 113, 0.15);
}

/* Tooltip for copy feedback */
.share-copy-tooltip {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.share-copy-tooltip.visible {
    opacity: 1;
}

.social-share-btn.share-copy {
    position: relative;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .article-title-row {
        flex-direction: column;
        gap: 6px;
    }

    .social-share-bar {
        padding-top: 0;
        gap: 8px;
    }

    .social-share-btn {
        width: 24px;
        height: 24px;
        opacity: 0.6;
    }

    .social-share-btn img {
        width: 14px;
        height: 14px;
    }
}