/* =========================================================
   Cosmore Suite — Post Grid (frontend)
   ========================================================= */

.cosmore-post-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(4, 1fr);
}

.cosmore-post-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cosmore-post-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cosmore-post-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
	.cosmore-post-grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
	.cosmore-post-grid--cols-3,
	.cosmore-post-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
	.cosmore-post-grid,
	.cosmore-post-grid--cols-2,
	.cosmore-post-grid--cols-3,
	.cosmore-post-grid--cols-4 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   Card
   ---------------------------------------------------------- */
.cosmore-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s;
}

.cosmore-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Image */
.cosmore-card__image-link {
	display: block;
	overflow: hidden;
}

.cosmore-card__image {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.cosmore-card:hover .cosmore-card__image {
	transform: scale(1.03);
}

/* Body */
.cosmore-card__body {
	padding: 20px 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* Title */
.cosmore-card__title {
	margin: 0 0 10px;
	font-size: 1.1rem;
	line-height: 1.3;
	font-weight: 600;
}

.cosmore-card__title a {
	text-decoration: none;
	color: inherit;
}

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

/* Excerpt */
.cosmore-card__excerpt {
	color: #4b5563;
	font-size: 0.875rem;
	line-height: 1.65;
	flex: 1;
	margin: 0 0 16px;
}

.cosmore-card__excerpt p {
	margin: 0;
}

/* Read more link */
.cosmore-card__link {
	display: inline-block;
	color: #2563eb;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	margin-top: auto;
}

.cosmore-card__link:hover {
	text-decoration: underline;
}

/* ----------------------------------------------------------
   ACF field display types
   ---------------------------------------------------------- */

/* Badge */
.cosmore-card__badge {
	display: inline-block;
	background: #f3f4f6;
	color: #374151;
	border-radius: 4px;
	padding: 3px 10px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 10px;
}

/* Generic field row */
.cosmore-card__field {
	margin: 0 0 8px;
	font-size: 0.875rem;
	color: #374151;
	line-height: 1.5;
}

.cosmore-card__field-label {
	font-weight: 600;
	color: #111827;
}

/* Currency variant */
.cosmore-card__field--currency .cosmore-card__field-value {
	font-weight: 700;
	color: #059669;
}

/* Date variant */
.cosmore-card__field--date {
	color: #6b7280;
	font-size: 0.8rem;
}

/* ACF image */
.cosmore-card__acf-image {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin-bottom: 10px;
}

/* ----------------------------------------------------------
   Stats bar — horizontal metric strip
   ---------------------------------------------------------- */
.cosmore-card__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	margin: 12px 0 16px;
	padding: 0;
}

.cosmore-card__stat {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 10px 14px;
	min-width: 80px;
	border-right: 1px solid #e5e7eb;
}

.cosmore-card__stat:last-child {
	border-right: none;
}

.cosmore-card__stat-label {
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #9ca3af;
	white-space: nowrap;
	margin-bottom: 3px;
}

.cosmore-card__stat-value {
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.2;
}

.cosmore-card__stat-value--currency {
	color: #059669;
}

.cosmore-card__stat-value--date {
	color: #374151;
	font-size: 0.85rem;
}

/* No posts */
.cosmore-no-posts {
	color: #6b7280;
	font-style: italic;
}
