/* Kieztalk Page Styles */

/* --- Utility --- */
.hidden {
    display: none !important;
}

/* --- Layout: Feed Container (Single Column) --- */
.feed-container {
    max-width: 680px;
    /* Reading Width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* Space between cards */
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
    /* Center filters for feed look */
}

.filter-tag {
    border-radius: 0;
    /* Brutal: No Radius */
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border: var(--brutal-border);
    box-shadow: var(--brutal-shadow-lg);
    font-weight: 700;
    background: var(--bg-card);
    cursor: pointer;
    transition: all 0.1s;
}

.filter-tag:hover,
.filter-tag.active {
    transform: translate(2px, 2px);
    box-shadow: var(--brutal-shadow);
    background: var(--color-yellow);
    /* Fallback yellow */
}

/* --- Feed Card Styles (WhatsApp/Social Style) --- */
.feed-card {
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    /* Thicker Border */
    box-shadow: 6px 6px 0 var(--border-color);
    /* Harder Shadow */
    border-radius: 0;
    /* Brutal */
    overflow: visible;
    /* Für Schatten nötig, falls Margin passt */
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.feed-header {
    display: flex;
    align-items: center;
    padding: 1rem 1rem 0.5rem 1rem;
    gap: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    /* Trennlinie Header/Body */
    background: var(--type-discussion-bg, var(--bg-surface-2));
}

.feed-author-avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: var(--brutal-border);
    flex-shrink: 0;
}

.feed-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-meta {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.feed-author-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feed-dot {
    margin: 0 0.2rem;
    color: var(--text-main);
    font-weight: 900;
}

.feed-time {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.feed-category {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border: var(--brutal-border);
    background: var(--bg-card);
    margin-top: 4px;
    display: inline-block;
    box-shadow: var(--brutal-shadow);
}

/* Badge Colors */
.badge-general {
    background: var(--bg-inset);
}

.badge-help {
    background: var(--badge-help-bg);
}

.badge-recommendation {
    background: var(--badge-recommendation-bg);
}

.badge-news {
    background: var(--badge-news-bg);
}


/* Actions Menu */
.feed-options {
    display: flex;
    gap: 0.5rem;
}

.feed-options button {
    background: var(--bg-card);
    border: var(--brutal-border);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-main);
    padding: 4px 8px;
    box-shadow: var(--brutal-shadow);
    transition: all 0.1s;
}

.feed-options button:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--border-color);
}

/* --- Body --- */
.feed-body {
    padding: 1.5rem 1rem;
}

.feed-title {
    font-size: 1.25rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: var(--text-main);
}

.feed-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.6;
    /* white-space: pre-wrap entfernt - verursachte eingerückte erste Zeilen */
}



/* Full Width Image */
.feed-image-container {
    margin-top: 1.5rem;
    margin-left: -1rem;
    margin-right: -1rem;
    margin-bottom: -1.5rem;
    /* Negate padding */
    border-top: 3px solid var(--border-color);
    position: relative;
}

.feed-image-container img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 500px;
    object-fit: cover;
    cursor: default;
}

/* --- Footer --- */
.feed-footer {
    padding: 1rem;
    border-top: 3px solid var(--border-color);
    display: flex;
    justify-content: flex-start;
    gap: 1rem;
    background: var(--bg-card);
    flex-wrap: wrap;
    /* NEW: Allow wrapping on small screens */
}

.feed-action-btn {
    background: var(--bg-card);
    border: var(--brutal-border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
    cursor: pointer;
    padding: 8px 12px;
    box-shadow: 3px 3px 0 var(--border-color);
    transition: all 0.1s;
    white-space: nowrap;
    /* NEW: Prevent inner squishing */
}

.feed-action-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--border-color);
    background: var(--bg-surface-2);
}

.feed-action-btn i {
    font-size: 1.2rem;
}

/* Like-State: Only Icon change (filled), no background color change */
.feed-action-btn.active.liked {
    /* background: var(--badge-recommendation-bg); removed as per user request */
    color: var(--text-main);
}

/* Comments Section classes removed - replaced by global comments.css */

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-main);
    font-weight: 600;
}

/* Read-Only State für eigene Beiträge */
.feed-action-btn--readonly {
    cursor: default;
    opacity: 0.7;
}

/* --- Mobile Optimizations --- */
@media (max-width: 480px) {
    .feed-footer {
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .feed-action-btn {
        padding: 6px 10px;
        font-size: 0.9rem;
        gap: 4px;
        box-shadow: 2px 2px 0 var(--border-color);
        /* Slightly smaller shadow */
    }

    .feed-action-btn:hover {
        box-shadow: 1px 1px 0 var(--border-color);
    }

    /* Hide text labels on mobile to save space */
    .feed-action-btn .lbl-replies {
        display: none;
    }
}