/* Element: Avatars */

/* Container for the avatar preview, often used in profile headers or settings */
.avatar-preview-box {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--c-primary);
    background: var(--c-bg-tertiary);
}

.avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--c-primary);
    background: rgba(var(--c-primary-rgb), 0.1);
    border-radius: 50%;
    border: 2px solid rgba(var(--c-primary-rgb), 0.2);
    user-select: none;
}

/* Specific component for editing profile image */
.avatar-edit-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: color-mix(in srgb, var(--c-text), transparent 98%);
    border: 1px dashed var(--c-border-secondary);
    border-radius: var(--r-xl);
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.avatar-info {
    font-size: 0.85rem;
    color: var(--c-text-ghost);
    opacity: 0.6;
    line-height: 1.5;
}

@media (max-width: 1100px) {
    .avatar-edit-wrapper {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem;
    }

    .avatar-actions {
        width: 100%;
        max-width: 300px;
    }

    .avatar-info {
        margin-top: 0.5rem;
    }
}