/* ================================== */
/* ПРОФИЛЬ: РАСШИРЕННАЯ АВАТАРКА      */
/* ================================== */

/* Оверлей полноэкранной аватарки */
.avatar-expanded-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay-bg);
    backdrop-filter: blur(12px);
    z-index: calc(var(--z-modal) + 2000);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn var(--animation-duration) ease;
}

.avatar-expanded-image {
    width: min(80vw, 80vh);
    height: min(80vw, 80vh);
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(min(80vw, 80vh) * 0.3);
    font-weight: 600;
    color: white;
    box-shadow: var(--shadow-xl);
    cursor: pointer;
}

.avatar-expanded-hint {
    margin-top: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    animation: fadeSlideUp var(--animation-duration-slow) ease;
}

/* Расширенный режим аватарки внутри модалки (без искажений) */
.user-profile-avatar-wrapper.expanded {
    width: calc(100% + 48px);
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 16px;
    transition: margin var(--transition-slow) cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.user-profile-avatar-wrapper.expanded .user-profile-avatar {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 0 !important;
    font-size: 0;
    background-size: cover;
    background-position: center;
    transition: border-radius var(--transition), background-size var(--transition);
}

/* ================================== */
/* СВЕТЛАЯ ТЕМА (оставляем тёмный оверлей) */
/* ================================== */
body.light-theme .avatar-expanded-overlay {
    background: rgba(0, 0, 0, 0.9);
}

/* Уважение prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .avatar-expanded-overlay,
    .avatar-expanded-hint,
    .user-profile-avatar-wrapper.expanded,
    .user-profile-avatar-wrapper.expanded .user-profile-avatar {
        animation: none;
        transition: none;
    }
}