/* =========================================================
   رادیک وب - استایل بخش آمار و اعداد
   فایل: assets/css/stats.css
   پیشوند: st-
   نسخه: 3.0 - نهایی
   ========================================================= */

/* ═══════════════════════════════════════════════════════════
   ۱. بخش اصلی - تمام عرض
   ═══════════════════════════════════════════════════════════ */
.st-section {
    position: relative;
    padding: 60px 0 55px;            /* ═══ پدینگ افقی صفر ═══ */
    direction: rtl;
    overflow: hidden;
    width: 100%;
    background: linear-gradient(135deg, 
        var(--rw-primary, #2563EB) 0%, 
        var(--rw-secondary, #1E3A8A) 100%);
}

.st-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

.st-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;                 /* ═══ پدینگ افقی اینجا ═══ */
    width: 100%;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   ۲. هدر بخش - وسط‌چین دقیق
   ═══════════════════════════════════════════════════════════ */
.st-header {
    text-align: center;
    margin-bottom: 35px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.st-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: stFadeIn 0.7s ease 0.1s both;
    align-self: center;
}

.st-badge i {
    font-size: 13px;
    color: #fff;
}

.st-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: var(--rw-text);
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: stFadeIn 0.7s ease 0.2s both;
    text-align: center;
    width: 100%;
}

.st-subtitle {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 auto;
    padding: 0;
    line-height: 1.8;
    max-width: 600px;
    text-align: center;
    display: block;
    animation: stFadeIn 0.7s ease 0.3s both;
}

@keyframes stFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════
   ۳. گرید آمار - یک سوم کمتر
   ═══════════════════════════════════════════════════════════ */
.st-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 900px;                /* ═══ یک سوم کمتر از 1300 ═══ */
    margin: 0 auto;                  /* ═══ وسط‌چین ═══ */
    width: 100%;
}

/* ═══════════════════════════════════════════════════════════
   ۴. کارت آمار
   ═══════════════════════════════════════════════════════════ */
.st-card {
    position: relative;
    padding: 26px 16px 22px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    text-align: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    animation: stCardIn 0.7s ease both;
}

.st-card[data-index="0"] { animation-delay: 0.1s; }
.st-card[data-index="1"] { animation-delay: 0.2s; }
.st-card[data-index="2"] { animation-delay: 0.3s; }
.st-card[data-index="3"] { animation-delay: 0.4s; }
.st-card[data-index="4"] { animation-delay: 0.5s; }
.st-card[data-index="5"] { animation-delay: 0.6s; }

@keyframes stCardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.st-card:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-6px);
    box-shadow: 
        0 18px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.08);
}

.st-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(255, 255, 255, 0.4) 0%, 
        transparent 70%);
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
    transition: all 0.6s ease;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.st-card:hover .st-glow {
    opacity: 0.3;
    transform: translateX(-50%) scale(1);
}

/* ═══════════════════════════════════════════════════════════
   ۵. آیکون
   ═══════════════════════════════════════════════════════════ */
.st-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.st-icon i {
    font-size: 24px;
    color: #fff;
    transition: all 0.4s ease;
    line-height: 1;
}

.st-card:hover .st-icon {
    background: #fff;
    transform: rotateY(360deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.st-card:hover .st-icon i {
    color: var(--rw-primary, #2563EB);
}

/* ═══════════════════════════════════════════════════════════
   ۶. عدد
   ═══════════════════════════════════════════════════════════ */
.st-number {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
    line-height: 1;
}

.st-counter {
    display: inline-block;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    line-height: 1;
    transition: all 0.4s ease;
}

.st-card:hover .st-counter {
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   ۷. متن‌ها
   ═══════════════════════════════════════════════════════════ */
.st-card-title {
    position: relative;
    z-index: 2;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.st-desc {
    position: relative;
    z-index: 2;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 11px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.st-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════
   ۸. ریسپانسیو
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .st-section { padding: 50px 0 45px; }
    .st-title { font-size: 30px; }
    .st-grid { gap: 12px; }
    .st-card { padding: 22px 14px 18px; }
    .st-icon { width: 48px; height: 48px; margin-bottom: 14px; }
    .st-icon i { font-size: 20px; }
    .st-counter { font-size: 32px; }
    .st-card-title { font-size: 15px; }
}

@media (max-width: 900px) {
    .st-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 600px) {
    .st-section { padding: 40px 0 35px; }
    .st-container { padding: 0 14px; }
    .st-header { margin-bottom: 25px; }
    .st-title { font-size: 22px; }
    .st-subtitle { font-size: 12px; padding: 0 10px; }
    .st-badge { font-size: 11px; padding: 6px 14px; }
    
    .st-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .st-card { padding: 20px 10px 16px; border-radius: 14px; }
    .st-icon { width: 42px; height: 42px; margin-bottom: 10px; }
    .st-icon i { font-size: 18px; }
    .st-counter { font-size: 28px; }
    .st-card-title { font-size: 13px; margin-bottom: 4px; }
    .st-desc { font-size: 10px; line-height: 1.6; }
}

@media (max-width: 380px) {
    .st-section { padding: 35px 0 30px; }
    .st-container { padding: 0 10px; }
    .st-title { font-size: 18px; }
    .st-grid { gap: 8px; }
    .st-card { padding: 16px 8px 14px; border-radius: 12px; }
    .st-icon { width: 38px; height: 38px; margin-bottom: 8px; }
    .st-icon i { font-size: 16px; }
    .st-counter { font-size: 24px; }
    .st-card-title { font-size: 12px; }
    .st-desc { font-size: 9px; }
}