/* CM Live Blog 2.0 - BBC Style Frontend */

:root {
	--cm-lb2-primary: #222;
	--cm-lb2-secondary: #666;
	--cm-lb2-border: #ddd;
	--cm-lb2-bg-light: #f8f8f8;
	--cm-lb2-live: #e31a1c;
	--cm-lb2-accent: #0066cc;
	--cm-lb2-text: #222;
	--cm-lb2-text-light: #666;
}

/* Wrapper */
.cm-lb2-wrapper {
	max-width: 960px;
	margin: 0 auto 3rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	line-height: 1.6;
	color: var(--cm-lb2-text);
}

/* Header Section */
.cm-lb2-header {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 2px solid var(--cm-lb2-border);
}

.cm-lb2-status-badge {
	display: inline-block;
	padding: 0.5rem 1rem;
	margin-bottom: 1rem;
	border-radius: 4px;
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.5px;
	background: var(--cm-lb2-bg-light);
	border: 1px solid var(--cm-lb2-border);
}

.cm-lb2-status-live {
	background: #ffe5e5;
	border-color: #e31a1c;
	color: #e31a1c;
	animation: pulse-live 2s infinite;
}

.cm-lb2-status-coming-soon {
	background: #fff9e5;
	border-color: #f9a825;
	color: #f9a825;
}

.cm-lb2-status-ended {
	background: #f0f0f0;
	border-color: #999;
	color: #666;
}

@keyframes pulse-live {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

.cm-lb2-title {
	font-size: 2.5rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 1rem 0;
	color: var(--cm-lb2-primary);
}

.cm-lb2-intro {
	font-size: 1.1rem;
	color: var(--cm-lb2-text-light);
	line-height: 1.7;
	max-width: 90%;
}

.cm-lb2-intro p {
	margin: 0.5rem 0;
}

/* Timeline Container */
.cm-lb2-timeline {
	position: relative;
	padding: 0;
}

/* Individual Update */
.cm-lb2-update {
	display: grid;
	grid-template-columns: 60px 100px 1fr;
	gap: 1.5rem;
	margin-bottom: 2rem;
	padding: 0;
	position: relative;
}

.cm-lb2-update.cm-lb2-alt {
	padding-top: 0;
}

/* Timeline Marker (dot and line) */
.cm-lb2-timeline-marker {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 60px;
}

.cm-lb2-dot {
	width: 16px;
	height: 16px;
	background: var(--cm-lb2-primary);
	border-radius: 50%;
	margin-top: 6px;
	position: relative;
	z-index: 2;
	border: 3px solid #fff;
	box-shadow: 0 0 0 2px var(--cm-lb2-primary);
}

.cm-lb2-update-live .cm-lb2-dot {
	background: var(--cm-lb2-live);
	box-shadow: 0 0 0 2px var(--cm-lb2-live), 0 0 12px rgba(227, 26, 28, 0.5);
}

.cm-lb2-line {
	width: 2px;
	flex-grow: 1;
	background: var(--cm-lb2-border);
	margin-top: 0.5rem;
	position: relative;
	z-index: 1;
	min-height: 50px;
}

.cm-lb2-update:last-child .cm-lb2-line {
	display: none;
}

/* Time Section */
.cm-lb2-time {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: flex-start;
	text-align: right;
	padding-top: 8px;
	min-width: 100px;
}

.cm-lb2-time-value {
	font-size: 1.375rem;
	font-weight: 700;
	color: var(--cm-lb2-primary);
	line-height: 1;
	display: block;
}

.cm-lb2-date-value {
	font-size: 0.75rem;
	color: var(--cm-lb2-text-light);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: 0.25rem;
}

/* Content Area */
.cm-lb2-content {
	background: #fff;
	border: 1px solid var(--cm-lb2-border);
	border-radius: 6px;
	padding: 1.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	position: relative;
}

.cm-lb2-content:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: box-shadow 0.2s ease;
}

.cm-lb2-byline {
	font-size: 0.85rem;
	color: var(--cm-lb2-text-light);
	font-weight: 500;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid var(--cm-lb2-border);
	padding-bottom: 0.75rem;
}

