/* =====================================================
   عدادات الزوار الظاهرة — منصة الأوامر الذكية
   counters.css v1.0
   ===================================================== */

/* ===== شريط الإحصاءات العام ===== */
.content-stats-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 10px 0 4px;
}

.cstat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted, #64748b);
    transition: color 0.2s;
}

.cstat-icon {
    font-size: 13px;
    line-height: 1;
}

.cstat-num {
    font-weight: 700;
    color: var(--text-secondary, #94a3b8);
}

.cstat:hover { color: var(--text-primary, #f1f5f9); }

/* ===== عداد المشاهدات الصغير (في البطاقات) ===== */
.card-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.card-views-badge .icon { font-size: 11px; }

/* ===== شريط التقييم بالنجوم ===== */
.inline-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.inline-rating .stars {
    color: #fbbf24;
    font-size: 12px;
    letter-spacing: 1px;
}

.inline-rating .rating-val {
    font-size: 12px;
    font-weight: 700;
    color: #fbbf24;
}

.inline-rating .rating-cnt {
    font-size: 11px;
    color: #64748b;
}

/* ===== زر المفضلة المحسّن ===== */
.fav-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.fav-btn:hover {
    border-color: rgba(251,191,36,0.4);
    color: #fbbf24;
    background: rgba(251,191,36,0.06);
}

.fav-btn.active {
    border-color: rgba(251,191,36,0.5);
    color: #fbbf24;
    background: rgba(251,191,36,0.08);
}

.fav-btn .fav-count {
    font-weight: 700;
}

/* ===== شريط إحصاءات صفحة الأمر (أعلى الصفحة) ===== */
.prompt-stats-enhanced {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin: 16px 0;
}

.pstat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted, #64748b);
}

.pstat-item .pstat-icon { font-size: 15px; }
.pstat-item .pstat-val { font-weight: 700; color: var(--text-secondary, #94a3b8); }

/* ===== نجوم التقييم التفاعلية ===== */
.star-rating-interactive {
    display: inline-flex;
    gap: 4px;
    cursor: pointer;
}

.star-rating-interactive .star {
    font-size: 22px;
    color: rgba(255,255,255,0.15);
    transition: all 0.15s;
    line-height: 1;
}

.star-rating-interactive .star.active,
.star-rating-interactive .star:hover,
.star-rating-interactive:hover .star {
    color: #fbbf24;
    transform: scale(1.1);
}

.star-rating-interactive .star:hover ~ .star {
    color: rgba(255,255,255,0.15);
    transform: scale(1);
}

/* ===== شريط إحصاءات الأداة ===== */
.tool-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.tool-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 11px;
    color: #64748b;
}

/* ===== عداد المشاهدات المتحرك ===== */
@keyframes countUp {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.views-updated {
    animation: countUp 0.3s ease;
}

/* ===== شريط إحصاءات المقال ===== */
.article-meta-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #64748b;
    margin: 8px 0;
}

.article-meta-stats span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ===== شريط إحصاءات المساعد ===== */
.assistant-stats-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 8px;
}

.asst-stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #475569;
}

.asst-stat strong { color: #94a3b8; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .content-stats-bar { gap: 10px; }
    .prompt-stats-enhanced { gap: 12px; }
    .cstat { font-size: 11px; }
    .pstat-item { font-size: 12px; }
}
