/*
Theme Name:   Veto Media
Description:  Motyw potomny SmartMag dla stron zapleczowych. Panel „Veto Media”: strona główna z gotowych układów, styl i kolory, stopka, reklamy, eksport ustawień.
Author:       Sadurski.pl
Author URI:   https://sadurski.pl
Template:     smart-mag
Version:      1.0.2
Requires at least: 6.4
Requires PHP: 7.4
Text Domain:  veto-media
*/

/* Style motywu potomnego. Ładowane po style.css rodzica (uchwyt: smartmag-child).
   Kolory i fonty wyłącznie ze zmiennych SmartMag, żeby działały ustawienia panelu i Customizera. */

:root {
	--sz-radius: 6px;
	--sz-gap: 40px;
}

/* Przycisk „Więcej” w nagłówkach sekcji.
   SmartMag po najechaniu daje mu kolor linków (w jasnym schemacie czarny), więc na ciemnych
   belkach (np. styl nagłówka „g”) tekst i obramowanie znikały. Kolor przewodni działa na każdej belce. */
.block-head .view-link {
	transition: color .15s, background-color .15s, border-color .15s;
}
.block-head .view-link:hover,
.block-head .view-link:focus-visible {
	color: var(--c-main);
}
.block-head .view-link-b:hover,
.block-head .view-link-b:focus-visible {
	color: #fff;
	background-color: var(--c-main);
	border-color: var(--c-main);
}

/* Belki nagłówków w stylu „g”: w kolorze akcentu zamiast czarnego (#080808 w SmartMag).
   Kolor akcentu ma kontrast min. 4,5:1 z białym (pilnuje tego panel), więc biały tekst jest czytelny. */
.block-head-g {
	background: var(--c-main);
}
.block-head-g .heading,
.block-head-g .heading a {
	color: #fff;
}
.block-head-g .view-link {
	color: rgb(255 255 255 / .9);
}
.block-head-g .view-link-b {
	border-color: rgb(255 255 255 / .45);
}
.block-head-g .view-link:hover,
.block-head-g .view-link:focus-visible {
	color: var(--c-main);
	background-color: #fff;
	border-color: #fff;
}

/* Logo tekstowe (gdy nie ma graficznego): nazwa + końcówka adresu w kolorze akcentu.
   Wiersz z logo jest czarny (SZ_TLO_LOGO w inc/style.php): nazwa biała, końcówka w akcencie. */
.sz-logo-tekst {
	font-family: var(--title-font, var(--h-font));
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fff;
	line-height: 1;
	white-space: nowrap;
}
.sz-logo-tekst__koncowka {
	color: var(--c-main);
}

/* „Comments are closed.”: napis jest pusty (inc/tlumaczenia.php), chowamy też sam akapit. */
.comments-area .nocomments,
.nocomments {
	display: none;
}

/* Strona główna z sekcji panelu */
.sz-glowna {
	padding-top: 28px;
	padding-bottom: 20px;
}
.sz-glowna__sekcja {
	margin-bottom: var(--sz-gap);
}
.sz-glowna__sekcja .block-wrap {
	margin-bottom: 0;
}

/* Najnowsze + panel boczny */
.sz-z-bocznym {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 36px;
	align-items: start;
}
.sz-z-bocznym__boczny {
	display: grid;
	gap: 28px;
}
@media (max-width: 940px) {
	.sz-z-bocznym {
		grid-template-columns: 1fr;
	}
}

/* Duży wpis + lista (Wyróżnione, Sekcja kategorii) */
.sz-mix {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 28px;
	align-items: start;
}
.sz-wyroznione .sz-mix {
	grid-template-columns: 1.55fr 1fr;
}
.sz-mix .block-wrap {
	margin-bottom: 0;
}

/* Wstęp (SEO) */
.sz-wstep {
	border: 1px solid var(--c-separator);
	border-radius: var(--sz-radius);
	padding: 22px 24px;
}
.sz-wstep__tytul {
	font-size: 20px;
	margin: 0 0 8px;
}
.sz-wstep p {
	color: var(--c-contrast-650);
	font-size: 15px;
	margin: 0 0 8px;
}
.sz-wstep__wiecej summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--c-main);
	margin-bottom: 8px;
}

/* Siatka 4 kafelków (wariant sekcji kategorii): na telefonie 2 × 2 z mniejszymi tytułami */
.sz-siatka4 .post-title {
	font-size: 17px;
	line-height: 1.3;
}
@media (max-width: 767px) {
	.sz-siatka4 .post-title {
		font-size: 15px;
	}
	.sz-siatka4 .cat-labels .category {
		font-size: 9px;
	}
}

