/**
 * FurryNestLab Module R1: Real-Time PDP Live Viewers & Low-Stock Urgency Styling
 */

.fnl-pdp-urgency-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 14px 0 16px 0;
    box-shadow: 0 1px 3px rgba(245, 158, 11, 0.08);
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-family: inherit;
    box-sizing: border-box;
}

/* Row 1: Live Active Viewers */
.fnl-urgency-viewers-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #9a3412;
    line-height: 1.4;
}

.fnl-pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    flex-shrink: 0;
}

.fnl-pulse-dot::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.4);
    animation: fnlPulseGlow 1.8s infinite ease-out;
}

@keyframes fnlPulseGlow {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.fnl-urgency-text {
    font-size: 13px;
    color: #7c2d12;
}

.fnl-viewers-count {
    font-weight: 700;
    color: #9a3412;
    font-variant-numeric: tabular-nums;
    display: inline-block;
    transition: transform 0.25s ease-out, color 0.25s ease;
}

.fnl-viewers-count.is-updating {
    transform: scale(1.15);
    color: #ea580c;
}

/* Row 2: Limited Stock Scarcity Bar */
.fnl-urgency-stock-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fnl-stock-label-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.3;
}

.fnl-stock-badge {
    background: #fee2e2;
    color: #b91c1c;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid #fecaca;
}

.fnl-stock-text {
    color: #475569;
    font-size: 12px;
}

.fnl-stock-text strong {
    color: #b91c1c;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.fnl-stock-bar-track {
    width: 100%;
    height: 6px;
    background: #fde68a;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.fnl-stock-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.fnl-stock-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    animation: fnlShimmer 2.4s infinite;
}

@keyframes fnlShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Mobile Responsiveness */
@media (max-width: 680px) {
    .fnl-pdp-urgency-box {
        padding: 10px 14px;
        margin: 10px 0 14px 0;
        border-radius: 10px;
    }

    .fnl-urgency-viewers-row {
        font-size: 12px;
    }

    .fnl-stock-label-group {
        font-size: 11.5px;
        gap: 6px;
    }

    .fnl-stock-badge {
        font-size: 9.5px;
        padding: 1.5px 5px;
    }
}
