/* ════════════════════════════════════════════════
   v1.25 — Social Proof Bar
   Pill-style stats: views, likes (interactive), shares (popover), save
   ════════════════════════════════════════════════ */

.act-social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 28px 0;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15,23,42,0.04);
    position: relative;
}

.act-social-proof--compact {
    padding: 8px 12px;
    margin: 16px 0;
}

.act-social-proof__stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 999px;
    cursor: default;
    transition: all 0.15s ease;
    font-size: 14px;
    color: #1E293B;
    line-height: 1;
    user-select: none;
}

button.act-social-proof__stat {
    cursor: pointer;
    font-family: inherit;
}

button.act-social-proof__stat:hover {
    background: #fff;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(15,23,42,0.06);
}

.act-social-proof__icon {
    font-size: 17px;
    line-height: 1;
}

.act-social-proof__num {
    font-weight: 700;
    color: #0F172A;
    font-variant-numeric: tabular-nums;
}

.act-social-proof__label {
    color: #64748B;
    font-size: 13px;
    font-weight: 500;
}

/* Views — non-interactive */
.act-social-proof__stat--views {
    background: #F0F9FF;
    border-color: #BAE6FD;
    color: #0C4A6E;
}

/* Like — interactive, special states */
.act-social-proof__stat--like.is-liked {
    background: #FEE2E2;
    border-color: #FECACA;
    color: #991B1B;
}

.act-social-proof__stat--like.is-liked .act-social-proof__icon {
    animation: act-pulse 0.4s ease;
}

.act-social-proof__stat--like:active {
    transform: scale(0.96);
}

@keyframes act-pulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* +1 floating animation */
.act-social-proof__plus-one {
    position: absolute;
    color: #DC2626;
    font-weight: 800;
    font-size: 16px;
    pointer-events: none;
    animation: act-floatup 0.9s ease forwards;
    z-index: 10;
}

@keyframes act-floatup {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-32px); }
}

/* Share — opens menu */
.act-social-proof__stat--share[aria-expanded="true"] {
    background: #FCD34D;
    border-color: #F59E0B;
    color: #78350F;
}

/* Save — extends saved-items styling */
.act-social-proof__stat--save.is-saved {
    background: #DCFCE7;
    border-color: #BBF7D0;
    color: #166534;
}

.act-social-proof__stat--save.is-saved .act-social-proof__icon::before {
    content: "✓ ";
}

/* Share menu popover */
.act-share-menu {
    position: absolute;
    top: 100%;
    right: 16px;
    margin-top: 6px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.12);
    padding: 6px;
    min-width: 180px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.act-share-menu[hidden] {
    display: none;
}

.act-share-menu > * {
    display: block;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #1E293B;
    text-decoration: none;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}

.act-share-menu > *:hover {
    background: #F1F5F9;
    color: #0F172A;
}

/* Mobile */
@media ( max-width: 600px ) {
    .act-social-proof {
        padding: 12px;
        gap: 6px;
    }
    .act-social-proof__stat {
        padding: 7px 11px;
        font-size: 13px;
        gap: 6px;
    }
    .act-social-proof__icon { font-size: 15px; }
    .act-social-proof__label {
        display: none;  /* hide labels on mobile to save space */
    }
    .act-share-menu {
        right: 8px;
        min-width: 160px;
    }
}

/* Loading state during AJAX */
.act-social-proof__stat[data-loading="1"] {
    opacity: 0.6;
    pointer-events: none;
}
