/* ============================================================
   Listing Viewers Counter – styles v1.3.0
   Matches zoospace.bg / petslist orange (#f47c20) palette
   ============================================================ */

/* ── Badge base ──────────────────────────────────────────────
   Shared defaults for both contexts
   ─────────────────────────────────────────────────────────── */
.lvc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 400;
    color: #b85e10;
    background: #fff5ee;
    border: 1px solid #f9cfa8;
    border-radius: 5px;
    padding: 5px 11px 5px 8px;
    line-height: 1.4;
    white-space: nowrap;
    user-select: none;
    box-sizing: border-box;
}

/* ── Single listing page ─────────────────────────────────────
   Displayed as a full-width info row between .meta-list
   and the accordion content block.
   ─────────────────────────────────────────────────────────── */
.lvc-badge--single {
    display: flex;
    width: 100%;
    font-size: 13.5px;
    font-weight: 500;
    color: #c0601a;
    background: #fff5ee;
    border-color: #f5c49a;
    border-radius: 6px;
    padding: 8px 14px 8px 10px;
    margin-top: 10px;
    margin-bottom: 2px;
}

/* ── Listing card (archive / search) ─────────────────────────
   Compact inline badge inside the card body.
   ─────────────────────────────────────────────────────────── */
.lvc-badge--card {
    display: inline-flex;
    font-size: 11.5px;
    color: #b85e10;
    background: #fff5ee;
    border-color: #f9cfa8;
    border-radius: 4px;
    padding: 3px 8px 3px 6px;
    margin-top: 6px;
}

/* ── Eye icon ────────────────────────────────────────────────  */
.lvc-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #f47c20;
    opacity: 0.9;
}

.lvc-badge--single .lvc-icon {
    width: 16px;
    height: 16px;
}

/* ── Animated pulse dot ──────────────────────────────────────  */
.lvc-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f47c20;
    flex-shrink: 0;
    position: relative;
    animation: lvc-pulse-anim 2.2s infinite ease-in-out;
}

.lvc-pulse::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f47c20;
    animation: lvc-ripple 2.2s infinite ease-out;
}

@keyframes lvc-pulse-anim {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

@keyframes lvc-ripple {
    0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.6; }
    100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
}

/* ── Count number ────────────────────────────────────────────  */
.lvc-count {
    font-weight: 700;
    color: #f47c20;
}

/* ── Text ────────────────────────────────────────────────────  */
.lvc-text {
    line-height: 1.35;
}

/* ── Smooth ±1 counter animation (Item 4) ────────────────────
   The badge gets a direction class for 300 ms while the digit
   fades out (opacity 0.2) then snaps to the new value.
   ─────────────────────────────────────────────────────────── */
@keyframes lvc-slide-up {
    from { transform: translateY(4px);  opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes lvc-slide-down {
    from { transform: translateY(-4px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.lvc-counting-up .lvc-count,
.lvc-counting-down .lvc-count {
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

/* After class is removed, re-entering value slides in */
.lvc-badge:not(.lvc-counting-up):not(.lvc-counting-down) .lvc-count {
    animation: lvc-slide-up 0.28s ease-out;
}

/* ── "🔥 Популярно" badge on archive cards (Item 5) ─────────  */
.lvc-popular {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f47c20;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 6px rgba(244, 124, 32, 0.35);
}

/* ── Stats row – flex wrapper for live-viewers + daily-views + saved-count ──  */
.lvc-stats-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 6px 0 10px;
}

/* When live-viewers badge is inside the stats row, keep it inline */
.lvc-stats-row .lvc-badge--single {
    display: inline-flex;
    width: auto;
    flex: 0 1 auto;
    margin: 0;
    font-size: 13px;
    padding: 5px 11px 5px 8px;
}

/* ── "📊 X пъти разгледана днес" (Item 7) ───────────────────  */
.lvc-daily-views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #f0f5ff 0%, #e8eeff 100%);
    border: 1px solid #c5d3f0;
    border-radius: 20px;
    padding: 5px 14px 5px 10px;
    font-size: 13px;
    color: #3a5aad;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
    box-shadow: 0 1px 4px rgba(58, 90, 173, 0.10);
    transition: box-shadow 0.2s;
}

.lvc-daily-views:hover {
    box-shadow: 0 2px 8px rgba(58, 90, 173, 0.18);
}

.lvc-daily-views strong {
    color: #1e3a8a;
    font-weight: 700;
    font-size: 14px;
}

/* ── "❤️ X запазили" saved count (Item 8) ───────────────────  */
.lvc-saved-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #fff0f2 0%, #ffe4e8 100%);
    border: 1px solid #f5b8c0;
    border-radius: 20px;
    padding: 5px 14px 5px 10px;
    font-size: 13px;
    color: #c0392b;
    font-weight: 600;
    margin: 0;
    vertical-align: middle;
    box-shadow: 0 1px 4px rgba(192, 57, 43, 0.10);
    transition: box-shadow 0.2s;
}

.lvc-saved-count:hover {
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.18);
}