/* Baner */
.sz-baner {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	background: var(--c-contrast-900);
	color: var(--c-contrast-0);
	border-radius: var(--sz-radius);
	overflow: hidden;
}
.sz-baner--bez-obrazu {
	grid-template-columns: 1fr;
}
.sz-baner__tekst {
	padding: 40px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
}
.sz-baner__tytul {
	color: inherit;
	font-size: clamp(24px, 2.6vw, 34px);
	line-height: 1.15;
	margin: 0;
}
.sz-baner p {
	margin: 0;
	opacity: .85;
	max-width: 44ch;
}
.sz-baner__obraz {
	width: 100%;
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	display: block;
}

/* Przycisk: reset narzuconej wysokości i line-height z motywu */
.sz-przycisk {
	appearance: none;
	height: auto;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	background: var(--c-main);
	color: #fff;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: var(--sz-radius);
	transition: transform .15s ease, filter .15s ease;
}
.sz-przycisk:hover {
	color: #fff;
	filter: brightness(1.08);
}
.sz-przycisk:active {
	transform: translateY(1px);
}

/* Chmura kategorii */
.sz-kategorie__lista {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.sz-kategorie__lista a {
	display: inline-block;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid var(--c-separator);
	border-radius: 999px;
	padding: 6px 12px;
	color: var(--c-contrast-800);
}
.sz-kategorie__lista a:hover {
	border-color: var(--c-main);
	color: var(--c-main);
}
.sz-kategorie__lista span {
	color: var(--c-contrast-450);
	font-size: 12px;
	margin-left: 2px;
}
.sz-kategorie__wszystkie {
	display: inline-block;
	margin-top: 12px;
	font-size: 13px;
	font-weight: 600;
	color: var(--c-main);
}

/* O autorze */
.sz-autor {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 14px;
	align-items: center;
	border: 1px solid var(--c-separator);
	border-radius: var(--sz-radius);
	padding: 16px;
}
.sz-autor--bez-zdjecia {
	grid-template-columns: 1fr;
}
.sz-autor__zdjecie {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}
.sz-autor__imie {
	display: block;
	font-size: 15px;
}
.sz-autor p {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--c-contrast-650);
}

/* Lista wpisów bez miniatur: same tytuły z kwadracikiem w kolorze akcentu */
.sz-linki .l-post {
	position: relative;
	padding-left: 14px;
}
.sz-linki .l-post::before {
	content: "";
	position: absolute;
	left: 0;
	top: .55em;
	width: 6px;
	height: 6px;
	background: var(--c-main);
}
.sz-linki .post-title {
	font-size: 14px;
	font-weight: 500;
}

/* Stopka: „Nasze serwisy”, domena + opis, kwadracik jak w listach */
.sz-stopka-siec {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.sz-stopka-siec li {
	position: relative;
	margin: 0;
	padding-left: 14px;
	font-size: 14px;
	line-height: 1.35;
}
.sz-stopka-siec li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .5em;
	width: 6px;
	height: 6px;
	background: var(--c-main);
}
.sz-stopka-siec a {
	font-weight: 600;
	color: var(--c-contrast-900);
}
.sz-stopka-siec a:hover {
	color: var(--c-main);
}
.sz-stopka-siec span {
	display: block;
	font-size: 12.5px;
	color: var(--c-contrast-650);
}

/* Stopka z panelu: kolumny na białym tle, czarna tylko dolna belka */
.sz-stopka {
	--sz-stopka-dol: #0b0b0c;
	background: #fff;
	border-top: 1px solid var(--c-separator);
}
.sz-stopka__gora {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 40px;
	padding-top: 48px;
	padding-bottom: 36px;
}
.sz-stopka__gora .block-wrap {
	margin-bottom: 0;
}
.sz-stopka .post-title a:hover {
	color: var(--c-main);
}
.sz-stopka__dol {
	background: var(--sz-stopka-dol);
	color: #e7e7ea;
}

