/**
 * Comunidad — Blog Activity Bridge
 * Hereda las variables CSS ya definidas en #comunidad-root (--negro, --crema,
 * --acento, --sans, --gris). Si el scope global no está disponible, se
 * definen fallbacks equivalentes a los vistos en la home actual.
 */

.cbb-post-card {
	--cbb-negro: var(--negro, #0d0d0d);
	--cbb-crema: var(--crema, #f4efe6);
	--cbb-acento: var(--acento, #b8925a);
	--cbb-gris: var(--gris, #8a8a8a);
	--cbb-sans: var(--sans, -apple-system, "Helvetica Neue", Arial, sans-serif);
	--cbb-serif: var(--serif, "Cormorant Garamond", Georgia, serif);

	background: #fff;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 24px;
	font-family: var(--cbb-sans);
}

.cbb-post-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #eee;
}

.cbb-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.cbb-post-card:hover .cbb-post-thumb img {
	transform: scale(1.03);
}

.cbb-post-body {
	padding: 24px 28px 20px;
}

.cbb-post-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--cbb-gris);
	margin-bottom: 10px;
}

.cbb-post-category {
	color: var(--cbb-acento);
	font-weight: 600;
}

.cbb-post-dot { opacity: .5; }

.cbb-post-title {
	font-family: var(--cbb-serif);
	font-size: 26px;
	line-height: 1.2;
	margin: 0 0 10px;
}

.cbb-post-title a {
	color: var(--cbb-negro);
	text-decoration: none;
}

.cbb-post-title a:hover {
	color: var(--cbb-acento);
}

.cbb-post-excerpt {
	font-size: 14.5px;
	line-height: 1.6;
	color: #333;
	margin: 0 0 16px;
}

.cbb-post-author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--cbb-negro);
	margin-bottom: 18px;
}

.cbb-post-author img {
	border-radius: 50%;
	width: 24px;
	height: 24px;
}

.cbb-post-actions {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-top: 14px;
	border-top: 1px solid rgba(0, 0, 0, .06);
	flex-wrap: wrap;
}

.cbb-action {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	font-family: var(--cbb-sans);
	font-size: 12px;
	color: var(--cbb-gris);
	text-decoration: none;
	padding: 0;
	transition: color .2s;
}

.cbb-action:hover {
	color: var(--cbb-negro);
}

.cbb-action.is-active {
	color: var(--cbb-acento);
}

.cbb-icon {
	font-size: 15px;
	line-height: 1;
}

.cbb-read-more {
	margin-left: auto;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 11px;
	font-weight: 600;
	color: var(--cbb-negro);
}

.cbb-read-more:hover {
	color: var(--cbb-acento);
}

/* Skeleton loading (preparado para Fase 2 — infinite scroll) */
.cbb-skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #f7f7f7 37%, #f0f0f0 63%);
	background-size: 400% 100%;
	animation: cbb-shimmer 1.4s ease infinite;
	border-radius: 4px;
}

@keyframes cbb-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

@media (max-width: 600px) {
	.cbb-post-body { padding: 18px 18px 16px; }
	.cbb-post-title { font-size: 21px; }
	.cbb-post-actions { gap: 12px; }
	.cbb-read-more { margin-left: 0; width: 100%; text-align: right; }
}
