/* ==========================================================================
   USER_CARD_CUSTOM.CSS - РАСШИРЕННАЯ ВЕРСИЯ (220px)
   ========================================================================== */

/* 1. ОСНОВНОЙ КОНТЕЙНЕР (ПК) */
.topic-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 25px 15px !important; /* Увеличил внутренние отступы */
    width: 220px !important;        /* Сделал шире (было 200px) */
    background: var(--bg-card) !important;
    border-right: 1px solid var(--border-color) !important;
    box-sizing: border-box !important;
}

.user-card-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

/* 2. НИКНЕЙМ И СТАТУС */
.user-name-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
    width: 100% !important;
}

.user-name-wrapper .user-name {
    font-size: 18px !important; /* Чуть крупнее ник */
    font-weight: 900 !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important; /* Если ник ну очень длинный */
}

.status-dot {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid var(--bg-card) !important;
    flex-shrink: 0 !important;
}
.status-online { background: #22c55e !important; box-shadow: 0 0 10px rgba(34, 197, 94, 0.5); }
.status-offline { background: #64748b !important; }

/* 3. БЕЙДЖ РОЛИ */
.user-group-badge {
    padding: 5px 12px !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    margin-bottom: 18px !important;
    color: #fff !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

/* 4. АВАТАРКА */
.user-avatar {
    /* Берем размер из админки */
    width: var(--avatar-size-topic) !important; 
    height: var(--avatar-size-topic) !important;
    position: relative;
    margin-bottom: 20px;
}

.avatar-img {
    width: 100% !important;
    height: 100% !important;
    /* Берем форму из админки */
    border-radius: var(--avatar-radius) !important; 
    object-fit: cover !important;
    border: 4px solid var(--border-color) !important;
    transition: all 0.3s ease !important;
}

/* 5. ЗВАНИЕ */
.user-rank-text {
    font-size: 14px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    width: 100% !important;
}

/* 6. СТАТИСТИКА */
.user-stats-list {
    width: 100% !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.stat-row {
    display: flex !important;
    justify-content: space-between !important;
    font-size: 13px !important; /* Увеличил шрифт статов */
    font-weight: 600 !important;
}

.stat-label { color: var(--text-muted) !important; }
.stat-value { color: var(--text-main) !important; font-weight: 800 !important; }

/* 7. МОБИЛКА (Остается компактной) */
@media screen and (max-width: 768px) {
    .topic-card {
        width: 100% !important;
        flex-direction: row !important;
        padding: 15px !important;
    }
    .user-avatar {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0 !important;
    }
}