/* Dolna belka stopki */
.sz-stopka-dol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 28px;
	padding: 20px 0;
	font-size: 13px;
}
.sz-stopka-dol__marka > a {
	font-weight: 600;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.sz-stopka-dol__marka span {
	color: #a3a3ab;
	margin-left: 10px;
}
.sz-stopka-dol__marka span a {
	color: #fff;
}
.sz-stopka-dol__prawa {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	margin-left: auto;
}
.sz-stopka-dol__menu .menu {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.sz-stopka-dol__menu a {
	color: #e7e7ea;
}
.sz-stopka__dol a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.sz-stopka__rodzina {
	border-top: 1px solid #26262a;
	padding: 14px 0;
	font-size: 12px;
	color: #a3a3ab;
}
.sz-stopka__rodzina a {
	color: #fff;
	font-weight: 600;
}

/* Reklamy */
.sz-reklama {
	text-align: center;
	min-height: var(--sz-rek-wys, 0px);
}
.sz-reklama__etykieta {
	display: block;
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--c-contrast-450);
	margin-bottom: 4px;
}
.sz-reklama__obraz {
	display: inline-block;
	max-width: 100%;
	height: auto;
}
.sz-reklama--podglad {
	border: 1px dashed var(--c-separator);
	padding: 24px;
	color: var(--c-contrast-650);
}

.sz-uwaga {
	padding: 16px;
	border: 1px dashed var(--c-separator);
	color: var(--c-contrast-650);
}

@media (max-width: 767px) {
	.sz-reklama {
		min-height: var(--sz-rek-wys-tel, 0px);
	}
	.sz-stopka-dol {
		flex-direction: column;
		align-items: flex-start;
	}
	.sz-stopka-dol__prawa {
		margin-left: 0;
	}
	.sz-mix,
	.sz-wyroznione .sz-mix {
		grid-template-columns: 1fr;
	}
	.sz-baner {
		grid-template-columns: 1fr;
	}
	.sz-baner__tekst {
		padding: 28px 20px;
	}
	.sz-baner__obraz {
		min-height: 200px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sz-przycisk {
		transition: none;
	}
}

/* Wolne miejsce reklamowe: grafika „Miejsce na Twoją reklamę” z linkiem do kontaktu */
.sz-rek-puste {
	margin: 28px 0;
}
.sz-rek-puste a {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 90px;
	padding: 18px 22px;
	border: 1.5px dashed color-mix(in srgb, var(--c-main) 45%, #d4d4d8);
	border-radius: var(--sz-radius, 8px);
	background:
		repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--c-main) 4%, transparent) 10px 20px),
		color-mix(in srgb, var(--c-main) 3%, #fff);
	color: var(--c-contrast-900);
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.sz-rek-puste a:hover,
.sz-rek-puste a:focus-visible {
	border-color: var(--c-main);
	border-style: solid;
	outline: none;
}
.sz-rek-puste__ikona {
	flex: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border-radius: 50%;
	background: var(--c-main);
	fill: none;
	stroke: #fff;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.sz-rek-puste__tekst {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 2px;
}
.sz-rek-puste__tekst strong {
	font-size: 16px;
	line-height: 1.25;
}
.sz-rek-puste__tekst span {
	font-size: 13px;
	color: var(--c-contrast-650);
}
.sz-rek-puste__cta {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 99px;
	background: var(--c-contrast-900, #18181b);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}
.sz-rek-puste__cta svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s ease;
}
.sz-rek-puste a:hover .sz-rek-puste__cta {
	background: var(--c-main);
}
.sz-rek-puste a:hover .sz-rek-puste__cta svg {
	transform: translateX(2px);
}
.sz-rek-puste--szeroki a {
	min-height: 140px;
	justify-content: center;
}
.sz-rek-puste--szeroki .sz-rek-puste__tekst {
	flex: 0 1 auto;
}
.sz-rek-puste--kwadrat {
	margin: 0 0 28px;
}
.sz-rek-puste--kwadrat a,
.sz-z-bocznym .sz-rek-puste a {
	flex-direction: column;
	justify-content: center;
	text-align: center;
	aspect-ratio: 6 / 5;
	min-height: 0;
}
.sz-rek-puste--kwadrat .sz-rek-puste__tekst {
	flex: 0 0 auto;
}
@media (max-width: 767px) {
	.sz-rek-puste a {
		flex-wrap: wrap;
		gap: 12px;
		padding: 16px;
	}
	.sz-rek-puste--poziomy .sz-rek-puste__cta,
	.sz-rek-puste--szeroki .sz-rek-puste__cta {
		width: 100%;
		justify-content: center;
	}
}
@media (prefers-reduced-motion: reduce) {
	.sz-rek-puste a,
	.sz-rek-puste__cta svg {
		transition: none;
	}
}
