/**
 * politykaOK – szablon Aktualności
 */

/* ─── Hero ────────────────────────────────────────────────────────────────── */

.aktualnosci__hero .hero__inner {
	padding-bottom: var(--space-xl);
}

/* ─── List section ───────────────────────────────────────────────────────── */

.aktualnosci__list {
	padding: var(--space-2xl) var(--space-lg);
	background: #f8f9fb;
}

.aktualnosci__inner {
	max-width: 1100px;
	margin: 0 auto;
}

/* ─── Grid ────────────────────────────────────────────────────────────────── */

.aktualnosci__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-xl) var(--space-lg);
}

@media (max-width: 900px) {
	.aktualnosci__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

/* ─── News card ───────────────────────────────────────────────────────────── */

.news-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
	transition: box-shadow 0.2s, transform 0.2s;
}

@media (hover: hover) and (pointer: fine) {
	.news-card:hover {
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
		transform: translateY(-2px);
	}
}

.news-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* 16:9 image container */
.news-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e8edf5;
	flex-shrink: 0;
}

.news-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
	.news-card:hover .news-card__image img {
		transform: scale(1.04);
	}
}

.news-card__placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #b0bac9;
}

/* Card body */
.news-card__body {
	padding: var(--space-md) var(--space-md) var(--space-lg);
	display: flex;
	flex-direction: column;
	gap: var(--space-xs, 6px);
	flex: 1;
}

.news-card__title {
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
	color: var(--text, #1a1a1a);
}

.news-card__date {
	font-size: 0.8rem;
	color: var(--text-muted, #888);
	margin-top: auto;
	padding-top: var(--space-xs, 6px);
}

/* ─── Pagination ─────────────────────────────────────────────────────────── */

.aktualnosci__pagination {
	margin-top: var(--space-2xl);
	display: flex;
	justify-content: center;
}

.aktualnosci__pagination .page-numbers {
	display: inline-flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}

.aktualnosci__pagination .page-numbers li a,
.aktualnosci__pagination .page-numbers li span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid var(--border, #dde1e7);
	background: #fff;
	color: var(--text, #1a1a1a);
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

@media (hover: hover) and (pointer: fine) {
	.aktualnosci__pagination .page-numbers li a:hover {
		background: #f0f4ff;
		border-color: #01173D;
		color: #01173D;
	}
}

.aktualnosci__pagination .page-numbers li span.current {
	background: #01173D;
	border-color: #01173D;
	color: #fff;
}

/* ─── Empty state ────────────────────────────────────────────────────────── */

.aktualnosci__empty {
	text-align: center;
	color: var(--text-muted, #888);
	padding: var(--space-2xl) 0;
	font-size: 1rem;
}

/* ─── CTA ────────────────────────────────────────────────────────────────── */

.aktualnosci__cta {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	padding: var(--space-2xl) var(--space-lg);
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #01173D 100%);
	text-align: center;
	box-sizing: border-box;
}

.aktualnosci__cta-inner {
	max-width: 600px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-lg);
}

.aktualnosci__cta-lead {
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
	margin: 0;
}

/* ─── Homepage news section ──────────────────────────────────────────────── */

.front-page-news {
	background: var(--color-bg);
	padding: var(--space-xl) var(--space-lg);
}

.front-page-news__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.front-page-news__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-md);
	margin-bottom: var(--space-lg);
	flex-wrap: wrap;
}

.front-page-news__title {
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 3vw, 1.6rem);
	font-weight: 700;
	margin: 0;
	color: var(--color-text);
}

.front-page-news__all-link {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-accent);
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.15s;
}

@media (hover: hover) and (pointer: fine) {
	.front-page-news__all-link:hover {
		opacity: 0.75;
		text-decoration: underline;
	}
}

.front-page-news__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--space-lg);
}

@media (max-width: 900px) {
	.front-page-news__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.front-page-news__grid {
		grid-template-columns: 1fr;
	}
}

/* news-card reused — already defined above */

/* ─── Homepage CTA ───────────────────────────────────────────────────────── */

.front-page-cta {
	padding: var(--space-xl) var(--space-lg);
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #01173D 100%);
	text-align: center;
}

.front-page-cta__inner {
	max-width: 600px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-lg);
}

.front-page-cta__lead {
	font-size: 1.05rem;
	line-height: 1.7;
	color: rgba(255, 255, 255, 0.88);
	margin: 0;
}

/* ─── Single post ────────────────────────────────────────────────────────── */

.single-post__hero {
	padding: calc(var(--space-2xl) + 40px) var(--space-lg) var(--space-2xl);
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #01173D 100%);
	color: #fff;
}

