/* --- Feed: Post Header / Body ----------------------------------------- */

.feed-post-card {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    margin-bottom: 10px;
    background-color: #2c2c2c; 
}

.feed-post-content {
    flex: 1;
}

.feed-post-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2px;
}

.feed-post-author {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.feed-post-displayname {
    font-weight: 700;
}

.feed-post-username {
    font-size: 0.9rem;
    opacity: 0.7;
}

.feed-post-time {
    font-size: 0.85rem;
    opacity: 0.6;
}

.feed-post-text {
    margin: 4px 0 6px;
    line-height: 1.4;
}

/* --- Actions (Like / Comment) ----------------------------------------- */

.feed-post-footer {
    margin-top: 15px;
}

.feed-post-actions {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
}

.feed-post-action {
    background: transparent;
    border: none;
    padding: 2px 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.75;
}

.feed-post-action:hover {
    opacity: 1;
}

.feed-post-like-active {
    color: red; 
}

.feed-post-like {
    color: red;
}

.feed-post-comment-toggle {
    color: white;
}



/* Kommentare */

.feed-comments {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-comments-list {
    display: flex;
    flex-direction: column;
    gap: 6px;            /* Abstand zwischen den einzelnen Kommentaren */
    margin-bottom: 6px;
}

.feed-comment-item {
    padding: 4px 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Name / @user / Zeit in der ersten Zeile */
.feed-comment-meta {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.75;
    margin-bottom: 1px;
}

/* eigentlicher Kommentartext leicht eingerückt darunter */
.feed-comment-text {
    font-size: 0.9rem;
    line-height: 1.3;
    margin-left: 2px;
}

/* Eingabereihe unter den Kommentaren */
.feed-comments-compose {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 6px;
}

.feed-comment-input {
    flex: 1;
}

.feed-comment-send {
    padding: 4px 10px;
    font-size: 0.9rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
}

/* Notifications */

.feed-notification-item {
    padding: 4px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.feed-notification-unread {
    background-color: rgba(255, 255, 255, 0.05);
}

.feed-notification-text {
    margin-bottom: 2px;
}

.feed-notification-meta {
    font-size: 0.75rem;
    opacity: 0.7;
}

.feed-notification-empty {
    font-size: 0.9rem;
    opacity: 0.8;
}

.feed-post-main {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feed-post-avatar {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.feed-post-avatar img {
    display: none;
}


.feed-post-media {
    display: grid;
    width: 100%;
    gap: 6px;
    margin-top: 8px;
    border-radius: 8px;
}

/* 1 Bild: eine Spalte */
.feed-post-media-count-1 {
    grid-template-columns: 1fr;
}

/* 2 Bilder: zwei Spalten */
.feed-post-media-count-2 {
    grid-template-columns: 1fr 1fr;
}

/* 3–4 Bilder: 2x2 Grid */
.feed-post-media-count-3,
.feed-post-media-count-4 {
    grid-template-columns: 1fr 1fr;
}

.feed-post-media-item {
    overflow: hidden;
}

/* Bilder: immer im Verhältnis, kein Zuschneiden, kein „Loch“ darunter */
.feed-post-media-item img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;   /* optional: zentriert in der Zelle */
}


#feed-compose-images-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.feed-compose-image-thumb {
    position: relative;
}

.feed-compose-image-thumb img {
    display: block;
}

.feed-compose-image-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    border: none;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 0;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}





