/**
 * Live News Feed Component Styles - Minimalist Version
 *
 * @package Capital_Chronicle_Child
 */

.live-news-feed {
    background-color: var(--color-background-primary, #ffffff);
    border-radius: 8px;
    box-shadow: 0 1px 3px var(--color-shadow-light, rgba(0, 0, 0, 0.1));
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

/* Feed header */
.live-news-header {
    background-color: var(--color-text-dark, #0a0e17);
    color: var(--color-text-light, #ffffff);
    padding: 15px 20px;
    border-bottom: 1px solid var(--color-overlay-light, rgba(255, 255, 255, 0.2));
    position: relative;
}

.live-news-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: var(--color-text-light, #ffffff);
}

/* Live indicator with animation */
.live-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--color-status-error, #e53935);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
}

.live-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-status-error, #e53935);
    opacity: 0.6;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

/* Vertical Timeline Styling */
.live-feed-list {
    position: relative;
    padding-left: 15px; /* Reduced padding */
    list-style: none;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
    background-color: var(--color-background-secondary, #f5f7fa);
}

.live-feed-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--color-border-primary, #c1c5cb);
}

/* News item - single line with time and headline */
.news-item {
    position: relative;
    padding: 10px 15px 10px 0; /* Reduced padding for more compact layout */
    border-bottom: 1px solid var(--color-border-light, rgba(0, 0, 0, 0.05));
    transition: background-color 0.2s ease;
}

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

.news-item:hover {
    background-color: var(--color-background-tertiary, rgba(0, 0, 0, 0.02));
}

/* Time display */
.news-item-time {
    font-size: 12px;
    color: var(--color-accent-primary, #0077D8);
    font-weight: 600;
    margin-bottom: 2px; /* Reduced margin for more compact layout */
}

/* Headline */
.news-item-headline {
    margin: 0;
    font-size: 15px;
    font-weight: 500; /* Medium weight instead of bold */
    line-height: 1.3;
}

.news-item-headline a {
    color: var(--color-text-primary, #1a2b3c);
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-item-headline a:hover {
    color: var(--color-accent-primary, #0077D8);
}

/* Circular refresh button */
.refresh-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.refresh-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.refresh-button svg {
    width: 16px;
    height: 16px;
    fill: var(--color-text-light, #ffffff);
}

/* New item highlight animation */
.news-item.new {
    animation: highlightNew 2s ease;
}

@keyframes highlightNew {
    0%, 70% { background-color: rgba(0, 119, 216, 0.1); }
    100% { background-color: transparent; }
}

/* Empty state and error messages */
.news-item-empty,
.news-item-error {
    padding: 15px;
    text-align: center;
    color: var(--color-text-tertiary, #6a7b8c);
    font-size: 13px;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Scrollbar styling */
.live-feed-list::-webkit-scrollbar {
    width: 4px;
}

.live-feed-list::-webkit-scrollbar-track {
    background: var(--color-background-tertiary, #f1f1f1);
}

.live-feed-list::-webkit-scrollbar-thumb {
    background: var(--color-border-medium, #a1a5ab);
    border-radius: 2px;
}

.live-feed-list::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-dark, #717580);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .live-feed-list {
        padding-left: 12px; /* Reduced padding on mobile */
    }
    
    .news-item {
        padding: 8px 12px 8px 0;
    }
    
    .news-item-time {
        min-width: 40px;
        margin-right: 8px;
        font-size: 12px;
    }
    
    .news-item-headline {
        font-size: 14px;
    }
}

/* Section title styling */
.live-news-feed-section .section-title {
    margin-bottom: 16px;
} 