/* --- RECHTER INHALT (Optimierte User-Listen im #owning-results-container) --- */
.users-main-content {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Großzügiger Abstand zwischen den Haupt-Kategorien */
}

.user-list-section {
    scroll-margin-top: 30px;
}

/* Aufgeräumte Sektions-Überschriften */
.section-title {
    margin: 0 0 18px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.section-title i {
    color: var(--accent); /* Icons leuchten dezent in der Akzentfarbe */
}

/* Perfekt ausgerichtetes Karten-Grid */
.user-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
}

/* Die verfeinerte User-Card */
.user-card {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 7px; /* Mehr Innenabstand, damit nichts quetscht */
    display: flex;
    align-items: flex-start; /* Richtet Avatar oben aus, falls Notiz länger ist */
    gap: 14px;
    background: var(--input-bg);
    box-sizing: border-box;
}

/* Runder Avatar */
.user-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: contain;
    object-position: center; /* Zentriert das Gesicht im Kreis */
    border: 1px solid var(--border-color);
    flex-shrink: 0;      /* Verhindert, dass das Bild in Flex-Layouts gequetscht wird */
    box-sizing: border-box;
}
.user-avatar:hover, .user-avatar img:hover, .user-avatar.no-avatar:hover {
	border-color:var(--primary-color);
}
.user-avatar i:hover, .user-avatar.no-avatar i:hover {
    color:var(--primary-color);
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 0;
}


.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Kompakte Status-Badges */
.user-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 4px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-owned { background: rgba(19, 115, 51, 0.08); color: #137333; }
.status-trade { background: rgba(26, 115, 232, 0.08); color: #1a73e8; }
.status-sell { background: rgba(176, 96, 0, 0.08); color: #b06000; }

/* Die User-Notiz */
.user-note {
    margin: 6px 0 0 0;
    font-size: 0.8rem;
    color: var(--light-color);
    line-height: 1.4;
    border-top: 1px dashed var(--border-color); /* Grenzt die Notiz sauber ab */
    padding-top: 6px;
    word-break: break-word;
}

/* Styling für den Fallback-Avatar ohne Bild */
.user-avatar.no-avatar {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.05); /* Dezenter, dunkler Hintergrund */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Das graue Icon im Zentrum */
.user-avatar.no-avatar i {
    color: var(--light-color); /* Nutzt deine vordefinierte graue Textfarbe */
    font-size: 1.2rem;
}