/* ==========================================================================
   Vistrix Labs — pojedynczy wpis (single.php)
   Źródło prawdy: Wpis.dc.html / Post EN.dc.html + Widoki mobilne.dc.html (03 · Wpis).
   ========================================================================== */

/* --------------------------------------------------------------------------
   POST HEADER (Wpis)
   -------------------------------------------------------------------------- */
.post-header {
	padding: 80px 56px 0;
}

.post-header__inner {
	max-width: 860px;
	margin: 0 auto;
}

.post-header__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--c-meta);
	transition: color var(--transition);
}

.post-header__back:hover {
	color: var(--c-black);
}

.post-header__meta {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-top: 28px;
}

.post-header__badge {
	background: var(--c-yellow);
	color: var(--c-black);
	border-radius: var(--radius-pill);
	padding: 5px 14px;
	font-size: 12.5px;
	font-weight: 600;
}

.post-header__date {
	font-size: 13.5px;
	color: var(--c-meta);
}

/* Desktop: pełna data + "min czytania"/"min read"; wariant skrócony tylko mobile */
.post-header__date--short {
	display: none;
}

.post-header__title {
	font-size: 58px;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.05;
	margin: 22px 0 0;
}

.post-header__author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 32px;
}

.post-header__author-name {
	font-weight: 600;
	font-size: 15.5px;
}

.post-header__author-role {
	font-size: 13.5px;
	color: var(--c-meta);
}

/* Avatar (nagłówek 48px / box autora 72px) + fallback inicjałów */
.post-avatar {
	border-radius: 50%;
	flex: none;
	overflow: hidden;
	background:
		repeating-linear-gradient(45deg, rgba(20, 19, 16, .08) 0 6px, rgba(20, 19, 16, 0) 6px 12px),
		var(--c-placeholder);
	display: flex;
	align-items: center;
	justify-content: center;
}

.post-avatar--sm {
	width: 48px;
	height: 48px;
}

.post-avatar--lg {
	width: 72px;
	height: 72px;
	background:
		repeating-linear-gradient(45deg, rgba(20, 19, 16, .08) 0 8px, rgba(20, 19, 16, 0) 8px 16px),
		var(--c-placeholder);
}

.post-avatar .post-avatar__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.post-avatar__initials {
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 600;
	color: var(--c-meta);
}

/* --------------------------------------------------------------------------
   HERO IMAGE (Wpis)
   -------------------------------------------------------------------------- */
.post-hero {
	padding: 48px 56px 0;
}

.post-hero__inner {
	max-width: 1100px;
	margin: 0 auto;
	border-radius: var(--radius-card-xl);
	overflow: hidden;
}

.post-hero__img {
	width: 100%;
	height: auto;
	display: block;
}

.post-hero__placeholder {
	height: 420px;
	background:
		repeating-linear-gradient(45deg, rgba(20, 19, 16, .06) 0 14px, rgba(20, 19, 16, 0) 14px 28px),
		var(--c-placeholder);
	display: flex;
	align-items: center;
	justify-content: center;
}

.post-hero__caption {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--c-meta);
}

/* --------------------------------------------------------------------------
   ARTICLE (Wpis)
   -------------------------------------------------------------------------- */
.post-article {
	padding: 64px 56px 40px;
}

.post-article__inner {
	max-width: 720px;
	margin: 0 auto;
}

/* --------------------------------------------------------------------------
   TL;DR (Wpis)
   -------------------------------------------------------------------------- */
.post-tldr {
	background: var(--c-black);
	color: var(--c-white);
	border-radius: 20px;
	padding: 30px 34px;
	margin-bottom: 48px;
}

.post-tldr__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.post-tldr__icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--c-yellow);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	color: var(--c-black);
	flex: none;
}

/* EN (Post EN.dc.html linia 73): goły żółty ✦ 17px, bez kółka */
.post-tldr__icon--plain {
	width: auto;
	height: auto;
	border-radius: 0;
	background: none;
	font-size: 17px;
	color: var(--c-yellow);
}

.post-tldr__title {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 17px;
}

.post-tldr__body {
	font-size: 16px;
	line-height: 1.65;
	color: var(--c-white-85);
}

