/*
 * Viewing Badge Styles
 * Styles for social proof "X people viewing" badges
 */

/* ==================== BADGE CONTAINER ==================== */

.viewing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;

    /* Colors (switched to green theme) */
    background: rgba(40, 167, 69, 0.08); /* success green base */
    border: 1px solid rgba(40, 167, 69, 0.25);
    color: #28a745;

    /* Typography */
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;

    /* Styling */
    border-radius: 16px;

    /* Transitions */
    transition: all 0.3s ease;
}

/* Hover effect (optional) */
.viewing-badge:hover {
    background: rgba(40, 167, 69, 0.12);
    border-color: rgba(40, 167, 69, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.15);
}

/* ==================== ICON ==================== */

.viewing-badge .viewing-icon {
    font-size: 0.5rem;
    color: #28a745;
}

/* Pulse animation for icon */
.viewing-badge .viewing-icon.pulse {
    animation: viewing-pulse 2s ease-in-out infinite;
}

@keyframes viewing-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

/* ==================== TEXT ==================== */

.viewing-badge .viewing-text {
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

/* ==================== ANIMATIONS ==================== */

/* Fade in animation when badge appears */
.viewing-badge.animate-fade-in {
    animation: viewing-fade-in 0.5s ease-in;
}

@keyframes viewing-fade-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */

/* Mobile adjustments */
@media (max-width: 576px) {
    .viewing-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
        gap: 5px;
    }
    
    .viewing-badge .viewing-icon {
        font-size: 0.45rem;
    }
}

/* ==================== DARK MODE (OPTIONAL) ==================== */

/* Uncomment if you want dark mode support */
/*
@media (prefers-color-scheme: dark) {
    .viewing-badge {
        background: rgba(220, 53, 69, 0.15);
        border-color: rgba(220, 53, 69, 0.4);
        color: #ff6b7a;
    }
    
    .viewing-badge:hover {
        background: rgba(220, 53, 69, 0.2);
        border-color: rgba(220, 53, 69, 0.5);
    }
    
    .viewing-badge .viewing-icon {
        color: #ff6b7a;
    }
}
*/

/* ==================== VARIANTS (OPTIONAL) ==================== */

/* Trending variant (for high viewer count) */
.viewing-badge.trending {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ff9800;
}

.viewing-badge.trending .viewing-icon {
    color: #ff9800;
}

/* Success variant */
.viewing-badge.success {
    background: rgba(40, 167, 69, 0.08);
    border-color: rgba(40, 167, 69, 0.25);
    color: #28a745;
}

.viewing-badge.success .viewing-icon {
    color: #28a745;
}

/* Info variant */
.viewing-badge.info {
    background: rgba(23, 162, 184, 0.08);
    border-color: rgba(23, 162, 184, 0.25);
    color: #17a2b8;
}

.viewing-badge.info .viewing-icon {
    color: #17a2b8;
}
