/* ═══════════════════════════════════════════
 * Nexbuy Social Proof — Live Activity Feed
 * ═══════════════════════════════════════════ */

.nsp-feed {
    padding: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ─── Header ─── */
.nsp-feed__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.nsp-feed__title {
    font-size: 26px;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.nsp-feed__title-dot {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    display: inline-block;
    animation: nsp-feed-pulse 2s ease-in-out infinite;
}

@keyframes nsp-feed-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .5; transform: scale(.8); }
}

.nsp-feed__subtitle {
    font-size: 14px;
    color: #64748b;
}

.nsp-feed__count {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* ─── Grid ─── */
.nsp-feed__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 900px) {
    .nsp-feed__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .nsp-feed__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Card ─── */
.nsp-feed__card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: rgba(17, 24, 39, .65);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 14px;
    transition: background .2s, border-color .2s;
}

.nsp-feed__card:hover {
    background: rgba(17, 24, 39, .85);
    border-color: rgba(255, 255, 255, .1);
}

/* Entrance animation */
.nsp-feed__card--enter {
    animation: nsp-feed-card-in .45s ease-out forwards;
}

@keyframes nsp-feed-card-in {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── Card icon ─── */
.nsp-feed__card-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nsp-feed__card-icon svg {
    width: 26px;
    height: 26px;
}

/* ─── Card body ─── */
.nsp-feed__card-body {
    flex: 1;
    min-width: 0;
}

.nsp-feed__card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.nsp-feed__card-name {
    font-size: 15px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
}

.nsp-feed__card-time {
    font-size: 12px;
    color: #64748b;
    white-space: nowrap;
}

.nsp-feed__card-message {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 3px;
}

.nsp-feed__card-location {
    font-size: 12px;
    color: #64748b;
}

/* ─── Empty state ─── */
.nsp-feed__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 16px;
    color: #475569;
    font-size: 14px;
}

.nsp-feed__empty-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3b82f6;
    margin: 0 3px;
    animation: nsp-feed-dot-bounce 1.4s ease-in-out infinite;
}

.nsp-feed__empty-dot:nth-child(2) { animation-delay: .2s; }
.nsp-feed__empty-dot:nth-child(3) { animation-delay: .4s; }

@keyframes nsp-feed-dot-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40%           { transform: translateY(-6px); }
}
