/* CandleBrain News -- front-end article grid.
   Pumpkin-orange accent is local to this plugin (--cbn-accent), not the
   theme's own accent variables -- keeps this page's look distinct
   without touching colors used anywhere else on the site. Still built on
   the theme's --wp--preset--color--* variables for background/text/card
   tone, so it stays in the same overall palette. */

.cbn-news {
	--cbn-accent: #B5551A;       /* dark pumpkin orange -- AA contrast on white */
	--cbn-accent-dark: #8A3F12;  /* hover / active state */
	--cbn-accent-soft: #FBE4D2;  /* pale pumpkin tint for subtle backgrounds */
}

.cbn-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.75rem;
}

.cbn-news-card {
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--base, #ffffff);
	border-radius: 18px;
	padding: 1.75rem;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cbn-news-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cbn-news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.75rem;
}

.cbn-news-source {
	display: inline-block;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--cbn-accent-dark);
	background: var(--cbn-accent-soft);
	padding: 3px 10px;
	border-radius: 999px;
}

.cbn-news-date {
	font-size: 0.8rem;
	color: var(--wp--preset--color--contrast, #2b2420);
	opacity: 0.65;
}

.cbn-news-title {
	margin: 0 0 0.6rem;
	font-size: 1.2rem;
	line-height: 1.4;
}

.cbn-news-title a {
	color: var(--wp--preset--color--contrast, #2b2420);
	text-decoration: none;
	font-weight: 700;
}

.cbn-news-title a:hover,
.cbn-news-title a:focus {
	color: var(--cbn-accent);
	text-decoration: underline;
}

.cbn-news-excerpt {
	flex-grow: 1;
	margin: 0 0 1rem;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--wp--preset--color--contrast, #2b2420);
}

.cbn-news-readmore {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--cbn-accent);
	text-decoration: none;
}

.cbn-news-readmore:hover,
.cbn-news-readmore:focus {
	color: var(--cbn-accent-dark);
	text-decoration: underline;
}

.cbn-news-empty {
	padding: 1.5rem 0;
	color: var(--wp--preset--color--contrast, #2b2420);
	opacity: 0.7;
}

/* Pagination */
.cbn-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin-top: 2.5rem;
}

.cbn-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.6rem;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	color: var(--wp--preset--color--contrast, #2b2420);
	background: var(--wp--preset--color--base, #ffffff);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
	transition: background-color 0.15s ease, color 0.15s ease;
}

a.cbn-page-link:hover,
a.cbn-page-link:focus {
	background: var(--cbn-accent-soft, #FBE4D2);
	color: var(--cbn-accent-dark, #8A3F12);
}

.cbn-page-current {
	background: var(--cbn-accent, #B5551A);
	color: #ffffff;
	box-shadow: none;
}
