/**
 * Filtered Feed Styles
 *
 * Main feed container with filter tabs and content cards
 */

.filtered-feed-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* ===== Filter Tabs Container ===== */

.filtered-feed-tabs-container {
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    z-index: 10;
}

/* ===== Feed Content ===== */

.filtered-feed-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px;
}

/* ===== Content Cards ===== */

.content-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    cursor: pointer;
}

.content-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

/* Unread Card Styling */
.content-card.unread {
    background: rgba(59, 130, 246, 0.02);
    border-left: 3px solid var(--color-primary);
}

.content-card.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
}

/* Read Card Styling */
.content-card.read {
    opacity: 0.8;
}

.content-card.read:hover {
    opacity: 1;
}

/* ===== Empty/Error States ===== */

.feed-empty,
.feed-error {
    width: 100%;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.feed-error {
    background: rgba(239, 68, 68, 0.05);
}

/* ===== Responsive Design ===== */

@media (max-width: 768px) {
    .filtered-feed-content {
        padding: 8px;
    }

    .content-card {
        margin-bottom: 8px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .filtered-feed-content {
        padding: 4px;
    }

    .content-card {
        margin-bottom: 4px;
        padding: 8px;
        border-radius: 4px;
    }
}

/* ===== Dark Mode ===== */

@media (prefers-color-scheme: dark) {
    .content-card.unread {
        background: rgba(59, 130, 246, 0.05);
    }

    .feed-error {
        background: rgba(239, 68, 68, 0.1);
    }
}

/* ===== Scrollbar Styling ===== */

.filtered-feed-content::-webkit-scrollbar {
    width: 6px;
}

.filtered-feed-content::-webkit-scrollbar-track {
    background: transparent;
}

.filtered-feed-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 3px;
}

.filtered-feed-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}
