/* GMC Events - public styles (Listing + Detail pages) */

.gmce-page {
	--gmce-navy: #1e2a5e;
	--gmce-navy-light: #2a3990;
	--gmce-accent-red: #dc2626;
	--gmce-text-muted: #6b7280;
	--gmce-border: #e5e7eb;
	--gmce-radius: 20px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
	box-sizing: border-box;
}

.gmce-page *,
.gmce-page *::before,
.gmce-page *::after {
	box-sizing: inherit;
}

.gmce-hero {
	background: linear-gradient(135deg, var(--gmce-navy) 0%, var(--gmce-navy-light) 100%);
	color: #fff;
	padding: 48px 32px;
	border-radius: 0 0 32px 32px;
	margin: 0 -20px 32px;
}

.gmce-hero h1 {
	font-size: clamp(28px, 4vw, 42px);
	font-weight: 800;
	margin: 0 0 12px;
	color: #fff;
	overflow-wrap: break-word;
}

.gmce-breadcrumb {
	font-size: 14px;
	opacity: 0.85;
	overflow-wrap: break-word;
}

.gmce-breadcrumb a {
	color: #fff;
	text-decoration: none;
}

.gmce-breadcrumb a:hover {
	text-decoration: underline;
}

/* Listing grid */

.gmce-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: 28px;
}

.gmce-card {
	background: #fff;
	border-radius: var(--gmce-radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	display: flex;
	flex-direction: column;
}

.gmce-card-banner {
	position: relative;
	height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gmce-card-banner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gmce-badge {
	position: absolute;
	top: 16px;
	left: 16px;
	padding: 5px 14px;
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	z-index: 2;
}

.gmce-date-chip {
	position: relative;
	z-index: 1;
	background: rgba(255, 255, 255, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 16px;
	padding: 18px 28px;
	text-align: center;
	color: #fff;
}

.gmce-date-chip .gmce-day {
	display: block;
	font-size: 34px;
	font-weight: 800;
	line-height: 1;
}

.gmce-date-chip .gmce-month {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-top: 6px;
}

.gmce-card-body {
	padding: 22px 24px 26px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.gmce-card-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--gmce-navy);
	margin: 0 0 12px;
	overflow-wrap: break-word;
}

.gmce-meta-line {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #374151;
	margin-bottom: 6px;
}

.gmce-view-details {
	margin-top: auto;
	padding-top: 14px;
	font-weight: 700;
	color: var(--gmce-accent-red);
	text-decoration: none;
}

.gmce-view-details:hover {
	text-decoration: underline;
}

.gmce-empty-state {
	text-align: center;
	padding: 60px 20px;
	color: var(--gmce-text-muted);
	font-size: 16px;
}

/* Detail page */

.gmce-detail-card {
	background: #fff;
	border-radius: var(--gmce-radius);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.gmce-detail-banner {
	position: relative;
	min-height: 320px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gmce-detail-banner img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gmce-detail-body {
	padding: 40px;
}

.gmce-detail-body h2 {
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gmce-text-muted);
	margin: 0 0 18px;
}

.gmce-detail-meta {
	margin-bottom: 20px;
}

.gmce-detail-meta .gmce-meta-line {
	font-size: 16px;
	margin-bottom: 10px;
}

.gmce-detail-description p {
	color: #374151;
	line-height: 1.7;
	margin-bottom: 16px;
}

.gmce-actions {
	margin-top: 28px;
	display: flex;
	align-items: center;
	gap: 18px;
	flex-wrap: wrap;
}

.gmce-register-btn {
	display: inline-block;
	background: var(--gmce-accent-red);
	color: #fff;
	font-weight: 700;
	padding: 14px 28px;
	border-radius: 999px;
	text-decoration: none;
}

.gmce-register-btn:hover {
	background: #b91c1c;
	color: #fff;
}

.gmce-register-btn[aria-disabled="true"] {
	background: #d1d5db;
	color: #6b7280;
	pointer-events: none;
	cursor: not-allowed;
}

.gmce-back-link {
	color: var(--gmce-navy);
	font-weight: 700;
	text-decoration: none;
}

.gmce-back-link:hover {
	text-decoration: underline;
}

/* Responsive breakpoints */

@media (max-width: 900px) {
	.gmce-detail-card {
		grid-template-columns: 1fr;
	}
	.gmce-detail-banner {
		min-height: 220px;
	}
}

@media (max-width: 600px) {
	.gmce-hero {
		padding: 32px 20px;
		border-radius: 0 0 20px 20px;
	}
	.gmce-detail-body {
		padding: 24px;
	}
	.gmce-actions {
		flex-direction: column;
		align-items: flex-start;
	}
}
