/* Social Proof Plugin — social-proof.css
   Inherits theme colors automatically via currentColor & inherit.
   No hard-coded brand colors. */

.sp-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    padding: 10px 16px;
    margin: 18px 0;
    border: 1px solid currentColor;
    border-radius: 6px;
    opacity: 0.85;
    font-size: 0.875em;
    line-height: 1;
}

.sp-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
}

/* Buttons reset */
.sp-btn {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.sp-btn:hover {
    opacity: 1;
    text-decoration: underline;
}

.sp-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 3px;
}

/* Active / clicked state */
.sp-btn.sp-active {
    font-weight: 600;
}

/* Icons */
.sp-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    vertical-align: middle;
}

.sp-count {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.sp-label {
    font-weight: 400;
    opacity: 0.75;
}

/* Bump animation on click */
@keyframes sp-bump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}

.sp-bump {
    display: inline-block;
    animation: sp-bump 0.25s ease;
}

/* ── Share picker modal ───────────────────────────────────── */
#sp-picker {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: sp-fade-in 0.15s ease;
}

@keyframes sp-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.sp-picker-box {
    position: relative;
    background: #fff;
    color: #111;
    border-radius: 10px;
    padding: 28px 32px 24px;
    min-width: 260px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    text-align: center;
    animation: sp-slide-up 0.18s ease;
}

@keyframes sp-slide-up {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.sp-picker-title {
    margin: 0 0 18px;
    font-size: 1em;
    font-weight: 600;
    color: #111;
}

.sp-picker-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.sp-picker-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
}

.sp-picker-btn:hover {
    opacity: 0.85;
    text-decoration: none;
}

.sp-picker-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sp-picker-fb {
    background: #1877f2;
    color: #fff;
}

.sp-picker-tw {
    background: #000;
    color: #fff;
}

.sp-picker-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    color: #888;
    padding: 0;
}

.sp-picker-close:hover {
    color: #111;
}
