/**
 * Modern Live Viewing Visitors Design
 * Clean, sleek design for real-time visitor counter
 *
 * @package Minimog Child Theme
 */

/* Modern live visitors container */
.live-viewing-visitors {
    display: block !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 16px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    backdrop-filter: blur(8px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    width: fit-content !important;
    /* margin: 0 0 16px 0 !important; */
}

/* Subtle background animation */
.live-viewing-visitors::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}

.live-viewing-visitors:hover::after {
    opacity: 1 !important;
}

/* Eye icon styling */
.live-viewing-visitors .icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 18px !important;
    height: 18px !important;
    color: #3b82f6 !important;
    flex-shrink: 0 !important;
    position: relative !important;
    align-self: center !important;
    top: 0 !important;
    left: auto !important;
}

/* Enhanced pulse animation */
.live-viewing-visitors .icon.minimog-animate-pulse {
    animation: liveVisitorsPulse 2s infinite ease-in-out !important;
}

@keyframes liveVisitorsPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Text container */
.live-viewing-visitors .text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    line-height: 1.4 !important;
}

/* Count number styling */
.live-viewing-visitors .count {
    font-weight: 700 !important;
    color: #1e40af !important;
    font-size: 13px !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
}

/* Subtle glow effect on count */
.live-viewing-visitors .count::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    /* background: linear-gradient(135deg, #3b82f6, #10b981) !important; */
    border-radius: 4px !important;
    opacity: 0.1 !important;
    z-index: -1 !important;
}

/* Hover effects */
.live-viewing-visitors:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%) !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .live-viewing-visitors {
        padding: 6px 12px !important;
        font-size: 12px !important;
        gap: 6px !important;
        border-radius: 16px !important;
    }

    .live-viewing-visitors .icon {
        width: 16px !important;
        height: 16px !important;
    }

    .live-viewing-visitors .text {
        font-size: 12px !important;
        gap: 3px !important;
    }

    .live-viewing-visitors .count {
        font-size: 12px !important;
    }
}
