/* ============================================
   استایل‌های بخش آمار - نسخه باریک و جمع‌وجور
   ============================================ */

/* بخش اصلی */
.stats-section {
    background: rgba(26, 26, 46, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 10px 16px 12px;
    margin: 16px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

.stats-section:hover {
    border-color: rgba(233, 69, 96, 0.12);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* هدر */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    flex-wrap: wrap;
    gap: 4px;
}

.stats-title {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'bakhb', sans-serif;
}

/* بخش تاریخ بروزرسانی */
.stats-update {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.stats-badge {
    background: rgba(233, 69, 96, 0.1);
    color: #e94560;
    font-size: 0.5rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 16px;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.stats-date {
    color: #6a6a80;
    font-size: 0.5rem;
    font-family: 'bakhn', sans-serif;
    direction: ltr;
    display: inline-block;
}

/* گرید کارت‌ها - وسط‌چین */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    justify-content: center;
    align-items: center;
}

/* کارت - حالت افقی با آیکون در کنار متن */
.stat-card {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 4px 12px 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

/* آیکون در کنار متن */
.stat-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    flex-shrink: 0;
}

/* اطلاعات در یک خط با اندازه فونت یکسان */
.stat-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-number {
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 400;
    font-family: 'bakhb', sans-serif;
    line-height: 1.2;
}

.stat-label {
    color: #8a8aa0;
    font-size: 0.75rem;
    font-family: 'bakhn', sans-serif;
}

/* ============================================
   واکنش‌گرایی
   ============================================ */
@media (max-width: 768px) {
    .stats-section {
        padding: 8px 12px 10px;
        border-radius: 10px;
        margin: 12px 0;
    }
    
    .stats-grid {
        gap: 4px 10px;
    }
    
    .stat-card {
        padding: 3px 10px 3px 6px;
        border-radius: 6px;
        gap: 4px;
    }
    
    .stat-number {
        font-size: 0.7rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-icon {
        width: 18px;
        height: 18px;
        font-size: 0.55rem;
    }
    
    .stats-header {
        margin-bottom: 6px;
        padding-bottom: 4px;
    }
    
    .stats-title {
        font-size: 0.7rem;
    }
    
    .stats-date {
        font-size: 0.45rem;
    }
    
    .stats-badge {
        font-size: 0.4rem;
        padding: 1px 6px;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 6px 10px 8px;
        border-radius: 8px;
        margin: 8px 0;
    }
    
    .stats-grid {
        gap: 3px 8px;
    }
    
    .stat-card {
        padding: 2px 8px 2px 4px;
        border-radius: 4px;
        gap: 3px;
    }
    
    .stat-number {
        font-size: 0.65rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-icon {
        width: 16px;
        height: 16px;
        font-size: 0.5rem;
    }
    
    .stats-title {
        font-size: 0.6rem;
    }
    
    .stats-badge {
        font-size: 0.35rem;
        padding: 1px 4px;
    }
    
    .stats-date {
        font-size: 0.4rem;
    }
}