/**
 * GEMKIBO — Blog magazine + single article (Faza 4)
 * (Wcześniejsza wersja z 2026-05-27 zastąpiona całkowicie — nowy magazine layout.)
 */

.gk-blog,
.gk-article { background: #FAF8F4; color: #1F3D14; }
/* FIX 2026-05-30: listing blog wyrównany z headerem (1440/57.6px); artykuł zostaje
   węższy (1280) dla czytelności linii tekstu. */
.gk-blog__container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 57.6px); }
.gk-article__container { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.gk-blog__container--cta,
.gk-article__container--cta { max-width: 720px; text-align: center; }

.gk-home .gk-blog h1,
.gk-home .gk-blog h2,
.gk-home .gk-blog h3,
.gk-home .gk-article h1,
.gk-home .gk-article h2,
.gk-home .gk-article h3 { color: inherit; }

/* ═══════════════════════════ BLOG LISTING (home.php) ═══════════════════════════ */

.gk-blog__hero {
	background: #FFFFFF;
	padding: clamp(110px, 14vh, 160px) 0 clamp(40px, 6vh, 60px);
	border-bottom: 1px solid #ECE6DC;
}
.gk-blog__breadcrumb {
	display: flex; align-items: center; gap: 6px;
	font-family: 'Inter', sans-serif; font-size: 13px;
	color: #5A6354;
	margin: 0 0 20px;
}
.gk-blog__breadcrumb a { color: #1F3D14; text-decoration: none; }
.gk-blog__breadcrumb a:hover { color: #5DA935; }
.gk-blog__breadcrumb svg { opacity: 0.4; }
/* FIX 2026-05-30: usunięty AI-pill, czysty zielony eyebrow na jasnym hero */
.gk-blog__hero-eyebrow {
	display: inline-block; padding: 0;
	background: none; border: 0;
	color: #4F9028;
	font-family: 'Inter', sans-serif;
	font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
	margin: 0 0 16px;
}
.gk-blog__hero-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(36px, 5.5vw, 64px); font-weight: 700;
	line-height: 1.1; letter-spacing: -0.02em;
	color: #1F3D14;
	margin: 0 0 16px;
	max-width: 900px;
}
.gk-blog__hero-lead {
	font-family: 'Inter', sans-serif;
	font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6;
	color: #5A6354;
	max-width: 640px; margin: 0;
}

.gk-blog__cats { padding: 24px 0; background: #FFFFFF; border-bottom: 1px solid #ECE6DC; }
.gk-blog__cats-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.gk-blog__cat {
	padding: 8px 18px;
	background: #FAF8F4;
	border: 1px solid #ECE6DC;
	color: #5A6354;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 13px; font-weight: 600;
	text-decoration: none;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gk-blog__cat:hover,
.gk-blog__cat.is-active {
	background: #1F3D14; color: #FAF8F4; border-color: #1F3D14;
}

.gk-blog__featured { padding: clamp(40px, 6vh, 60px) 0 clamp(20px, 3vh, 32px); }
.gk-blog__featured-card {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	background: #FFFFFF;
	border: 1px solid #ECE6DC;
	border-radius: 24px;
	overflow: hidden;
	text-decoration: none;
	color: #1F3D14;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gk-blog__featured-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 50px rgba(31, 61, 20, 0.10);
	border-color: #5DA935;
}
.gk-blog__featured-media {
	position: relative;
	background: linear-gradient(135deg, #1F3D14 0%, #2D5B1C 100%);
	background-size: cover; background-position: center;
	min-height: 360px;
	display: flex; align-items: center; justify-content: center;
}
.gk-blog__featured-placeholder { color: rgba(116, 229, 24, 0.30); }
/* FIX 2026-05-30: tag "Polecane" — białe tło + ciemnozielony napis (było neon #74E518) */
.gk-blog__featured-badge {
	position: absolute; top: 20px; left: 20px;
	padding: 6px 14px;
	background: #FFFFFF; color: #1F3D14;
	border-radius: 9999px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	font-family: 'Inter', sans-serif;
	font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
}
.gk-blog__featured-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.gk-blog__post-cat {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
	color: #5DA935;
	margin-bottom: 12px;
}
.gk-blog__featured-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(24px, 3vw, 36px); font-weight: 700;
	line-height: 1.2; letter-spacing: -0.015em;
	color: #1F3D14;
	margin: 0 0 16px;
}
.gk-blog__featured-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 16px; line-height: 1.6;
	color: #5A6354;
	margin: 0 0 24px;
}
.gk-blog__post-meta {
	display: flex; align-items: center; gap: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 13px; color: #9CA396;
}

.gk-blog__grid-section { padding: clamp(20px, 3vh, 40px) 0 clamp(60px, 10vh, 100px); }
.gk-blog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
}
.gk-blog__card {
	background: #FFFFFF;
	border: 1px solid #ECE6DC;
	border-radius: 16px;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.gk-blog__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(31, 61, 20, 0.08);
	border-color: #5DA935;
}
.gk-blog__card-link { display: block; text-decoration: none; color: inherit; }
.gk-blog__card-media {
	height: 200px;
	background: linear-gradient(135deg, #FAF8F4 0%, #ECE6DC 100%);
	background-size: cover; background-position: center;
	display: flex; align-items: center; justify-content: center;
}
.gk-blog__card-placeholder { color: rgba(31, 61, 20, 0.20); }
.gk-blog__card-body { padding: 24px; }
.gk-blog__card-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px; font-weight: 700;
	line-height: 1.25;
	color: #1F3D14;
	margin: 0 0 10px;
}
.gk-blog__card-excerpt {
	font-family: 'Inter', sans-serif;
	font-size: 14.5px; line-height: 1.55;
	color: #5A6354;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.gk-blog__pagination { margin-top: 48px; display: flex; justify-content: center; gap: 8px; }
.gk-blog__pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px;
	padding: 0 14px;
	background: #FFFFFF;
	border: 1px solid #ECE6DC;
	color: #1F3D14;
	border-radius: 8px;
	font-family: 'Inter', sans-serif;
	font-size: 13px; font-weight: 600;
	text-decoration: none;
}
.gk-blog__pagination .page-numbers:hover,
.gk-blog__pagination .page-numbers.current {
	background: #1F3D14; color: #FAF8F4; border-color: #1F3D14;
}

.gk-blog__empty { padding: clamp(80px, 14vh, 140px) 0; text-align: center; }
.gk-blog__empty h2 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 28px; font-weight: 700;
	color: #1F3D14;
	margin: 16px 0 12px;
}
.gk-blog__empty p { font-family: 'Inter', sans-serif; font-size: 16px; color: #5A6354; margin: 0 0 24px; }
.gk-blog__empty-cta {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 28px;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
	text-decoration: none;
}

.gk-blog__newsletter { padding: clamp(60px, 10vh, 100px) 0; background: #1F3D14; color: #FAF8F4; text-align: center; }
.gk-blog__section-eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
	color: #74E518;
	margin: 0 0 12px;
}
.gk-blog__cta-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(28px, 4vw, 40px); font-weight: 700;
	color: #FAF8F4;
	margin: 0 0 12px;
}
.gk-blog__cta-lead { font-family: 'Inter', sans-serif; font-size: 17px; color: rgba(250, 248, 244, 0.80); margin: 0 0 28px; }
.gk-blog__newsletter-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.gk-blog__newsletter-form input {
	flex: 1; min-width: 0;
	padding: 14px 18px;
	background: rgba(250, 248, 244, 0.10);
	border: 1px solid rgba(250, 248, 244, 0.20);
	border-radius: 9999px;
	color: #FAF8F4;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	outline: none;
}
.gk-blog__newsletter-form input::placeholder { color: rgba(250, 248, 244, 0.50); }
.gk-blog__newsletter-form input:focus { border-color: #74E518; background: rgba(250, 248, 244, 0.15); }

/* ═══════════════════════════ SINGLE ARTICLE (single.php) ═══════════════════════════ */

.gk-article__hero {
	background: #FFFFFF;
	padding: clamp(110px, 14vh, 160px) 0 clamp(40px, 6vh, 60px);
	border-bottom: 1px solid #ECE6DC;
}
.gk-article__breadcrumb {
	display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
	font-family: 'Inter', sans-serif; font-size: 13px;
	color: #5A6354;
	margin: 0 0 24px;
}
.gk-article__breadcrumb a { color: #1F3D14; text-decoration: none; }
.gk-article__breadcrumb a:hover { color: #5DA935; }
.gk-article__breadcrumb svg { opacity: 0.4; flex-shrink: 0; }
.gk-article__breadcrumb span:last-child { color: #9CA396; }
/* FIX 2026-05-30: tag artykułu — białe tło + ciemnozielony napis (było zielony pill) */
.gk-article__cat {
	display: inline-block;
	padding: 6px 14px;
	background: #FFFFFF; border: 0;
	color: #1F3D14;
	border-radius: 9999px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	font-family: 'Inter', sans-serif;
	font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase;
	text-decoration: none;
	margin: 0 0 20px;
}
.gk-article__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(32px, 5vw, 56px); font-weight: 700;
	line-height: 1.1; letter-spacing: -0.02em;
	color: #1F3D14;
	margin: 0 0 20px;
	max-width: 900px;
}
.gk-article__lead {
	font-family: 'Inter', sans-serif;
	font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55;
	color: #5A6354;
	max-width: 720px;
	margin: 0 0 32px;
}
.gk-article__meta { display: flex; align-items: center; gap: 12px; }
.gk-article__author-avatar { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #ECE6DC; }
.gk-article__author-name { margin: 0 0 2px; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; color: #1F3D14; }
.gk-article__meta-row { display: flex; gap: 8px; margin: 0; font-family: 'Inter', sans-serif; font-size: 13px; color: #9CA396; }

.gk-article__featured { padding: clamp(32px, 4vh, 48px) 0; }
.gk-article__featured-img {
	width: 100%;
	height: clamp(280px, 40vw, 480px);
	background: linear-gradient(135deg, #1F3D14 0%, #5DA935 100%);
	background-size: cover; background-position: center;
	border-radius: 24px;
}

.gk-article__layout-section { padding: clamp(40px, 6vh, 60px) 0; }
.gk-article__layout {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: start;
}
.gk-article__toc { position: relative; }
.gk-article__toc-sticky { position: sticky; top: 110px; padding-right: 8px; }
.gk-article__toc-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
	color: #1F3D14;
	margin: 0 0 16px;
}
.gk-article__toc-nav { display: flex; flex-direction: column; gap: 2px; border-left: 1.5px solid rgba(31, 61, 20, 0.10); }
.gk-article__toc-nav a {
	display: block;
	padding: 8px 14px;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px;
	color: #5A6354;
	text-decoration: none;
	border-left: 2px solid transparent;
	margin-left: -1.5px;
	transition: color .15s ease, border-color .15s ease;
	line-height: 1.4;
}
.gk-article__toc-nav a:hover { color: #1F3D14; }
.gk-article__toc-nav a.is-active { color: #1F3D14; font-weight: 700; border-left-color: #5DA935; }
.gk-article__toc-empty { font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(31, 61, 20, 0.40); font-style: italic; }

.gk-article__share { margin-top: 32px; padding-top: 24px; border-top: 1px solid #ECE6DC; }
.gk-article__share-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
	color: #5A6354;
	margin: 0 0 12px;
}
.gk-article__share-row { display: flex; gap: 8px; }
.gk-article__share-btn {
	all: unset;
	display: inline-flex; align-items: center; justify-content: center;
	width: 36px; height: 36px;
	background: #FFFFFF;
	border: 1px solid #ECE6DC;
	color: #5A6354;
	border-radius: 50%;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.gk-article__share-btn:hover { background: #1F3D14; color: #FAF8F4; border-color: #1F3D14; }

.gk-article__content {
	max-width: 760px;
	min-width: 0;
	font-family: 'Inter', sans-serif;
	font-size: 17px; line-height: 1.7;
	color: #3a3a3a;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.gk-article__content > * { max-width: 100%; }
.gk-article__content h2,
.gk-article__content h3,
.gk-article__content h4 {
	font-family: 'Playfair Display', Georgia, serif;
	color: #1F3D14;
	letter-spacing: -0.01em;
	scroll-margin-top: 110px;
	margin: 40px 0 16px;
	line-height: 1.2;
}
.gk-article__content h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.gk-article__content h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; }
.gk-article__content h4 { font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; font-family: 'Inter', sans-serif; }
.gk-article__content p { margin: 0 0 18px; }
.gk-article__content p:first-of-type { font-size: 18.5px; color: #1F3D14; font-weight: 500; margin-bottom: 24px; }
.gk-article__content a { color: #4F9028; text-decoration: underline; text-underline-offset: 3px; }
.gk-article__content a:hover { color: #1F3D14; }
.gk-article__content ul,
.gk-article__content ol { margin: 0 0 20px; padding-left: 24px; }
.gk-article__content li { margin: 0 0 6px; }
.gk-article__content li::marker { color: #5DA935; }
.gk-article__content blockquote {
	margin: 28px 0;
	padding: 20px 24px;
	background: rgba(93, 169, 53, 0.06);
	border-left: 3px solid #5DA935;
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: #1F3D14;
}
.gk-article__content img { max-width: 100%; height: auto; border-radius: 12px; margin: 24px 0; }

.gk-article__related { padding: clamp(60px, 10vh, 100px) 0; background: #FFFFFF; border-top: 1px solid #ECE6DC; }
.gk-article__section-eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
	color: #5DA935;
	margin: 0 0 12px;
}
.gk-article__related-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(24px, 3vw, 36px); font-weight: 700;
	color: #1F3D14;
	margin: 0 0 32px;
}
.gk-article__related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.gk-article__related-card {
	background: #FAF8F4;
	border: 1px solid #ECE6DC;
	border-radius: 16px;
	overflow: hidden;
	transition: transform .2s ease, border-color .2s ease;
}
.gk-article__related-card:hover { transform: translateY(-4px); border-color: #5DA935; }
.gk-article__related-card a { display: block; text-decoration: none; color: inherit; }
.gk-article__related-media {
	height: 160px;
	background: linear-gradient(135deg, #FAF8F4 0%, #ECE6DC 100%);
	background-size: cover; background-position: center;
}
.gk-article__related-body { padding: 20px; }
.gk-article__related-body h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 18px; font-weight: 700;
	color: #1F3D14;
	margin: 0 0 8px;
	line-height: 1.2;
}
.gk-article__related-body p { font-family: 'Inter', sans-serif; font-size: 14px; color: #5A6354; margin: 0; line-height: 1.5; }

.gk-article__cta { padding: clamp(60px, 10vh, 100px) 0; background: #FAF8F4; text-align: center; }
.gk-article__cta-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(28px, 4vw, 40px); font-weight: 700;
	color: #1F3D14;
	margin: 0 0 12px;
}
.gk-article__cta-lead { font-family: 'Inter', sans-serif; font-size: 17px; color: #5A6354; margin: 0 0 28px; }
.gk-article__cta-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 14px 28px;
	border-radius: 9999px;
	font-family: 'Inter', sans-serif;
	font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
	text-decoration: none;
}

@media (max-width: 1024px) {
	.gk-blog__featured-card { grid-template-columns: 1fr; }
	.gk-blog__featured-media { min-height: 240px; }
	.gk-article__layout { grid-template-columns: 1fr; }
	.gk-article__toc { order: -1; margin-bottom: 24px; }
	.gk-article__toc-sticky { position: static; background: #FFFFFF; border: 1px solid #ECE6DC; border-radius: 12px; padding: 20px; }
	.gk-article__toc-nav { border-left: 0; }
	.gk-article__toc-nav a { border-left: 0; padding-left: 0; border-bottom: 1px solid #F0EBE0; margin-left: 0; }
	.gk-article__content { max-width: 100%; }
}
@media (max-width: 540px) {
	.gk-blog__newsletter-form { flex-direction: column; }
}