/* --------------------------------------------------------------------------
   Treść artykułu (the_content)
   -------------------------------------------------------------------------- */
.post-content {
	font-size: 18px;
	line-height: 1.75;
	color: var(--c-article);
}

.post-content > :first-child {
	margin-top: 0;
}

.post-content p {
	font-size: 18px;
	line-height: 1.75;
	color: var(--c-article);
	margin: 18px 0 0;
}

.post-content h2 {
	font-size: 32px;
	font-weight: 800;
	letter-spacing: -0.015em;
	margin: 44px 0 0;
}

/* Listy z żółtymi kropkami */
.post-content ul {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.post-content ul li {
	position: relative;
	padding-left: 23px;
	font-size: 17.5px;
	line-height: 1.65;
	color: var(--c-article);
}

.post-content ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 9px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--c-yellow);
}

/* Blockquote z żółtą lewą krawędzią */
.post-content blockquote {
	border-left: 4px solid var(--c-yellow);
	padding: 6px 0 6px 28px;
	margin: 44px 0;
}

.post-content blockquote p {
	font-family: var(--font-heading);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
	color: var(--c-heading);
	margin: 0;
}

/* Obrazy w treści */
.post-content img {
	border-radius: var(--radius-card-sm);
	margin: 22px 0 0;
}

/* --------------------------------------------------------------------------
   AUTHOR BOX (Wpis)
   -------------------------------------------------------------------------- */
.post-author-box {
	padding: 24px 56px 72px;
}

.post-author-box__card {
	max-width: 720px;
	margin: 0 auto;
	background: var(--c-white);
	border-radius: var(--radius-card);
	padding: 32px 36px;
	display: flex;
	gap: 24px;
	align-items: center;
}

.post-author-box__name {
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 19px;
}

.post-author-box__role {
	font-size: 14px;
	color: var(--c-meta);
	margin-top: 2px;
}

.post-author-box__bio {
	font-size: 15px;
	line-height: 1.6;
	color: var(--c-body);
	margin-top: 10px;
}

/* --------------------------------------------------------------------------
   RELATED ("Czytaj dalej" / "Keep reading")
   -------------------------------------------------------------------------- */
.post-related {
	background: var(--c-white);
	padding: 88px 56px 96px;
}

.post-related__inner {
	max-width: var(--container);
	margin: 0 auto;
}

.post-related__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

.post-related__title {
	font-size: 44px;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
}

.post-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 44px;
}

/* Karty na białej sekcji: tło #F1F2F4 + metryki z makiety Wpisu */
.post-related__grid .card-post {
	background: var(--c-bg);
}

.post-related__grid .card-post__media {
	height: 180px;
}

.post-related__grid .card-post__body {
	padding: 24px 26px 28px;
	gap: 10px;
}

.post-related__grid .card-post__title {
	font-size: 20px;
	line-height: 1.22;
}

/* --------------------------------------------------------------------------
   CTA — kompaktowy wariant wpisu (Wpis.dc.html linie 157–160 / Post EN.dc.html):
   bez leadu i deco-circles, jak .blog-cta na blogu.
   -------------------------------------------------------------------------- */
.post-cta {
	background: var(--c-yellow);
	padding: 88px 56px;
	text-align: center;
}

.post-cta__title {
	font-size: 52px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.04;
	max-width: 760px;
	margin: 0 auto;
}

/* Czarny pełny → hover tło #FF6B4A (reguła z README) */
.post-cta__btn {
	display: inline-flex;
	justify-content: center;
	background: var(--c-black);
	color: var(--c-white);
	font-weight: 600;
	font-size: 16px;
	padding: 18px 36px;
	border-radius: var(--radius-pill);
	margin-top: 36px;
	transition: background var(--transition);
}

.post-cta__btn:hover {
	background: var(--c-coral);
}