.single-post__hero-inner {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.single-post__title {
	font-family: var(--font-display);
	font-size: clamp(1.6rem, 4vw, 2.5rem);
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 var(--space-md);
	letter-spacing: -0.02em;
}

.single-post__date {
	display: block;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
}

/* ─── Post body ──────────────────────────────────────────────────────────── */

.single-post__body {
	background: #fff;
	padding: var(--space-2xl) var(--space-lg);
}

.single-post__inner {
	max-width: 800px;
	margin: 0 auto;
}

/* Featured image 16:9 */
.single-post__featured-image {
	margin: 0 0 var(--space-xl);
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #e8edf5;
}

.single-post__featured-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ─── Content typography ─────────────────────────────────────────────────── */

.single-post__content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--text, #1a1a1a);
}

.single-post__content p {
	margin: 0 0 var(--space-md);
}

.single-post__content h2 {
	font-family: var(--font-display);
	font-size: 1.5rem;
	font-weight: 700;
	margin: var(--space-xl) 0 var(--space-sm);
	color: var(--text, #1a1a1a);
	letter-spacing: -0.01em;
}

.single-post__content h3 {
	font-family: var(--font-display);
	font-size: 1.2rem;
	font-weight: 700;
	margin: var(--space-lg) 0 var(--space-sm);
	color: var(--text, #1a1a1a);
}

.single-post__content ul,
.single-post__content ol {
	margin: 0 0 var(--space-md) var(--space-lg);
	padding: 0;
}

.single-post__content li {
	margin-bottom: 6px;
}

.single-post__content a {
	color: var(--accent, #c0392b);
	text-decoration: underline;
	text-underline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
	.single-post__content a:hover {
		text-decoration: none;
	}
}

.single-post__content blockquote {
	margin: var(--space-lg) 0;
	padding: var(--space-md) var(--space-lg);
	border-left: 4px solid #01173D;
	background: #f0f4ff;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #333;
}

.single-post__content blockquote p {
	margin: 0;
}

.single-post__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: var(--space-md) 0;
}

.single-post__content figure {
	margin: var(--space-lg) 0;
}

.single-post__content figcaption {
	font-size: 0.85rem;
	color: var(--text-muted, #888);
	text-align: center;
	margin-top: 6px;
}

.single-post__content pre {
	background: #1e2030;
	color: #cdd6f4;
	padding: var(--space-md);
	border-radius: 8px;
	overflow-x: auto;
	font-size: 0.9rem;
	line-height: 1.6;
	margin: var(--space-md) 0;
}

.single-post__content code {
	background: #f0f2f5;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
}

.single-post__content pre code {
	background: transparent;
	padding: 0;
}

/* ─── Tags ───────────────────────────────────────────────────────────────── */

.single-post__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: var(--space-xl);
	padding-top: var(--space-xl);
	border-top: 1px solid var(--border, #dde1e7);
}

.single-post__tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 12px;
	background: #f0f4ff;
	color: #01173D;
	font-size: 0.825rem;
	font-weight: 600;
	border-radius: 100px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}

@media (hover: hover) and (pointer: fine) {
	.single-post__tag:hover {
		background: #01173D;
		color: #fff;
	}
}

/* ─── Prev/next navigation ───────────────────────────────────────────────── */

.single-post__nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-lg);
	margin-top: var(--space-xl);
	padding-top: var(--space-xl);
	border-top: 1px solid var(--border, #dde1e7);
}

.single-post__nav-prev { text-align: left; }
.single-post__nav-next { text-align: right; }

.single-post__nav-label {
	display: block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--text-muted, #888);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 6px;
}

.single-post__nav-link {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--text, #1a1a1a);
	text-decoration: none;
	line-height: 1.4;
	transition: color 0.15s;
}

@media (hover: hover) and (pointer: fine) {
	.single-post__nav-link:hover {
		color: var(--accent, #c0392b);
	}
}

/* ─── Responsive tweaks ──────────────────────────────────────────────────── */

@media (max-width: 767px) {
	.aktualnosci__list,
	.front-page-news,
	.aktualnosci__cta,
	.front-page-cta {
		padding: var(--space-lg) var(--space-md);
	}

	.front-page-news__header {
		flex-direction: column;
		align-items: flex-start;
	}

	.single-post__hero {
		padding: calc(var(--space-xl) + 30px) var(--space-md) var(--space-xl);
	}

	.single-post__body {
		padding: var(--space-xl) var(--space-md);
	}

	.single-post__nav {
		grid-template-columns: 1fr;
	}

	.single-post__nav-next {
		text-align: left;
	}
}
