/* ==========================================
   ✨ ЧИСТЫЕ ЭФФЕКТЫ АВАТАРА (Без "мишеней")
   ========================================== */

/* Базовый сброс для эффектов, чтобы не было лишних рамок */
.avatar-wrapper.effect-steam-spice,
.avatar-wrapper.effect-flame-cook {
    outline: none !important;
}

/* 🌶️ ЭФФЕКТ: АРОМАТНЫЙ ОРЕОЛ (Пар и специи) */
.avatar-wrapper.effect-steam-spice::after {
    content: '🌶️';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 28px;
    z-index: 10;
    animation: float-spice 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes float-spice {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(15deg); }
}

/* 🔥 ЭФФЕКТ: КУЛИНАРНАЯ АУРА (Тёплое свечение шефа) */
.avatar-wrapper.effect-flame-cook {
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.6), 0 0 40px rgba(255, 69, 0, 0.4) !important;
    animation: chef-aura 2s ease-in-out infinite alternate !important;
}

@keyframes chef-aura {
    from { box-shadow: 0 0 15px rgba(255, 165, 0, 0.4), 0 0 30px rgba(255, 69, 0, 0.2) !important; }
    to { box-shadow: 0 0 25px rgba(255, 165, 0, 0.8), 0 0 50px rgba(255, 69, 0, 0.5) !important; }
}

/* 🏅 ЗНАЧОК (Бейдж) поверх аватара */
.avatar-badge-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 28px;
    z-index: 10;
    background: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid #ffffff !important;
}
/* ==========================================
   📐 РАЗМЕРЫ АВАТАРА (sm/md/lg)
   ========================================== */
.avatar-wrapper {
    position: relative;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-wrapper--sm {
    width: 44px;
    height: 44px;
    font-size: 16px;
}
.avatar-wrapper--md {
    width: 80px;
    height: 80px;
    font-size: 28px;
}
.avatar-wrapper--lg {
    width: 120px;
    height: 120px;
    font-size: 42px;
}

.avatar-wrapper .avatar-img,
.avatar-wrapper .avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #D4A574, #A0722D);
}

/* Ссылка-обёртка вокруг аватара */
.avatar-link {
    display: inline-block;
    text-decoration: none;
    line-height: 0;
    flex-shrink: 0;
}

/* ==========================================
   🖼️ РАМКИ (универсальные, работают везде)
   ========================================== */
.avatar-wrapper.frame-default {
    border: 3px solid #D4A574;
    box-shadow: 0 0 15px rgba(212, 165, 116, 0.5);
}
.avatar-wrapper.frame-ognennaya {
    padding: 3px;
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #ff4500, #ff0000);
    background-size: 400% 400%;
    animation: fire-border 3s ease infinite;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.6), 0 0 30px rgba(255, 140, 0, 0.4);
    border: none !important;
}
.avatar-wrapper.frame-brilliant {
    padding: 3px;
    background: linear-gradient(135deg, #e0f7fa, #ffffff, #b2ebf2, #ffffff);
    background-size: 200% 200%;
    animation: diamond-shine 4s linear infinite;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.8);
    border: 2px solid #ffffff !important;
}

@keyframes fire-border {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes diamond-shine {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==========================================
   🌶️ ЭФФЕКТЫ — адаптация под маленькие аватары
   ========================================== */
.avatar-wrapper--sm.effect-steam-spice::after {
    font-size: 14px;
    top: -3px;
    right: -3px;
}
.avatar-wrapper--sm .avatar-badge-icon {
    width: 18px;
    height: 18px;
    font-size: 12px;
    border-width: 1px;
}
.avatar-wrapper--md .avatar-badge-icon {
    width: 26px;
    height: 26px;
    font-size: 18px;
}
