/*
 * NTC Andar - blog.
 *
 * Kafelki wpisów trzymają się tej samej siatki co kafelki oferty na stronie
 * głównej, więc blog nie wygląda jak doklejona osobna witryna. Schodzi tylko
 * na liście wpisów, wpisie i archiwach.
 */

/* --------------------------------------------------------- lista wpisów */

.post-list {
	background: var(--ice-100);
}

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.post-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(11, 42, 66, 0.06);
	transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(11, 42, 66, 0.12);
}

.post-card-media {
	display: block;
	text-decoration: none;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #e0f0ee, #c8e6df);
	overflow: hidden;
}

.post-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Wpis bez zdjęcia dostaje znak marki zamiast pustego prostokąta. */
.post-card-media--pusta {
	display: flex;
	align-items: center;
	justify-content: center;
}

.post-card-znak {
	border: 2px solid rgba(31, 41, 110, 0.35);
	border-radius: 100px;
	padding: 6px 18px;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.12em;
	color: rgba(31, 41, 110, 0.55);
}

.post-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 24px 26px 26px;
}

.post-card-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: var(--slate-400);
	margin-bottom: 12px;
}

.post-card-kat {
	padding: 3px 10px;
	border-radius: 100px;
	background: rgba(27, 191, 168, 0.12);
	color: var(--teal-600);
	font-weight: 600;
	letter-spacing: 0.04em;
}

.post-card-title {
	font-family: var(--font-display);
	font-size: 19px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 10px;
}

.post-card-title a {
	color: var(--navy-700);
	text-decoration: none;
}

.post-card-title a:hover {
	color: var(--teal-600);
}

.post-card-excerpt {
	font-size: 14px;
	line-height: 1.65;
	color: var(--slate-500);
	margin-bottom: 18px;
}

.post-card-link {
	margin-top: auto;
	align-self: flex-start;
	font-size: 14px;
	font-weight: 600;
	color: var(--teal-600);
	text-decoration: none;
}

.post-card-link:hover {
	color: var(--teal-500);
}

/* ------------------------------------------------------------ paginacja */

.post-list .pagination {
	margin-top: 40px;
	display: flex;
	justify-content: center;
}

.post-list .nav-links {
	display: flex;
	gap: 8px;
	align-items: center;
}

.post-list .page-numbers {
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line-100);
	border-radius: 10px;
	background: #fff;
	color: var(--slate-500);
	font-size: 14px;
	text-decoration: none;
}

.post-list .page-numbers:hover {
	border-color: var(--teal-500);
	color: var(--teal-600);
}

.post-list .page-numbers.current {
	background: var(--navy-700);
	border-color: var(--navy-700);
	color: #fff;
	font-weight: 600;
}

.post-list .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

/* ------------------------------------------------------- pusty blog */

.post-pusto {
	text-align: center;
	padding: 72px 24px;
	background: #fff;
	border: 1px dashed var(--line-100);
	border-radius: 20px;
}

.post-pusto-title {
	font-family: var(--font-display);
	font-size: 22px;
	font-weight: 700;
	color: var(--navy-700);
	margin-bottom: 10px;
}

.post-pusto-text {
	color: var(--slate-500);
	margin-bottom: 24px;
}

/* ----------------------------------------------------------- jeden wpis */

/* Treść trzyma szerokość kolumny do czytania, ale zaczyna się tam, gdzie tytuł
   w nagłówku - wyśrodkowanie rozjeżdżało wpis względem pasa nad nim. */
.post-single-meta,
.post-single-foto,
.post-single-tresc,
.post-nawigacja,
.post-powrot {
	max-width: 820px;
}

.post-single-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--slate-400);
	margin-bottom: 28px;
}

.post-single-meta a {
	color: var(--teal-600);
	text-decoration: none;
}

.post-single-foto {
	margin-bottom: 32px;
}

