/* ==========================================================================
   📰 PREMIUM NEWS PLATFORM DESIGN MATRIX (HIGH-CONTRAST / LIGHT MODE)
   ========================================================================== */
:root {
	--base-white: #ffffff;
	--base-light: #f8f9fa;
	--text-dark: #111215;
	--text-muted: #5a6275;
	--border-color: #e2e5ec;
	
	/* Signaturfärger för seriösa medier */
	--svt-blue: #0a47b1;
	--sr-orange: #d94b00;
	--police-blue: #0076a3;
	--alert-red: #d32f2f;
	
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-serif: "Georgia", "Times New Roman", serif;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--base-light);
	color: var(--text-dark);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
	height: 100vh;
	display: flex;
	flex-direction: column;
}

/* 🚗 TRAFIKBANNER */
.top-alert-banner {
	background: #111215;
	color: #fff;
	display: flex;
	height: 40px;
	align-items: center;
	font-size: 0.85rem;
	font-weight: 600;
	overflow: hidden;
}
.alert-badge {
	background: var(--alert-red);
	padding: 0 20px;
	height: 100%;
	display: flex;
	align-items: center;
	letter-spacing: 0.5px;
	white-space: nowrap;
}
.ticker-window {
	flex: 1;
	overflow: hidden;
	position: relative;
}
.ticker-stream {
	display: inline-block;
	white-space: nowrap;
	padding-left: 20px;
	color: #f1f1f1;
	animation: ticker-move 35s linear infinite;
}
@keyframes ticker-move {
	0% { transform: translate3d(30%, 0, 0); }
	100% { transform: translate3d(-100%, 0, 0); }
}

/* 🛸 PROFESSIONAL HEADER */
.main-header {
	background: var(--base-white);
	border-bottom: 2px solid var(--text-dark);
	padding: 20px 0;
}
.header-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 25px;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}
.main-logo {
	font-family: var(--font-serif);
	font-size: 2.6rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: -1px;
}
.main-logo .dot {
	color: var(--svt-blue);
}
.tagline {
	font-size: 0.85rem;
	color: var(--text-muted);
	margin-top: 5px;
}
.nav-controls {
	display: flex;
	align-items: center;
	gap: 25px;
}
.select-wrapper {
	display: flex;
	align-items: center;
	gap: 10px;
}
.select-label {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--text-muted);
}
.news-select {
	background: var(--base-white);
	color: var(--text-dark);
	border: 1px solid #bbc2d0;
	padding: 8px 30px 8px 12px;
	font-size: 0.9rem;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
}

/* LIVE PULSE */
.live-indicator {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 1px;
	border: 1px solid var(--border-color);
	padding: 7px 12px;
	border-radius: 4px;
}
.pulse-dot {
	width: 8px;
	height: 8px;
	background-color: #2ed573;
	border-radius: 50%;
	display: inline-block;
	animation: pulse 1.8s infinite;
}
@keyframes pulse {
	0% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.5); }
	70% { box-shadow: 0 0 0 6px rgba(46, 213, 115, 0); }
	100% { box-shadow: 0 0 0 0 rgba(46, 213, 115, 0); }
}

/* 🧱 COLUMN LAYOUT MATRIX */
.app-layout {
	flex: 1;
	max-width: 1400px;
	width: 100%;
	margin: 0 auto;
	padding: 25px;
	overflow: hidden;
}
.grid-container {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 30px;
	height: 100%;
	overflow: hidden;
}
.news-column {
	background: var(--base-white);
	border-radius: 6px;
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.column-title {
	font-family: var(--font-serif);
	font-size: 1.3rem;
	padding: 15px 20px;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-dark);
}
.column-title span {
	position: relative;
	padding-bottom: 14px;
}
.column-title span::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--svt-blue);
}
.c-police span::after {
	background: var(--police-blue);
}

.feed-container {
	flex: 1;
	overflow-y: auto;
	padding: 20px;
}

/* 📄 REDAKTIONELLA NYHETSKORT (SVT / SR) */
.news-card {
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border-color);
}
.news-card:last-child {
	border-bottom: none;
}
.card-meta {
	font-size: 0.75rem;
	font-weight: 700;
	margin-bottom: 6px;
	display: flex;
	gap: 10px;
}
.source-svt { color: var(--svt-blue); }
.source-sr { color: var(--sr-orange); }
.card-time { color: var(--text-muted); font-weight: 400; }

.card-title {
	font-family: var(--font-serif);
	font-size: 1.35rem;
	line-height: 1.25;
	font-weight: 800;
	margin-bottom: 8px;
}
.card-title a {
	color: var(--text-dark);
	text-decoration: none;
}
.card-title a:hover {
	color: var(--svt-blue);
	text-decoration: underline;
}
.card-summary {
	font-size: 0.95rem;
	line-height: 1.5;
	color: #333a42;
}

/* 🚨 POLISKORT */
.police-card {
	background: var(--base-light);
	border-left: 4px solid var(--police-blue);
	padding: 15px;
	margin-bottom: 15px;
	border-radius: 0 4px 4px 0;
}
.police-meta {
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--police-blue);
	margin-bottom: 5px;
	text-transform: uppercase;
}
.police-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 6px;
	line-height: 1.3;
}
.police-summary {
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--text-muted);
	margin-bottom: 8px;
}
.police-gps {
	font-size: 0.65rem;
	font-weight: 700;
	color: var(--text-muted);
	opacity: 0.8;
}

.skeleton-loader {
	font-size: 0.9rem;
	color: var(--text-muted);
	text-align: center;
	padding: 40px 0;
	font-style: italic;
}