/**
* Theme Name: BuddyX Child
* Description: This is a child theme of BuddyX, generated by Merlin WP.
* Author: <a href="https://github.com/vapvarun/buddyx">wbcomdesigns,vapvarun</a>
* Template: buddyx
* Version: 4.5.8
*/

/* Benutzer-Menü (BuddyPress) anpassen 
.bp-personal-tab {
    background-color: #2c2b21;
    color: #ffa;
    padding: 4px 8px;
    border-radius: 4px;
}
*/

/* Zeilenabstand & Hover */
#message-threads li {
    padding: 8px 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.1s;
}
#message-threads li:hover {
    background-color: #f8a9fa;
}

/* Ungelesene hervorheben */
#message-threads li.unread {
    font-weight: 700;
    background-color: #fffde7;
}
#message-threads li.unread .thread-name {
    color: #d32f2f;
}

/* Avatar anpassen */
#message-threads .thread-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

/* Vorschau auf 1 Zeile begrenzen */
#message-threads .thread-content {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #666;
}

/* Datum rechts ausrichten, kleiner */
#message-threads .thread-date {
    float: right;
    font-size: 12px;
    color: #999;
}

/* Stern-Icon */
#message-threads .thread-star a {
    color: #ccc;
    font-size: 18px;
}
#message-threads .thread-star a:hover {
    color: #f39c12;
}

/* Optionen nur bei Hover anzeigen */
#message-threads .thread-options {
    display: none;
}
#message-threads li:hover .thread-options {
    display: inline-block;
}

/* Mobile: Layout umstellen */
@media (max-width: 768px) {
    #message-threads li {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    #message-threads .thread-date {
        float: none;
        width: 100%;
    }
}
