/*
 * TwojaFizjo – Blog Premium 1.0.0
 * Warstwa jest ograniczona do .tfb-blog-premium i nie zmienia sklepu ani homepage.
 */

.tfb-blog-premium {
	--tfb-navy: #303e4f;
	--tfb-pink: #ecc3c2;
	--tfb-pink-deep: #b68183;
	--tfb-soft: #f8fafd;
	--tfb-muted: #657489;
	--tfb-line: #e4e9ef;
}

/* Archive: three columns on desktop, two on tablets, one on phones. */
.tfb-blog-premium .entries,
.tfb-blog-premium .posts-grid,
.tfb-blog-premium .blog-posts {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px 22px !important;
}

.tfb-blog-premium .entries::before,
.tfb-blog-premium .entries::after {
	display: none !important;
}

.tfb-blog-premium .entry-card,
.tfb-blog-premium article.post {
	display: flex !important;
	min-width: 0;
	flex-direction: column;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.tfb-blog-premium .entry-card .ct-media-container,
.tfb-blog-premium .entry-card .entry-thumbnail,
.tfb-blog-premium article.post .post-thumbnail {
	display: block;
	overflow: hidden;
	margin: 0 0 20px !important;
	border-radius: 24px;
	background: var(--tfb-soft);
}

.tfb-blog-premium .entry-card .ct-media-container img,
.tfb-blog-premium .entry-card .entry-thumbnail img,
.tfb-blog-premium article.post .post-thumbnail img {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform .25s ease;
}

.tfb-blog-premium .entry-card:hover .ct-media-container img,
.tfb-blog-premium .entry-card:hover .entry-thumbnail img,
.tfb-blog-premium article.post:hover .post-thumbnail img {
	transform: scale(1.025);
}

/* Blocksy uses different wrappers depending on the archive layout. */
.tfb-blog-premium .entry-card .card-content,
.tfb-blog-premium .entry-card .entry-content,
.tfb-blog-premium article.post .entry-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
}

.tfb-blog-premium .entry-card .entry-meta,
.tfb-blog-premium article.post .entry-meta {
	order: 1;
	margin: 0 0 10px !important;
	color: var(--tfb-pink-deep) !important;
	font-size: 11px !important;
	font-weight: 800;
	letter-spacing: .12em;
	line-height: 1.3;
	text-transform: uppercase;
}

/* Dates are hidden visually but remain available to SEO/schema. */
.tfb-blog-premium .entry-meta .ct-meta-element-date,
.tfb-blog-premium .entry-meta .meta-date,
.tfb-blog-premium .entry-meta .posted-on,
.tfb-blog-premium .entry-meta time,
.tfb-blog-premium .post-date,
.tfb-blog-premium .published {
	display: none !important;
}

/* Remove Blocksy's visible “In” prefix while keeping category links. */
.tfb-blog-premium .entry-meta .ct-meta-element-categories,
.tfb-blog-premium .entry-meta .meta-categories {
	font-size: 0 !important;
}

.tfb-blog-premium .entry-meta .ct-meta-element-categories a,
.tfb-blog-premium .entry-meta .meta-categories a,
.tfb-blog-premium .entry-meta a {
	font-size: 11px !important;
	color: var(--tfb-pink-deep) !important;
}

.tfb-blog-premium .entry-card .entry-title,
.tfb-blog-premium .entry-card h2,
.tfb-blog-premium article.post .entry-title {
	order: 2;
	margin: 0 0 13px !important;
	color: var(--tfb-navy) !important;
	font-size: clamp(23px, 2.4vw, 31px) !important;
	font-weight: 650 !important;
	letter-spacing: -.045em;
	line-height: 1.08;
}

.tfb-blog-premium .entry-card .entry-title a,
.tfb-blog-premium .entry-card h2 a,
.tfb-blog-premium article.post .entry-title a {
	color: inherit !important;
}

.tfb-blog-premium .entry-card .entry-excerpt,
.tfb-blog-premium .entry-card .entry-content > p,
.tfb-blog-premium article.post .entry-excerpt {
	display: -webkit-box;
	order: 3;
	max-width: 580px;
	margin: 0 !important;
	overflow: hidden;
	color: var(--tfb-muted) !important;
	font-size: 16px !important;
	line-height: 1.62;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

.tfb-blog-premium .entry-card .read-more,
.tfb-blog-premium .entry-card .entry-button,
.tfb-blog-premium article.post .read-more {
	order: 4;
	width: max-content;
	margin-top: 20px !important;
	color: var(--tfb-navy) !important;
	font-size: 13px !important;
	font-weight: 750;
}

.tfb-blog-premium .entry-card .read-more:hover,
.tfb-blog-premium .entry-card .entry-button:hover,
.tfb-blog-premium article.post .read-more:hover {
	color: var(--tfb-pink-deep) !important;
}

/* Single post: no visible date, comfortable reading width and typography. */
.tfb-blog-premium.single-post .entry-content,
.tfb-blog-premium.single-post .post-content {
	max-width: 760px;
	margin-inline: auto;
}

.tfb-blog-premium.single-post .entry-content p,
.tfb-blog-premium.single-post .post-content p {
	color: var(--tfb-navy);
	font-size: 18px;
	line-height: 1.75;
}

@media (max-width: 980px) {
	.tfb-blog-premium .entries,
	.tfb-blog-premium .posts-grid,
	.tfb-blog-premium .blog-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	.tfb-blog-premium .entries,
	.tfb-blog-premium .posts-grid,
	.tfb-blog-premium .blog-posts {
		grid-template-columns: 1fr !important;
		gap: 42px !important;
	}

	.tfb-blog-premium .entry-card .ct-media-container,
	.tfb-blog-premium .entry-card .entry-thumbnail,
	.tfb-blog-premium article.post .post-thumbnail {
		margin-bottom: 17px !important;
		border-radius: 22px;
	}

	.tfb-blog-premium .entry-card .entry-title,
	.tfb-blog-premium .entry-card h2,
	.tfb-blog-premium article.post .entry-title {
		font-size: 28px !important;
		line-height: 1.08;
	}

	.tfb-blog-premium .entry-card .entry-excerpt,
	.tfb-blog-premium .entry-card .entry-content > p,
	.tfb-blog-premium article.post .entry-excerpt {
		font-size: 16px !important;
		-webkit-line-clamp: 3;
	}
}