/* --------------------------------------------------------------------------
   Mobile ≤768px (Widoki mobilne.dc.html — 03 · Wpis; artykuł 15.5px/1.7)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {

	/* POST HEADER */
	.post-header {
		padding: 36px 24px 0;
	}

	.post-header__back {
		font-size: 13px;
	}

	.post-header__meta {
		gap: 8px;
		margin-top: 18px;
	}

	.post-header__badge {
		padding: 4px 11px;
		font-size: 11px;
	}

	.post-header__date {
		font-size: 12px;
	}

	/* Mobile: data skrócona + samo "min" ("12 cze 2026 · 7 min" / "Jun 12, 2026 · 7 min") */
	.post-header__date--full {
		display: none;
	}

	.post-header__date--short {
		display: inline;
	}

	.post-header__title {
		font-size: 30px;
		letter-spacing: -0.02em;
		line-height: 1.1;
		margin: 14px 0 0;
	}

	.post-header__author {
		gap: 10px;
		margin-top: 18px;
	}

	.post-avatar--sm {
		width: 38px;
		height: 38px;
	}

	.post-header__author-name {
		font-size: 13.5px;
	}

	.post-header__author-role {
		font-size: 12px;
	}

	/* HERO IMAGE */
	.post-hero {
		padding: 24px 24px 0;
	}

	.post-hero__inner {
		border-radius: 16px;
	}

	.post-hero__placeholder {
		height: 180px;
	}

	.post-hero__caption {
		font-size: 11px;
	}

	/* ARTICLE */
	.post-article {
		padding: 28px 24px 8px;
	}

	/* TL;DR */
	.post-tldr {
		border-radius: 16px;
		padding: 20px 22px;
		margin-bottom: 22px;
	}

	.post-tldr__head {
		gap: 8px;
		margin-bottom: 10px;
	}

	/* Mobile (oba języki): goły żółty ✦ 15px, bez kółka */
	.post-tldr__icon {
		width: auto;
		height: auto;
		border-radius: 0;
		background: none;
		font-size: 15px;
		color: var(--c-yellow);
	}

	.post-tldr__title {
		font-size: 14.5px;
	}

	.post-tldr__body {
		font-size: 13.5px;
		line-height: 1.6;
	}

	/* Treść: 1 kolumna, 15.5px / 1.7 */
	.post-content {
		font-size: 15.5px;
		line-height: 1.7;
	}

	.post-content p {
		font-size: 15.5px;
		line-height: 1.7;
		margin: 12px 0 0;
	}

	.post-content h2 {
		font-size: 21px;
		letter-spacing: -0.01em;
		margin: 26px 0 0;
	}

	.post-content ul li {
		font-size: 15.5px;
		line-height: 1.7;
	}

	.post-content ul li::before {
		top: 8px;
	}

	.post-content blockquote {
		border-left-width: 3px;
		padding: 4px 0 4px 16px;
		margin: 24px 0;
	}

	.post-content blockquote p {
		font-size: 17px;
	}

	/* AUTHOR BOX */
	.post-author-box {
		padding: 0 24px 40px;
	}

	.post-author-box__card {
		border-radius: 16px;
		padding: 20px 22px;
		gap: 14px;
	}

	.post-avatar--lg {
		width: 52px;
		height: 52px;
	}

	.post-author-box__name {
		font-size: 16px;
	}

	.post-author-box__role {
		font-size: 12.5px;
	}

	.post-author-box__bio {
		font-size: 14px;
	}

	/* RELATED — 1 kolumna (metryki kart jak w base.css mobile) */
	.post-related {
		padding: 52px 24px;
	}

	.post-related__title {
		font-size: 30px;
		letter-spacing: -0.015em;
	}

	.post-related__grid {
		grid-template-columns: 1fr;
		gap: 14px;
		margin-top: 24px;
	}

	.post-related__grid .card-post__media {
		height: 150px;
	}

	.post-related__grid .card-post__body {
		padding: 18px 20px 22px;
		gap: 10px;
	}

	.post-related__grid .card-post__title {
		font-size: 17px;
		line-height: 1.25;
	}

	/* CTA */
	.post-cta {
		padding: 48px 24px;
	}

	.post-cta__title {
		font-size: 28px;
		letter-spacing: -0.015em;
		line-height: 1.08;
	}

	.post-cta__btn {
		width: 100%;
		font-size: 15px;
		padding: 15px 0;
		margin-top: 20px;
	}
}
