/* Bloki wpisu (inc/bloki.php): ramki, kroki, plusy i minusy, pytania, polecany produkt.
   Ten sam plik ładuje się na stronie, w edytorze blokowym i w edytorze „Treść po angielsku",
   dlatego kolory mają wartości zapasowe (w edytorze nie ma zmiennych palety motywu).
   Etykiety ramek są w CSS i zmieniają język razem ze stroną (:lang(en)). */

.wp-block-group[class*="is-style-"] {
	--box-c: var(--gold-accent, #984f80);
	--box-bg: #fbf3f9;
	position: relative;
	margin: 28px 0;
	padding: 18px 22px 18px 22px;
	border-radius: 12px;
	border-left: 4px solid var(--box-c);
	background: var(--box-bg);
	color: var(--dark-brown, #2e2150);
	line-height: 1.7;
}
.wp-block-group[class*="is-style-"] > * { margin-top: 0; }
.wp-block-group[class*="is-style-"] > * + * { margin-top: 10px; }
.wp-block-group[class*="is-style-"] > :last-child { margin-bottom: 0; }
.wp-block-group[class*="is-style-"]::before {
	display: flex; align-items: center; gap: 8px;
	margin-bottom: 8px;
	font: 700 0.7rem/1.2 var(--font-body, "Plus Jakarta Sans", "Segoe UI", sans-serif);
	letter-spacing: 0.16em; text-transform: uppercase; color: var(--box-c);
}

/* Etykiety PL / EN */
.is-style-ciekawostka::before { content: "💡 Ciekawostka"; }
.is-style-informacja::before { content: "ℹ️ Dobrze wiedzieć"; }
.is-style-uwaga::before { content: "⚠️ Na co uważać"; }
.is-style-wskazowka::before { content: "🧜‍♀️ Wskazówka instruktorki"; }
.is-style-w-skrocie::before { content: "✓ W skrócie"; }
.is-style-plusy::before { content: "👍 Plusy"; }
.is-style-minusy::before { content: "👎 Minusy"; }
:lang(en) .is-style-ciekawostka::before, .is-style-ciekawostka:lang(en)::before { content: "💡 Did you know?"; }
:lang(en) .is-style-informacja::before, .is-style-informacja:lang(en)::before { content: "ℹ️ Good to know"; }
:lang(en) .is-style-uwaga::before, .is-style-uwaga:lang(en)::before { content: "⚠️ Watch out"; }
:lang(en) .is-style-wskazowka::before, .is-style-wskazowka:lang(en)::before { content: "🧜‍♀️ Instructor's tip"; }
:lang(en) .is-style-w-skrocie::before, .is-style-w-skrocie:lang(en)::before { content: "✓ In short"; }
:lang(en) .is-style-plusy::before, .is-style-plusy:lang(en)::before { content: "👍 Pros"; }
:lang(en) .is-style-minusy::before, .is-style-minusy:lang(en)::before { content: "👎 Cons"; }

/* Kolory ramek */
.wp-block-group.is-style-ciekawostka { --box-c: #984f80; --box-bg: #fbf3f9; }
.wp-block-group.is-style-informacja { --box-c: #1d7eba; --box-bg: #eef6fc; }
.wp-block-group.is-style-uwaga { --box-c: #c2410c; --box-bg: #fff4ec; }
.wp-block-group.is-style-wskazowka { --box-c: #6d4fa3; --box-bg: #f4effb; font-style: italic; }
.wp-block-group.is-style-wskazowka::before { font-style: normal; }
.wp-block-group.is-style-w-skrocie { --box-c: #2e2150; --box-bg: #f6f4f9; border-left-width: 0; border-top: 4px solid var(--box-c); }
.wp-block-group.is-style-plusy { --box-c: #15803d; --box-bg: #effaf3; }
.wp-block-group.is-style-minusy { --box-c: #b91c1c; --box-bg: #fdf1f1; }

/* Listy w ramkach: znaczki zamiast kropek */
.wp-block-group[class*="is-style-"] ul { list-style: none; padding-left: 0; margin: 0; }
.wp-block-group[class*="is-style-"] ul li { position: relative; padding-left: 26px; }
.wp-block-group[class*="is-style-"] ul li + li { margin-top: 6px; }
.wp-block-group[class*="is-style-"] ul li::before { position: absolute; left: 0; top: 0; font-weight: 700; color: var(--box-c); content: "•"; }
.wp-block-group.is-style-w-skrocie ul li::before, .wp-block-group.is-style-plusy ul li::before { content: "✓"; }
.wp-block-group.is-style-minusy ul li::before { content: "✗"; }
.wp-block-columns .wp-block-group[class*="is-style-"] { margin: 0; height: 100%; box-sizing: border-box; }
.wp-block-columns:has(.is-style-plusy) { margin: 28px 0; gap: 16px; }

/* Wyróżnione wezwanie (Zapisz się) */
.wp-block-group.is-style-zapisz-sie {
	border: 0; text-align: center; padding: 34px 26px; color: #fff;
	background: linear-gradient(135deg, var(--dark-brown, #2e2150), var(--deep-taupe, #4c4170));
}
.wp-block-group.is-style-zapisz-sie::before { content: none; }
.is-style-zapisz-sie h2, .is-style-zapisz-sie h3 { color: #fff !important; margin: 0 0 8px; font-family: var(--font-display, Georgia, serif); font-weight: 400; }
.is-style-zapisz-sie p { color: rgba(255, 255, 255, 0.86); }
.is-style-zapisz-sie .wp-block-buttons { justify-content: center; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.is-style-zapisz-sie .wp-block-button__link {
	display: inline-block; background: #fff; color: var(--dark-brown, #2e2150) !important; text-decoration: none !important;
	padding: 14px 30px; border-radius: 2px; font: 600 0.72rem/1 var(--font-body, sans-serif); letter-spacing: 0.2em; text-transform: uppercase;
}
.is-style-zapisz-sie .wp-block-button__link:hover { background: var(--accent, #f7aef8); }

/* Krok po kroku: numery w kółkach */
ol.is-style-kroki { list-style: none; counter-reset: krok; padding-left: 0 !important; margin: 24px 0; }
ol.is-style-kroki > li { counter-increment: krok; position: relative; padding: 4px 0 4px 52px; min-height: 36px; }
ol.is-style-kroki > li + li { margin-top: 14px; }
ol.is-style-kroki > li::before {
	content: counter(krok); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--gold-accent, #984f80); color: #fff; font: 700 0.95rem/1 var(--font-body, sans-serif);
}

/* Pytania i odpowiedzi (blok Szczegóły) */
.entry-content details, .editor-styles-wrapper details.wp-block-details {
	border: 1px solid var(--shell, #dcc6f0); border-radius: 10px; padding: 0; margin: 12px 0; background: #fff;
}
.entry-content details > summary, .editor-styles-wrapper details.wp-block-details > summary {
	cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; position: relative;
	font-weight: 600; color: var(--dark-brown, #2e2150);
}
.entry-content details > summary::-webkit-details-marker { display: none; }
.entry-content details > summary::after, .editor-styles-wrapper details.wp-block-details > summary::after {
	content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
	font-size: 1.3rem; color: var(--gold-accent, #984f80); transition: transform 0.2s ease;
}
.entry-content details[open] > summary::after { transform: translateY(-50%) rotate(45deg); }
.entry-content details > :not(summary) { padding: 0 18px 16px; margin: 0; }

/* Polecany produkt */
.post-product {
	display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: center;
	margin: 30px 0; padding: 16px; border: 1px solid var(--shell, #dcc6f0); border-radius: 14px; background: #fff;
	box-shadow: 0 14px 30px -24px rgba(46, 33, 80, 0.5);
}
.post-product__img { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 1; }
.post-product__img img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0 !important; }
.post-product__label { margin: 0 0 4px !important; font: 700 0.68rem/1.2 var(--font-body, sans-serif); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-accent, #984f80); }
.post-product__name { margin: 0 0 6px !important; font-family: var(--font-display, Georgia, serif); font-weight: 400; font-size: 1.35rem; }
.post-product__name a { color: var(--dark-brown, #2e2150) !important; text-decoration: none !important; }
.post-product__desc { margin: 0 0 8px !important; font-size: 0.92rem; color: var(--deep-taupe, #4c4170); line-height: 1.6; }
.post-product__price { margin: 0 0 12px !important; font-family: var(--font-display, Georgia, serif); font-size: 1.3rem; color: var(--dark-brown, #2e2150); }
.post-product__price span { font-size: 0.8em; }
.post-product__btn { text-decoration: none !important; }
.entry-content .post-product__btn { color: #fff !important; }
.post-product--pick { display: block; }
.post-product__empty { padding: 14px; border: 1px dashed #c3c4c7; border-radius: 8px; color: #646970; }
@media (max-width: 600px) {
	.post-product { grid-template-columns: 1fr; }
	.post-product__img { aspect-ratio: 16 / 10; }
	.wp-block-group[class*="is-style-"] { padding: 16px 18px; }
}

/* Edytor klasyczny (TinyMCE): ramki widać już podczas pisania */
body.mce-content-body .wp-block-group[class*="is-style-"] { margin: 16px 0; }
