/**
 * Blogg – felles stil for hele bloggsystemet
 * Brukes av index.html og alle artikkelsider
 */
* { box-sizing: border-box; }

html, body {
	min-height: 100vh;
}

body {
	margin: 0;
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	background: #fce4ec;
	background: linear-gradient(165deg, #fce4ec 0%, #f8bbd9 35%, #f48fb1 100%);
	color: #4a1942;
	line-height: 1.6;
}

.blogg-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 2rem 1rem 3rem;
}

/* Header / navigasjon */
.blogg-header {
	text-align: center;
	margin-bottom: 2.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 2px solid rgba(136, 14, 79, 0.2);
}

.blogg-header h1 {
	font-size: 1.75rem;
	font-weight: 600;
	color: #880e4f;
	margin: 0 0 0.5rem;
	letter-spacing: 0.02em;
}

.blogg-header p {
	margin: 0;
	color: #6d1b4d;
	opacity: 0.9;
	font-size: 1rem;
}

.blogg-tilbake {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	color: #880e4f;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.2s, transform 0.2s;
}

.blogg-tilbake:hover {
	background: white;
	transform: translateX(-2px);
}

/* Grid for forsiden */
.blogg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
}

.blogg-kort {
	background: rgba(255, 255, 255, 0.9);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(136, 14, 79, 0.12);
	transition: transform 0.2s, box-shadow 0.2s;
	text-decoration: none;
	color: inherit;
	display: block;
}

.blogg-kort:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(136, 14, 79, 0.18);
}

.blogg-kort-bilde {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	background: linear-gradient(135deg, #f8bbd9, #f48fb1);
}

.blogg-kort-innhold {
	padding: 1rem 1.25rem 1.25rem;
}

.blogg-kort-tittel {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: #6d1b4d;
	line-height: 1.35;
}

.blogg-kort-utdrag {
	font-size: 0.875rem;
	margin: 0;
	color: #4a1942;
	opacity: 0.9;
	line-height: 1.5;
}

/* Forside: kun tittel og lenke (ingen bilde/utdrag) */
.blogg-lenkeliste {
	list-style: none;
	margin: 0;
	padding: 0;
}

.blogg-lenkeliste li {
	margin-bottom: 0.5rem;
}

.blogg-kort-lenke {
	display: block;
	padding: 0.75rem 1rem;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 8px;
	color: #6d1b4d;
	font-weight: 500;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(136, 14, 79, 0.1);
	transition: background 0.2s, box-shadow 0.2s;
}

.blogg-kort-lenke:hover {
	background: white;
	box-shadow: 0 4px 12px rgba(136, 14, 79, 0.15);
}

/* KI-boks */
.blogg-ki-boks {
	background: #ffc107;
	color: #1a1a1a;
	padding: 12px 16px;
	margin-bottom: 16px;
	border-radius: 8px;
	font-weight: bold;
	font-size: 0.95rem;
}

/* Artikkelinnhold */
.blogg-post {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 12px;
	padding: 1.75rem 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 4px 20px rgba(136, 14, 79, 0.1);
	color: #4a1942;
}

.blogg-post h3 {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	color: #880e4f;
	line-height: 1.3;
}

.blogg-post p {
	margin: 0 0 1rem 0;
	line-height: 1.6;
}

.blogg-post p:last-child {
	margin-bottom: 0;
}

.blogg-post img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 0.75rem 0;
	display: block;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blogg-post a {
	color: #ad1457;
	text-decoration: underline;
}

.blogg-post a:hover {
	color: #880e4f;
}

/* Responsiv */
@media (max-width: 600px) {
	.blogg-wrapper { padding: 1.25rem 1rem 2rem; }
	.blogg-grid { grid-template-columns: 1fr; }
	.blogg-post { padding: 1.25rem 1.25rem; }
}
