/**
 * Online Users Counter - Styles
 * چند استایل مختلف برای شمارنده
 */

/* ═══════════════════════════════════════════════════════
   پایه مشترک
   ═══════════════════════════════════════════════════════ */
.ouc-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
    font-family: inherit;
    line-height: 1;
}

.ouc-pulse {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: ouc-pulse 2s ease-in-out infinite;
}

@keyframes ouc-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
}

.ouc-count {
    font-weight: 700;
}

.ouc-label {
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════
   استایل پیش‌فرض
   ═══════════════════════════════════════════════════════ */
.ouc-style-default {
    position: fixed;
    bottom: 0px;
    background: #6f6f6f24;
    z-index: 1000;
    width: 210px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
    right: 0;
    color: #919191;
    font-size: 12px;
    border-radius: 30px 0 0 0;
}

.ouc-style-default:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.ouc-style-default .ouc-count {
    font-size: 16px;
}

/* ═══════════════════════════════════════════════════════
   استایل مینیمال
   ═══════════════════════════════════════════════════════ */
.ouc-style-minimal {
    padding: 6px 12px;
    background: transparent;
    color: inherit;
    font-size: 13px;
}

.ouc-style-minimal .ouc-pulse {
    width: 8px;
    height: 8px;
}

.ouc-style-minimal .ouc-count {
    font-size: 14px;
    color: #22c55e;
}

/* ═══════════════════════════════════════════════════════
   استایل نشان (Badge)
   ═══════════════════════════════════════════════════════ */
.ouc-style-badge {
    padding: 8px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    color: #166534;
    font-size: 13px;
}

.ouc-style-badge .ouc-pulse {
    background: #16a34a;
}

.ouc-style-badge .ouc-count {
    font-size: 15px;
    color: #15803d;
}

/* ═══════════════════════════════════════════════════════
   استایل تیره
   ═══════════════════════════════════════════════════════ */
.ouc-style-dark {
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ouc-style-dark .ouc-count {
    font-size: 16px;
    color: #4ade80;
}

/* ═══════════════════════════════════════════════════════
   استایل گلس (شیشه‌ای)
   ═══════════════════════════════════════════════════════ */
.ouc-style-glass {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: inherit;
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ═══════════════════════════════════════════════════════
   استایل فلت
   ═══════════════════════════════════════════════════════ */
.ouc-style-flat {
    padding: 10px 16px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
}

.ouc-style-flat .ouc-count {
    color: #059669;
}

/* ═══════════════════════════════════════════════════════
   استایل اوت‌لاین
   ═══════════════════════════════════════════════════════ */
.ouc-style-outline {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid #22c55e;
    border-radius: 50px;
    color: inherit;
    font-size: 14px;
}

.ouc-style-outline .ouc-count {
    color: #16a34a;
}

/* ═══════════════════════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .ouc-counter {
        font-size: 12px;
        padding: 8px 12px !important;
    }
    
    .ouc-count {
        font-size: 13px !important;
    }
    
    .ouc-pulse {
        width: 8px;
        height: 8px;
    }
}

/* ═══════════════════════════════════════════════════════
   انیمیشن ورود
   ═══════════════════════════════════════════════════════ */
.ouc-counter {
    animation: ouc-fadeIn 0.5s ease-out;
}

@keyframes ouc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════
   حالت RTL
   ═══════════════════════════════════════════════════════ */
[dir="rtl"] .ouc-counter,
.rtl .ouc-counter {
    direction: rtl;
}

/* ═══════════════════════════════════════════════════════
   سازگاری با المنتور
   ═══════════════════════════════════════════════════════ */
.elementor-widget-container .ouc-counter {
    justify-content: center;
}