/* ==========================================================================
   COMMUNITY FEED VIEW (Token-driven)
   ========================================================================== */

.filter-tabs {
    display: flex;
    gap: var(--gap-sm);
    margin-bottom: var(--margin-lg);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--padding-sm);
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: var(--padding-sm) var(--padding-md);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    transition: background 0.2s, color 0.2s;
}

.filter-tab:hover {
    background: var(--color-surface-elevated);
    color: var(--color-text-primary, #4a4a4a);
}

.filter-tab.active {
    background: var(--color-primary-700, #7286d3);
    color: #ffffff;
}

/* Post Matrix Engine */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-min-width), 1fr));
    gap: var(--gap-lg);
    margin-bottom: var(--margin-2xl);
}

.community-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--padding-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.community-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-type-badge {
    align-self: flex-start;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    padding: var(--padding-xs) var(--padding-sm);
    border-radius: var(--radius-sm);
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    margin-bottom: var(--margin-md);
}

.card-title {
    margin: 0 0 var(--margin-sm) 0;
    font-size: var(--font-size-xl);
    line-height: var(--line-height-sm);
}

.card-title a {
    color: var(--color-text-primary, #4a4a4a);
    text-decoration: none;
}

.card-title a:hover {
    color: var(--color-link, #1d4ed8);
}

.excerpt {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-md);
    margin-bottom: var(--margin-lg);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: var(--padding-md);
}

.author {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
}

/* Pagination Engine */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--gap-md);
    margin-top: var(--margin-xl);
}

.pagination-link {
    color: var(--color-link, #1d4ed8);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.pagination-link:hover {
    color: var(--color-link-hover, #112e7e);
    text-decoration: underline;
}

.current-page {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* Neutral States */
.empty-state {
    text-align: center;
    padding: var(--padding-2xl) var(--padding-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.empty-icon {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--margin-md);
}

.empty-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--margin-sm);
}

.empty-text {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    margin-bottom: var(--margin-lg);
}