
.live-blog-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 20px 0;
    background: #fff;
}

.live-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
    border-radius: 8px 8px 0 0;
}

.live-blog-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.live-blog-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.live-blog-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.live-blog-btn:hover {
    background: #005a87;
}

.auto-refresh-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #666;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
}

.status-indicator.active {
    background: #46b450;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-updates-container {
    max-height: 600px;
    overflow-y: auto;
}

.live-update-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

.live-update-item:last-child {
    border-bottom: none;
}

.live-update-item.new-update {
    background: #f0f8ff;
    border-left: 4px solid #0073aa;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pinned-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    background: #d63638;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.update-header strong {
    color: #0073aa;
}

.update-time {
    color: #666;
    font-size: 13px;
}

.update-content {
    color: #333;
    line-height: 1.6;
}

.update-content p {
    margin-bottom: 10px;
}

.no-updates {
    padding: 40px 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Admin Styles */
.live-blog-add-update {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.live-blog-add-update textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.live-blog-add-update .controls {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

#live-updates-list .live-update-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 4px;
    background: #fff;
}

.delete-update {
    background: #d63638;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    margin-left: 10px;
}

.delete-update:hover {
    background: #b32d2e;
}

.live-blog-loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .live-blog-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .live-blog-controls {
        flex-direction: column;
        gap: 10px;
    }
}