/*
Theme Name: EUROFUR
Template: twentytwentyfive
Description: Motyw EUROFUR — wygląd starej strony eurofur.eu (Teluro/Colibri: Open Sans, akcent koralowy, okładka z autostradą, karty wpisów) odtworzony na motywie blokowym. Kolory i typografia w theme.json, układ w templates/ i parts/, tu tylko to, czego theme.json nie wyrazi.
Version: 2.1.0
Requires at least: 6.7
Tested up to: 7.1
*/

/* ── Nagłówek nałożony na okładkę ─────────────────────────────── */

.ef-header .wp-block-site-title a { text-decoration: none; }

.ef-nav .wp-block-navigation-item__content {
	padding: 10px 0;
	text-decoration: none;
	position: relative;
}
.ef-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 4px;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transition: transform .2s ease;
}
.ef-nav .wp-block-navigation-item__content:hover::after,
.ef-nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }

/* Menu mobilne (nakładka na cały ekran) — bez podkreśleń, większe pozycje. */
.ef-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1rem; }
.ef-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { display: none; }

.ef-topbar p { margin: 0; }
@media (max-width: 600px) {
	.ef-topbar { font-size: 12px !important; }
	.ef-topbar .ef-ico-pin { display: none; }
	.ef-topbar .wp-block-group { gap: 6px 16px !important; }
}
.ef-topbar a { color: inherit; text-decoration: none; }
.ef-topbar a:hover { color: var(--wp--preset--color--base); }

/* ── Ikonki (maski SVG, kolor z currentColor) ─────────────────── */

.ef-ico { display: inline-flex; align-items: center; gap: 8px; }
.ef-ico::before {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background-color: currentColor;
	-webkit-mask: var(--ef-ico) center / contain no-repeat;
	mask: var(--ef-ico) center / contain no-repeat;
}
.ef-topbar .ef-ico::before { background-color: var(--wp--preset--color--accent); }
.ef-ico-pin   { --ef-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.ef-ico-phone { --ef-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
.ef-ico-mail  { --ef-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.ef-ico-user  { --ef-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7'/%3E%3C/svg%3E"); }
.ef-ico-clock { --ef-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.ef-ico-folder{ --ef-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 6.5A1.5 1.5 0 0 1 4.5 5H9l2 2h8.5A1.5 1.5 0 0 1 21 8.5v9a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 17.5z'/%3E%3C/svg%3E"); }
.ef-ico-folder::before { background-color: var(--wp--preset--color--accent); }

/* ── Karty wpisów ─────────────────────────────────────────────── */

/* Treść główna nachodzi na dół okładki, jak na starej stronie. */
.ef-overlap { position: relative; z-index: 1; margin-top: -50px !important; }

.ef-posts .wp-block-post-template { align-items: start; }
@media (max-width: 781px) {
	.ef-posts .wp-block-post-template.is-layout-grid { grid-template-columns: minmax(0, 1fr); }
}
.ef-posts .wp-block-post-template.is-layout-grid > * { min-width: 0; }
:where(h1, h2, h3, h4, .wp-block-post-title) { overflow-wrap: break-word; hyphens: auto; }
/* Długie adresy (linki w zajawkach, DOI, e-maile) łamiemy w dowolnym miejscu — inaczej
   rozpychają kartę i cała strona przewija się w bok na telefonie. `anywhere`, nie
   `break-word`: tylko ono zmniejsza min-content, więc działa w kolumnach grid/flex. */
.ef-card,
.ef-content,
.ef-main .wp-block-post-content { overflow-wrap: anywhere; }

.ef-card .wp-block-post-title { line-height: 1.25; }
.ef-meta { font-size: var(--wp--preset--font-size--x-small); }
.ef-meta .ef-ico-clock { position: relative; padding-left: 14px; }
.ef-meta .ef-ico-clock::after {
	content: "-";
	position: absolute;
	left: 0;
}
.ef-meta a { color: inherit; text-decoration: none; }

.wp-block-post-excerpt__excerpt { margin-bottom: 0; }
.wp-block-post-excerpt__more-text { margin-top: 18px; margin-bottom: 0; }
.wp-block-post-excerpt__more-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
}
.wp-block-post-excerpt__more-link::before {
	content: "";
	width: 20px;
	height: 2px;
	background: currentColor;
	transition: width .2s ease;
}
.wp-block-post-excerpt__more-link:hover::before { width: 30px; }

/* ── Paginacja / nawigacja wpisów: „pigułki” jak na starej stronie ─ */

.ef-pagination {
	margin-top: 40px;
	padding-top: 25px;
	border-top: 1px solid var(--wp--preset--color--line);
	align-items: center;
}
.ef-pagination .wp-block-query-pagination-numbers { margin-inline: auto; }
.ef-pagination .page-numbers {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	padding: 0 4px;
}
.ef-pagination .page-numbers.current { color: var(--wp--preset--color--accent-strong); }

.ef-pagination .wp-block-query-pagination-previous,
.ef-pagination .wp-block-query-pagination-next,
.ef-post-nav .post-navigation-link-previous a,
.ef-post-nav .post-navigation-link-next a {
	display: inline-block;
	padding: 10px 24px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 100px;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.5;
	text-transform: uppercase;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease;
}
.ef-pagination .wp-block-query-pagination-previous:hover,
.ef-pagination .wp-block-query-pagination-next:hover,
.ef-post-nav a:hover {
	border-color: var(--wp--preset--color--accent-strong);
	color: var(--wp--preset--color--accent-strong);
}
.ef-post-nav { margin-top: 30px; }

/* ── Treść stron i wpisów ─────────────────────────────────────── */

.ef-main .wp-block-post-content a,
.ef-content a { text-decoration: underline; }
.ef-main .wp-block-post-content :where(h1, h2, h3, h4) { margin-top: 1.6em; }

/* ── Stopka ───────────────────────────────────────────────────── */

.ef-footer {
	box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .12);
	font-size: var(--wp--preset--font-size--small);
}
.ef-footer p { margin: 0; }
.ef-footer a { color: inherit; }
.ef-footer a:hover { color: var(--wp--preset--color--accent-strong); }

/* ── [logo-slider]: logotypy partnerów (About Us) ─────────────── */

.ef-partners {
	list-style: none;
	margin: 0 0 40px;
	padding: 20px 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 30px 44px;
}
.ef-partners li { margin: 0; padding: 0; }
.ef-partners img {
	display: block;
	max-width: 160px;
	max-height: 110px;
	width: auto;
	height: auto;
}
@media (max-width: 600px) {
	.ef-partners { gap: 20px 28px; }
	.ef-partners img { max-width: 120px; max-height: 80px; }
}
