/* StockNewsIndex.css - Premium Modern Feed Styles */
:root {
    /* Core Palette */
    --sni-bg: var(--bg-1, #f8fafc);
    --sni-card-bg: var(--card-bg, #ffffff);
    --sni-text-main: var(--text-1, #1e293b);
    --sni-text-secondary: var(--text-2, #64748b);
    --sni-border: var(--border-1, #e2e8f0);
    
    /* Brand Accents */
    --sni-accent-primary: #3b82f6;
    --sni-accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --sni-badge-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    
    /* Effects */
    --sni-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --sni-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --sni-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --sni-radius: 16px;
}

[data-theme="dark"] {
    --sni-bg: #0f172a;
    --sni-card-bg: #1e293b;
    --sni-text-main: #f8fafc;
    --sni-text-secondary: #94a3b8;
    --sni-border: #334155;
    --sni-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

body {
    background-color: var(--sni-bg) !important;
}

.news-feed-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Page Title with Gradient Underline */
.news-page-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sni-text-main);
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    letter-spacing: -0.025em;
}

.news-page-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--sni-accent-gradient);
    margin: 0.75rem auto 0;
    border-radius: 4px;
    opacity: 0.8;
}

.news-list-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Premium Card Design */
.news-list-item {
    background: var(--sni-card-bg);
    border-radius: var(--sni-radius);
    border: 1px solid var(--sni-border);
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--sni-shadow-sm);
    overflow: hidden;
    z-index: 1;
}

.news-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--sni-shadow-hover);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Decorative Left Accent on Hover */
.news-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--sni-accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-list-item:hover::before {
    opacity: 1;
}

.news-item-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Header Area */
.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.news-item-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--sni-text-main);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-title:hover {
    color: var(--sni-accent-primary);
    text-decoration: none;
}

.news-item-meta {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--sni-text-secondary);
    background: rgba(148, 163, 184, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Footer Area */
.news-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--sni-border);
    margin-top: 0.5rem;
}

.news-source-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.news-source-badge {
    background: var(--sni-badge-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.news-tag {
    font-size: 0.75rem;
    color: var(--sni-text-secondary);
    background: transparent;
    border: 1px solid var(--sni-border);
    padding: 3px 10px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.news-tag:hover {
    background: var(--sni-text-main);
    color: var(--sni-card-bg); /* Invert colors */
    border-color: var(--sni-text-main);
}

.news-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--sni-text-secondary);
}

.stat-group {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.stat-group:hover {
    transform: scale(1.05);
}

.comment-link {
    color: var(--sni-accent-primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 10px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
}

.comment-link:hover {
    background: rgba(59, 130, 246, 0.2);
    text-decoration: none;
}

/* Read More Button */
.read-more-area {
    margin-top: 3rem;
    padding: 1rem 2rem;
    background: var(--sni-card-bg);
    border: 1px solid var(--sni-border);
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--sni-shadow-sm);
}

.read-more-area:hover {
    border-color: var(--sni-accent-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.read-more-text {
    font-weight: 700;
    color: var(--sni-text-main);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.read-more-area:hover .read-more-text {
    color: var(--sni-accent-primary);
}

@media (max-width: 640px) {
    .news-item-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-item-meta {
        align-self: flex-start;
    }
    
    .news-item-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .news-stats {
        width: 100%;
        justify-content: space-between;
        margin-top: 0.5rem;
    }
}
