/**
 * ===================================
 * GunCult UI Kit - Avatars
 * ===================================
 * 
 * Утилиты для аватаров разных размеров
 */

/* Базовый аватар */
.gc-avatar {
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* ===================================
   Avatar Stack (наложение аватарок)
   =================================== */

.gc-avatar-stack {
    display: flex;
    align-items: center;
    padding-left: var(--spacing-xs);
}

.gc-avatar-stack img {
    margin-left: calc(var(--spacing-sm) * -1);
    border: 2px solid var(--bg-content-main);
    transition: transform var(--transition-fast);
}

.gc-avatar-stack img:first-child {
    margin-left: 0;
}

.gc-avatar-stack img:hover {
    transform: scale(1.1);
    z-index: 10;
    position: relative;
}

/* ===================================
   Avatar Stack — статичный (без ховера)
   Используется там, где стек декоративный
   =================================== */

.gc-avatar-stack-static {
    display: flex;
    align-items: center;
    padding-left: var(--spacing-xs);
}

.gc-avatar-stack-static > * {
    margin-left: calc(var(--spacing-sm) * -1);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    transition: none;
    pointer-events: none;
}

.gc-avatar-stack-static > *:first-child {
    margin-left: 0;
}

.gc-avatar-stack-static > *:hover {
    transform: none !important;
    z-index: auto;
}

/* ===================================
   Размеры аватаров
   =================================== */
.gc-avatar-24 {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.gc-avatar-28 {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.gc-avatar-32 {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.gc-avatar-36 {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.gc-avatar-40 {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.gc-avatar-48 {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.gc-avatar-56 {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.gc-avatar-64 {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.gc-avatar-80 {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

/* Квадратные аватары (без скругления) */
.gc-avatar-square {
    border-radius: var(--radius-md);
}

/* Аватары с рамкой */
.gc-avatar-bordered {
    border: 2px solid var(--ui-border);
}

.gc-community-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
}

/* Адаптивность */
@media (max-width: 576px) {
    .gc-avatar-80 {
        width: 60px;
        height: 60px;
    }
    
    .gc-avatar-64 {
        width: 56px;
        height: 56px;
    }
    
    .gc-avatar-56 {
        width: 48px;
        height: 48px;
    }
}

/* Маркер удалённого участника у аватара */
.gc-avatar-status-wrap {
    position: relative;
    display: inline-flex;
}

.gc-avatar-status-dot {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--danger-color);
    border: 2px solid var(--bg-content-main);
}

