/*
 * PMT Content Hub - front-end styles.
 * Brand: #202020 dark charcoal, #f5b14a gold, #ffffff white.
 * Scoped under .pmt-hub-* so nothing leaks into the theme.
 */

/* ---------- Shared buttons ---------- */
.pmt-hub-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 4px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none !important;
	border: none;
	cursor: pointer;
	transition: filter 0.15s ease;
}
.pmt-hub-btn:hover {
	filter: brightness(0.93);
}
.pmt-hub-btn-gold {
	background: #f5b14a;
	color: #202020 !important;
}
.pmt-hub-btn-dark {
	background: #202020;
	color: #ffffff !important;
}

/* ---------- Filter bar ---------- */
.pmt-hub-filters {
	margin: 0 0 18px;
}
.pmt-hub-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	align-items: flex-end;
}
.pmt-hub-search {
	flex: 1 1 320px;
}
.pmt-hub-product {
	flex: 0 1 280px;
}
.pmt-hub-label {
	display: block;
	font-weight: 700;
	color: #202020;
	margin-bottom: 6px;
}
.pmt-hub-search-controls {
	display: flex;
	gap: 10px;
}
.pmt-hub-search-controls input[type="text"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
	font-size: 15px;
}
.pmt-hub-product select {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
	font-size: 15px;
	background: #ffffff;
}

/* ---------- Content type buttons ---------- */
.pmt-hub-type-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 28px;
}

/* ---------- Card grid ---------- */
.pmt-hub-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
@media (max-width: 980px) {
	.pmt-hub-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 640px) {
	.pmt-hub-grid {
		grid-template-columns: 1fr;
	}
	.pmt-hub-filter-row {
		gap: 14px;
	}
}
.pmt-hub-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	overflow: hidden;
}
.pmt-hub-card-image {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #202020;
}
.pmt-hub-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pmt-hub-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 16px 18px 20px;
}
.pmt-hub-card-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #6b6b6b;
	margin: 0 0 8px;
}
.pmt-hub-card-title {
	font-size: 19px;
	line-height: 1.3;
	margin: 0 0 16px;
}
.pmt-hub-card-title a {
	color: #202020;
	text-decoration: none;
}
.pmt-hub-card-title a:hover {
	text-decoration: underline;
}
.pmt-hub-card-cta {
	margin-top: auto;
	align-self: flex-start;
}

/* ---------- Pagination ---------- */
.pmt-hub-pagination {
	display: flex;
	gap: 8px;
	margin-top: 32px;
	flex-wrap: wrap;
}
.pmt-hub-page,
.pmt-hub-page:link,
.pmt-hub-page:visited {
	display: inline-block;
	min-width: 38px;
	padding: 8px 0;
	text-align: center;
	background: #ffffff;
	border: 1px solid #c9c9c9;
	border-radius: 4px;
	color: #202020 !important;
	text-decoration: none !important;
	font-weight: 700;
	line-height: 1.2;
}
.pmt-hub-page:hover,
.pmt-hub-page:focus {
	background: #f5b14a;
	border-color: #f5b14a;
	color: #202020 !important;
}
.pmt-hub-page.pmt-hub-page-current,
.pmt-hub-page.pmt-hub-page-current:link,
.pmt-hub-page.pmt-hub-page-current:visited,
.pmt-hub-page.pmt-hub-page-current:hover {
	background: #202020;
	border-color: #202020;
	color: #ffffff !important;
}

/* ---------- Upcoming events (rows) ---------- */
.pmt-hub-events {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.pmt-hub-event {
	display: flex;
	align-items: center;
	gap: 24px;
	background: #ffffff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	padding: 18px;
}
.pmt-hub-event-badge {
	flex: 0 0 76px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #202020;
	border-radius: 6px;
	padding: 10px 0 12px;
	text-align: center;
	line-height: 1;
}
.pmt-hub-event-badge-month {
	color: #f5b14a;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 6px;
}
.pmt-hub-event-badge-day {
	color: #ffffff;
	font-size: 32px;
	font-weight: 700;
}
.pmt-hub-event-image {
	flex: 0 0 240px;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	background: #202020;
}
.pmt-hub-event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pmt-hub-event-main {
	flex: 1 1 auto;
	min-width: 0;
}
.pmt-hub-event-title {
	margin: 0 0 8px;
	font-size: 21px;
	line-height: 1.3;
}
.pmt-hub-event-title a {
	color: #202020;
	text-decoration: none;
}
.pmt-hub-event-title a:hover {
	text-decoration: underline;
}
.pmt-hub-event-meta {
	margin: 0;
	color: #4a4a4a;
	font-size: 15px;
}
.pmt-hub-event-meta span + span::before {
	content: "\00b7";
	margin: 0 8px;
}
.pmt-hub-event-action {
	flex: 0 0 auto;
}
@media (max-width: 900px) {
	.pmt-hub-event {
		flex-wrap: wrap;
	}
	.pmt-hub-event-image {
		flex: 1 1 calc(100% - 100px);
	}
	.pmt-hub-event-main {
		flex: 1 1 100%;
	}
}
@media (max-width: 640px) {
	.pmt-hub-event {
		gap: 16px;
	}
	.pmt-hub-event-image {
		flex: 1 1 100%;
		order: -1;
	}
	.pmt-hub-event-badge {
		flex: 0 0 64px;
		align-self: flex-start;
	}
	.pmt-hub-event-badge-day {
		font-size: 26px;
	}
	.pmt-hub-event-main {
		flex: 1 1 calc(100% - 80px);
	}
	.pmt-hub-event-action {
		flex: 1 1 100%;
	}
}

/* ---------- Upcoming empty state ---------- */
.pmt-hub-events-empty {
	background: #f7f7f7;
	border-left: 4px solid #f5b14a;
	border-radius: 4px;
	padding: 28px 32px;
}
.pmt-hub-events-empty p {
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
	color: #202020;
}

/* ---------- Empty state ---------- */
.pmt-hub-empty {
	background: #f7f7f7;
	border-radius: 4px;
	padding: 20px;
	color: #4a4a4a;
}
