/* =============================================
   Smart Share — Stylesheet
   ============================================= */

.smart-share-wrap {
    --ss-radius: 8px;
    --ss-gap: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ss-gap);
    margin: 24px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.smart-share-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}

/* ── Buttons ── */
.smart-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ss-gap);
}

.ss-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--ss-radius);
    background-color: var(--ss-color);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: none;
    transition: opacity .18s ease, transform .15s ease, box-shadow .18s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

.ss-btn:hover {
    opacity: .88;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

.ss-btn:active {
    transform: translateY(0);
    opacity: 1;
}

/* ── Icon size ── */
.ss-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ss-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.ss-text {
    display: inline;
}

/* ── Tooltip for copy ── */
.ss-copy-btn {
    position: relative;
}

.ss-copy-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
    z-index: 9999;
}

.ss-copy-btn[data-tooltip]::after {
    opacity: 1;
}

/* ── Sticky bar ── */
.ss-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    margin: 0;
    padding: 10px 20px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .ss-btn {
        padding: 8px 10px;
    }
    .ss-text {
        display: none; /* icon-only on very small screens */
    }
    .ss-icon svg {
        width: 18px;
        height: 18px;
    }
    .ss-sticky {
        padding: 8px 12px;
    }
}
