/* =========================================================
   ZTM Kielce — Widget "Informacja"
   ========================================================= */

.ztm-widget--informacje {
	padding: 26px 24px 28px;
}

.ztm-widget-title {
	font-size: calc(19px * var(--ztm-font-scale, 1));
	font-weight: 700;
	color: var(--ztm-navy);
	margin: 0 0 18px;
	line-height: 1.3;
}

/* =========================================================
   LISTA WPISÓW
   ========================================================= */

.ztm-info-list {
	display: flex;
	flex-direction: column;
	gap: 26px;
	transition: opacity 0.15s ease;
}

.ztm-info-list:focus {
	outline: none;
}

.ztm-info-item {
	display: flex;
	gap: 18px;
}

/* ── Thumbnail — ta sama przestrzeń dla obrazka i placeholdera ── */
.ztm-info-thumb {
	flex-shrink: 0;
	width: 140px;
	height: 140px;
	border-radius: 8px;
	overflow: hidden;
	/* Ważne: blokuje display żeby img nie miał dolnego marginesu inline */
	display: block;
	position: relative;
}

/* Obrazek wyróżniający — wypełnia cały thumbnail */
.ztm-info-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	/* Żaden margin ani padding nie może zaburzać wypełnienia */
	margin: 0;
	padding: 0;
}

/* Placeholder gdy brak obrazka */
.ztm-info-thumb-placeholder {
	/* Wypełnia cały .ztm-info-thumb */
	position: absolute;
	inset: 0;
	background: var(--ztm-navy);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: var(--ztm-white);
}

.ztm-info-thumb-placeholder span {
	font-size: calc(11px * var(--ztm-font-scale, 1));
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #f4d06f;
}

.ztm-info-thumb-placeholder svg {
	width: 38px;
	height: 38px;
}

.ztm-info-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ztm-info-title {
	font-size: calc(16px * var(--ztm-font-scale, 1));
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 8px;
}

.ztm-info-title a {
	color: var(--ztm-navy);
}

.ztm-info-title a:hover {
	text-decoration: underline;
}

.ztm-info-date {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: calc(13px * var(--ztm-font-scale, 1));
	color: var(--ztm-text-muted);
	margin: 0 0 10px;
}

.ztm-info-date svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	color: var(--ztm-text-muted);
}

.ztm-info-excerpt {
	font-size: calc(14px * var(--ztm-font-scale, 1));
	line-height: 1.6;
	color: var(--ztm-tabs-text);
	margin: 0 0 12px;
}

.ztm-info-excerpt p { margin: 0; }
.ztm-info-excerpt strong { font-weight: 700; }

.ztm-info-readmore {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: calc(14px * var(--ztm-font-scale, 1));
	font-weight: 600;
	color: var(--ztm-navy);
	margin-top: auto;
}

.ztm-info-readmore:hover { text-decoration: underline; }

.ztm-info-readmore svg {
	width: 15px;
	height: 15px;
	transition: transform 0.15s ease;
}

.ztm-info-readmore:hover svg { transform: translateX(3px); }

.ztm-info-empty {
	font-size: calc(14px * var(--ztm-font-scale, 1));
	color: var(--ztm-text-muted);
}

/* =========================================================
   PAGINACJA
   ========================================================= */

.ztm-info-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--ztm-border-grey);
}

.ztm-info-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	border: none;
	border-radius: 6px;
	background: transparent;
	font-family: var(--ztm-font);
	font-size: calc(13.5px * var(--ztm-font-scale, 1));
	font-weight: 600;
	color: var(--ztm-navy);
	cursor: pointer;
	transition: background 0.15s ease;
}

.ztm-info-pagination button.page-numbers:hover { background: #f0f4fb; }
.ztm-info-pagination button.page-numbers:disabled { color: var(--ztm-border-grey); cursor: not-allowed; }
.ztm-info-pagination button.page-numbers:disabled:hover { background: transparent; }

.ztm-info-pagination .page-numbers.current {
	background: #f4d06f;
	color: var(--ztm-navy);
	font-weight: 700;
	cursor: default;
}

.ztm-info-pagination .page-numbers.dots { color: var(--ztm-text-muted); }
.ztm-info-pagination .page-numbers svg { width: 15px; height: 15px; }

.ztm-info-pagination button.page-numbers:focus-visible {
	outline: 3px solid var(--ztm-blue-light);
	outline-offset: 2px;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

@media (max-width: 560px) {
	.ztm-info-item { flex-direction: column; }
	.ztm-info-thumb { width: 100%; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
	.ztm-widget--informacje * { transition-duration: 0.01ms !important; }
}