/* Research Feed Module Styles - Refined for Harmony */
.research-feed-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #cbd5e1;
    /* Softer text */
}

.research-feed-card {
    /* Deep Indigo/Slate Theme to match page "Smart Research" aesthetic */
    background: linear-gradient(180deg, #2D3246 0%, #1F2233 100%);
    border: 1px solid rgba(129, 148, 232, 0.2);
    /* Matching the title gradient color */
    border-radius: 16px;
    /* Slightly softer corners */
    box-shadow: 0 20px 40px -10px rgba(45, 50, 70, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

/* Header & Tabs */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem 0;
}

.feed-title .status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    /* Green active status */
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    animation: pulse 2s infinite;
}

.feed-tabs {
    display: flex;
    gap: 4px;
}

.feed-tab {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 1.2rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.feed-tab:hover {
    color: #e2e8f0;
}

.feed-tab.active {
    color: #8194e8;
    /* Matches the section title gradient start */
    font-weight: 600;
}

.feed-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10%;
    width: 80%;
    height: 3px;
    background: #8194e8;
    border-radius: 3px 3px 0 0;
    box-shadow: 0 -2px 8px rgba(129, 148, 232, 0.4);
}

/* Content Area */
.feed-viewport {
    height: 340px;
    /* Slightly taller */
    overflow: hidden;
    position: relative;
    padding: 0.5rem 0;
}

.feed-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Scroll Animation Class */
.feed-scrolling {
    animation: scroll-up 60s linear infinite;
}

.feed-viewport:hover .feed-scrolling {
    animation-play-state: paused;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.feed-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.feed-item:hover {
    background: rgba(129, 148, 232, 0.05);
    /* Subtle purple highlights */
}

.feed-item:last-child {
    border-bottom: none;
}

.item-index {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: #566479;
    min-width: 24px;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    display: block;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.35rem;
    letter-spacing: 0.01em;
}

.item-title:hover {
    color: #8194e8;
}

.item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #64748b;
    align-items: center;
}

.meta-src {
    color: #94a3b8;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    padding: 0 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Update Info */
.feed-footer {
    padding: 0.8rem 1.5rem;
    font-size: 0.75rem;
    color: #475569;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}