.cm-lb2-update-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0.75rem 0;
	color: var(--cm-lb2-primary);
	line-height: 1.3;
}

.cm-lb2-update-body {
	font-size: 1rem;
	line-height: 1.7;
	color: var(--cm-lb2-text);
}

.cm-lb2-update-body p {
	margin: 1rem 0;
}

.cm-lb2-update-body p:first-child {
	margin-top: 0;
}

.cm-lb2-update-body p:last-child {
	margin-bottom: 0;
}

.cm-lb2-update-body strong {
	font-weight: 700;
	color: var(--cm-lb2-primary);
}

.cm-lb2-update-body em {
	font-style: italic;
	color: var(--cm-lb2-text-light);
}

/* Images in updates */
.cm-lb2-image {
	margin: 1.5rem 0;
	padding: 0;
	border-radius: 4px;
	overflow: hidden;
}

.cm-lb2-image img {
	display: block;
	width: 100%;
	height: auto;
	background: var(--cm-lb2-bg-light);
}

.cm-lb2-image figcaption {
	background: var(--cm-lb2-bg-light);
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: var(--cm-lb2-text-light);
	line-height: 1.5;
	margin: 0;
}

/* Update type variants */
.cm-lb2-update-quote .cm-lb2-update-title {
	color: var(--cm-lb2-accent);
	font-style: italic;
}

.cm-lb2-update-quote .cm-lb2-content {
	background: #f5f7ff;
	border-left: 4px solid var(--cm-lb2-accent);
}

.cm-lb2-quote-mark {
	position: absolute;
	top: -20px;
	right: 1rem;
	font-size: 4rem;
	color: rgba(0, 102, 204, 0.1);
	line-height: 1;
}

.cm-lb2-update-timeline .cm-lb2-update-title {
	color: var(--cm-lb2-primary);
	font-weight: 700;
}

/* Empty state */
.cm-lb2-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	background: var(--cm-lb2-bg-light);
	border-radius: 6px;
	color: var(--cm-lb2-text-light);
	margin-top: 2rem;
}

.cm-lb2-empty p {
	margin: 0;
	font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
	.cm-lb2-wrapper {
		margin: 0 auto 2rem;
		padding: 0 1rem;
	}

	.cm-lb2-title {
		font-size: 1.75rem;
	}

	.cm-lb2-update {
		grid-template-columns: 50px 1fr;
		gap: 1rem;
	}

	.cm-lb2-time {
		display: none;
	}

	.cm-lb2-content {
		padding: 1rem;
	}

	.cm-lb2-update-title {
		font-size: 1.1rem;
	}

	.cm-lb2-update-body {
		font-size: 0.95rem;
	}

	.cm-lb2-intro {
		font-size: 1rem;
		max-width: 100%;
	}

	.cm-lb2-header {
		margin-bottom: 2rem;
		padding-bottom: 1.5rem;
	}
}

@media (max-width: 480px) {
	.cm-lb2-title {
		font-size: 1.5rem;
	}

	.cm-lb2-update {
		grid-template-columns: 40px 1fr;
		gap: 0.75rem;
		margin-bottom: 1.5rem;
	}

	.cm-lb2-dot {
		width: 12px;
		height: 12px;
		box-shadow: 0 0 0 1px var(--cm-lb2-primary);
	}

	.cm-lb2-timeline-marker {
		width: 40px;
	}

	.cm-lb2-content {
		padding: 0.75rem;
		border-radius: 4px;
	}

	.cm-lb2-update-title {
		font-size: 1rem;
	}

	.cm-lb2-update-body {
		font-size: 0.9rem;
	}

	.cm-lb2-status-badge {
		font-size: 0.75rem;
		padding: 0.4rem 0.8rem;
	}
}

/* Print styles */
@media print {
	.cm-lb2-status-live {
		background: none;
		border: none;
		color: var(--cm-lb2-primary);
	}

	.cm-lb2-dot {
		box-shadow: 0 0 0 1px var(--cm-lb2-primary);
	}

	.cm-lb2-content {
		box-shadow: none;
		page-break-inside: avoid;
	}
}
