/*
Theme Name: BotVinted Child
Template: twentytwentyone
Version: 1.0.1
Description: Motyw potomny bloga BotVinted – dopasowany do głównej strony (index.html, order.html).
*/

/* ================== TT1 OVERRIDES ================== */
/* Usunięcie ograniczeń Twenty Twenty-One – pełna szerokość jak na stronie głównej */
.site,
#page,
.site-content,
#masthead,
.site-header .wrap,
.site-footer .wrap {
	max-width: none !important;
	margin: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body {
	margin: 0 !important;
	font-family: 'Poppins', sans-serif !important;
	font-size: 16px !important;
}

/* ================== PROMO BANNER – wyśrodkowanie ================== */
.promo-banner {
	text-align: center !important;
}

.promo-tile {
	display: inline-block !important;
}

/* ================== BLOG ================== */
.blog-wrap {
	max-width: 1100px;
	margin: 40px auto;
	padding: 0 20px;
	text-align: left;
}

.blog-wrap.content {
	padding: 80px 20px;
}

.blog-header {
	margin-bottom: 30px;
}

.blog-header h1 {
	font-size: 1.75rem;
	color: var(--primary-dark);
	margin-bottom: 10px;
}

.blog-header p {
	max-width: 700px;
	color: var(--muted);
	font-size: 1rem;
}

.posts-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.post-card {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 10px 25px rgba(44, 177, 166, 0.12);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(44, 177, 166, 0.18);
}

.post-card--row {
	display: grid;
	grid-template-columns: 280px 1fr;
	align-items: stretch;
}

.post-card__thumb {
	display: block;
	width: 100%;
	min-height: 190px;
	background: linear-gradient(135deg, var(--primary-light), #fff);
}

.post-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.post-card__thumb--placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 190px;
	background: linear-gradient(135deg, var(--primary-light), #fff);
}

.post-card__content {
	padding: 24px 26px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.post-card__title {
	margin: 0 0 10px 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

.post-card__title a {
	text-decoration: none;
	color: var(--primary-dark);
}

.post-card__title a:hover {
	text-decoration: underline;
}

.post-card__meta {
	font-size: 0.9rem;
	color: var(--muted);
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.post-card__meta .dot {
	opacity: 0.6;
}

.post-card__excerpt {
	color: var(--muted);
	font-size: 1rem;
	line-height: 1.6;
	margin-bottom: 16px;
}

.post-card__actions .btn {
	padding: 12px 26px;
	font-size: 0.95rem;
}

/* ================== POJEDYNCZY WPIS (single.php) ================== */
.single .post-card {
	padding: 30px 40px;
}

.single .post-card h1 {
	font-size: 1.75rem !important;
	margin-bottom: 12px;
}

.single .post-meta {
	font-size: 0.9rem;
	color: var(--muted);
	margin-bottom: 20px;
}

/* Treść artykułu – mniejsza czcionka jak na stronie głównej */
.single .post-excerpt,
.single .entry-content,
.single .blog-wrap .post-excerpt,
.single .blog-wrap .entry-content {
	font-size: 1rem !important;
	line-height: 1.7;
	color: var(--text);
	text-align: left;
}

.single .post-excerpt p,
.single .entry-content p,
.single .post-excerpt .wp-block-paragraph {
	font-size: 1rem !important;
	margin-bottom: 16px;
}

/* Nadpisanie rozmiarów z Gutenberga */
.single .has-large-font-size,
.single .has-regular-font-size {
	font-size: 1rem !important;
}

.single .post-excerpt a,
.single .entry-content a {
	color: var(--primary-dark);
	text-decoration: none;
}

.single .post-excerpt a:hover,
.single .entry-content a:hover {
	text-decoration: underline;
}

/* Paginacja */
.blog-pagination {
	margin: 40px 0 20px;
	text-align: center;
}

.blog-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.blog-pagination a,
.blog-pagination span {
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--primary-light);
	color: var(--primary-dark);
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
}

.blog-pagination a:hover {
	background: var(--primary);
	color: #fff;
}

.blog-pagination .current {
	background: var(--primary);
	color: #fff;
}

/* ================== MOBILE ================== */
@media (max-width: 900px) {
	.post-card--row {
		grid-template-columns: 220px 1fr;
	}
}

@media (max-width: 700px) {
	.post-card--row {
		grid-template-columns: 1fr;
	}

	.post-card__thumb,
	.post-card__thumb--placeholder {
		min-height: 220px;
	}

	.post-card__content {
		padding: 20px;
	}

	.single .post-card__thumb,
	.single .post-card__thumb--placeholder {
		min-height: 240px;
	}
}
