/**
 * Boksiowo Portal Engine PRO — Shortcode Engine styles.
 * Covers [bpe_homepage], [bpe_hero], [bpe_latest], [bpe_featured],
 * [bpe_popular], [bpe_news_grid], [bpe_news_cards], [bpe_video_grid],
 * [bpe_photo_day], [bpe_comments], [bpe_authors].
 */

.bpe-shortcode__grid {
	display: grid;
	grid-template-columns: repeat(var(--bpe-shortcode-columns, 3), 1fr);
	/* 24px (was 20px): matches .bpe-homepage-grid's gap so every article
	   grid on the homepage (Wyróżnione/Najnowsze via this class, Trending
	   via .bpe-homepage-grid) reads as one consistent system. */
	gap: 24px;
}

.bpe-shortcode__grid--cards .bpe-article-card {
	border: 1px solid #d9e0e7;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.bpe-shortcode__grid--cards .bpe-article-card:hover {
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.bpe-shortcode__grid--cards .bpe-article-card {
		transition: none;
	}

	.bpe-shortcode__grid--cards .bpe-article-card:hover {
		transform: none;
	}
}

.bpe-shortcode__trigger-wrap {
	text-align: center;
	margin-top: 24px;
}

.bpe-shortcode__trigger {
	padding: 10px 28px;
	border: 1px solid #172b4d;
	border-radius: 4px;
	background: #172b4d;
	color: #fff;
	font-size: 0.95rem;
	cursor: pointer;
}

/* ETAP 2: hover used a hand-picked one-off darker gray (#2c3338) instead
   of a palette color. Accent orange reuses an existing brand color and
   reads clearly as "interactive" instead of inventing a new gray. */
.bpe-shortcode__trigger:hover {
	background: var(--bpe-hb-color-accent, #ff6b1a);
	border-color: var(--bpe-hb-color-accent, #ff6b1a);
}

.bpe-shortcode__trigger:disabled {
	opacity: 0.6;
	cursor: default;
}

/* [bpe_hero] single large hero block. */
.bpe-hero-block {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 28px;
	align-items: center;
	margin-bottom: 32px;
}

.bpe-hero-block__thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.bpe-hero-block__badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 10px;
	border-radius: 3px;
	background: #b32d2e;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
}

.bpe-hero-block__title {
	margin: 0 0 10px;
	font-size: 1.8rem;
	line-height: 1.2;
}

.bpe-hero-block__title a {
	color: inherit;
	text-decoration: none;
}

.bpe-hero-block__meta {
	display: flex;
	gap: 12px;
	align-items: center;
	color: #46515f;
	font-size: 0.85rem;
	margin-bottom: 10px;
}

.bpe-hero-block__excerpt {
	color: #46515f;
	margin-bottom: 14px;
}

.bpe-hero-block__link {
	display: inline-block;
	font-weight: 600;
	text-decoration: none;
}

/* [bpe_homepage] master layout. */
.bpe-homepage__hero,
.bpe-homepage__breaking,
.bpe-homepage__ads {
	margin-bottom: 24px;
}

.bpe-homepage__container {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.bpe-homepage__heading {
	margin: 0 0 16px;
	font-size: 1.4rem;
}

/* [bpe_video_grid] video listing. ETAP 3: gave it the same card chrome
   as .bpe-article-card (border/radius/shadow values copied from
   articles.css) and moved the title below the thumbnail via flex
   "order" — video-grid.php (template) renders title-then-embed in the
   DOM (checked, not guessed), which is why it previously looked like a
   plain link list sitting above a bare thumbnail grid instead of a card
   matching the rest of the homepage. Reordering visually via CSS avoids
   touching that template or the video module's embed/facade JS. */
.bpe-shortcode__video-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #d9e0e7;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.bpe-shortcode__video-card .bpe-video {
	order: -1;
	margin: 0;
}

.bpe-shortcode__video-title {
	order: 1;
	margin: 0;
	padding: 14px 16px;
	/* Matches .bpe-homepage-card__title/.bpe-article-card__title so every
	   card type on the homepage shares one title size. */
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--bpe-hb-color-primary, #1e293b);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

/* [bpe_photo_day] single daily pick. */
.bpe-shortcode__heading {
	margin: 0 0 16px;
	font-size: 1.4rem;
}

.bpe-shortcode__photo-day {
	margin: 0;
}

.bpe-shortcode__photo-day img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.bpe-shortcode__photo-day-caption {
	margin-top: 8px;
	color: #46515f;
	font-size: 0.9rem;
}

/* [bpe_comments] recent comments list. */
.bpe-shortcode__comments {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bpe-shortcode__comment {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.bpe-shortcode__comment-avatar {
	border-radius: 50%;
	flex-shrink: 0;
}

.bpe-shortcode__comment-meta {
	margin: 0 0 4px;
	font-size: 0.85rem;
	color: #46515f;
}

.bpe-shortcode__comment-author {
	font-weight: 600;
	color: #172b4d;
}

.bpe-shortcode__comment-excerpt {
	margin: 0;
}

.bpe-shortcode__comment-excerpt a {
	text-decoration: none;
}

/* [bpe_authors] contributor grid. */
.bpe-shortcode__grid--authors {
	text-align: center;
}

.bpe-shortcode__author-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: inherit;
}

.bpe-shortcode__author-avatar {
	border-radius: 50%;
}

.bpe-shortcode__author-name {
	font-weight: 600;
}

.bpe-shortcode__author-count {
	font-size: 0.85rem;
	color: #46515f;
}


.bpe-shortcode__countdown-status {
	font-weight: 600;
}

@media (max-width: 960px) {
	.bpe-shortcode__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.bpe-hero-block {
		grid-template-columns: 1fr;
	}

	.bpe-shortcode__events {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.bpe-shortcode__grid {
		grid-template-columns: 1fr;
	}

	.bpe-shortcode__countdown {
		gap: 8px;
	}

	.bpe-shortcode__countdown-unit {
		min-width: 44px;
		padding: 8px 4px;
	}

	.bpe-shortcode__countdown-value {
		font-size: 1.2rem;
	}
}