.post-single-foto img {
	width: 100%;
	border-radius: 20px;
	display: block;
}

.post-single-tresc {
	max-width: none;
}

.post-single-tresc h2,
.post-single-tresc h3 {
	margin-top: 40px;
}

.post-single-tresc img {
	border-radius: 16px;
}

.post-single-tresc blockquote {
	margin: 28px 0;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--teal-500);
	color: var(--navy-700);
	font-size: 18px;
	line-height: 1.7;
}

/* ------------------------------------------------- poprzedni i następny */

.post-nawigacja {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--line-100);
}

.post-nawigacja-link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--line-100);
	border-radius: 14px;
	text-decoration: none;
	transition: border-color 0.2s, background 0.2s;
}

.post-nawigacja-link:hover {
	border-color: var(--teal-500);
	background: var(--ice-100);
}

.post-nawigacja-link--nast {
	text-align: right;
}

.post-nawigacja-kier {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--slate-400);
}

.post-nawigacja-tytul {
	font-size: 15px;
	font-weight: 600;
	color: var(--navy-700);
	line-height: 1.4;
}

.post-powrot {
	display: inline-block;
	margin-top: 32px;
	font-size: 14px;
	font-weight: 600;
	color: var(--teal-600);
	text-decoration: none;
}

/* ---------------------------------------------------------------- telefon */

@media (max-width: 980px) {
	.post-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.post-grid {
		grid-template-columns: 1fr;
	}

	.post-nawigacja {
		grid-template-columns: 1fr;
	}

	.post-nawigacja-link--nast {
		text-align: left;
	}
}

/* --------------------------------------------------------------- autor */

/* Podpis pod wpisem. Kto pisał i z jakiego stanowiska - to samo, co idzie
   do danych strukturalnych, tylko widoczne dla czytelnika. */
.autor-box {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	max-width: 720px;
	margin: 56px 0 0;
	padding: 28px;
	border: 1px solid var(--line-100);
	border-radius: 20px;
	background: var(--ice-100);
}

.autor-box-foto,
.autor-profil-foto {
	flex: none;
	border-radius: 50%;
	object-fit: cover;
}

.autor-box-foto {
	width: 80px;
	height: 80px;
}

.autor-profil-foto {
	width: 120px;
	height: 120px;
}

.autor-box-etykieta {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--slate-400);
	margin-bottom: 6px;
}

.autor-box-imie {
	font-family: var(--font-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--navy-700);
	text-decoration: none;
}

.autor-box-imie:hover {
	color: var(--teal-600);
}

.autor-box-rola {
	margin-top: 2px;
	font-size: 14px;
	color: var(--slate-500);
}

.autor-box-bio {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--slate-500);
}

.autor-box-linki {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 14px;
}

.autor-box-linki a {
	font-size: 13px;
	font-weight: 600;
	color: var(--teal-600);
	text-decoration: none;
	border-bottom: 1px solid rgba(27, 191, 168, 0.4);
}

/* Strona autora: ten sam profil, tylko większy i nad listą wpisów. */
.autor-strona {
	padding-bottom: 0;
}

.autor-profil {
	display: flex;
	gap: 32px;
	align-items: flex-start;
	max-width: 820px;
}

.autor-profil-bio {
	font-size: 17px;
	line-height: 1.8;
	color: var(--slate-500);
}

@media (max-width: 600px) {
	.autor-box,
	.autor-profil {
		flex-direction: column;
		gap: 18px;
	}
}

/* Znak zastępczy, gdy autor nie ma zdjęcia ani awatara. Inicjały w kolorach
   marki czytają się lepiej niż cudza szara sylwetka z Gravatara. */
.autor-box-foto--inicjaly,
.autor-profil-foto--inicjaly {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--navy-700), var(--teal-600));
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: 0.04em;
}

.autor-box-foto--inicjaly {
	font-size: 26px;
}

.autor-profil-foto--inicjaly {
	font-size: 38px;
}
