/* MuddyCarz Event Manager — front-end styles
   Colors match the Bloodline Edition Kadence palette in the project notes:
   Accent 1 #C40000 (red), Contrast 1 #FFFFFF, Contrast 3 #D0D0D0, Contrast 4 #888888 */

.mcz-upcoming-events {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	margin: 24px 0;
}

.mcz-event-card {
	display: flex;
	flex: 0 1 340px;
	max-width: 340px;
	background: #141414;
	border: 1px solid #262626;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.mcz-event-card:hover {
	transform: translateY(-4px);
	border-color: #C40000;
}

.mcz-event-date {
	flex: 0 0 76px;
	background: #C40000;
	color: #FFFFFF;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px 8px;
	text-align: center;
}

.mcz-event-month {
	font-size: 13px;
	letter-spacing: 1px;
	font-weight: 700;
}

.mcz-event-day {
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
}

.mcz-event-body {
	padding: 16px 20px;
	flex: 1;
	min-width: 0;
}

.mcz-event-type {
	font-size: 11px;
	letter-spacing: 1px;
	color: #888888;
	text-transform: uppercase;
}

.mcz-event-name {
	margin: 4px 0 8px;
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
	text-transform: uppercase;
	color: #FFFFFF !important;
}

.mcz-event-location {
	margin: 0 0 12px;
	color: #D0D0D0 !important;
	font-size: 14px;
	font-weight: 400;
}

.mcz-event-link {
	color: #C40000;
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
}

.mcz-event-link:hover {
	text-decoration: underline;
}

.mcz-no-events {
	color: #888888;
}

/* Find a Car Show */

.mcz-find-show-form {
	background: #141414;
	border: 1px solid #262626;
	border-radius: 6px;
	padding: 20px;
	margin-bottom: 24px;
}

.mcz-ff-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 16px;
}

.mcz-ff-row:last-child {
	margin-bottom: 0;
}

.mcz-ff-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 160px;
	min-width: 140px;
}

.mcz-ff-keyword {
	flex: 2 1 240px;
}

.mcz-ff-wide {
	flex: 2 1 240px;
}

.mcz-ff-section-title {
	color: #FFFFFF;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: 24px 0 12px;
	padding-top: 16px;
	border-top: 1px solid #262626;
}

.mcz-ff-section-title:first-of-type {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.mcz-ff-note {
	display: block;
	font-size: 12px;
	color: #888888;
	margin-top: 4px;
	text-transform: none;
}

.mcz-ff-field label,
.mcz-ff-types legend {
	font-size: 12px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #888888;
	margin-bottom: 2px;
}

.mcz-ff-field select,
.mcz-ff-field input[type="date"],
.mcz-ff-field input[type="text"],
.mcz-ff-field input[type="email"],
.mcz-ff-field input[type="tel"],
.mcz-ff-field input[type="url"],
.mcz-ff-field input[type="time"] {
	background: #0c0c0c;
	border: 1px solid #333333;
	color: #FFFFFF;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 14px;
}

.mcz-ff-field select:focus,
.mcz-ff-field input:focus {
	outline: none;
	border-color: #C40000;
}

.mcz-ff-field select option {
	background: #1a1a1a;
	color: #F2F2F2;
}

.mcz-ff-types {
	border: none;
	padding: 0;
	margin: 0;
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.mcz-ff-types legend {
	width: 100%;
}

.mcz-ff-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #D0D0D0;
	font-size: 14px;
	text-transform: none;
}

.mcz-ff-actions {
	align-items: center;
}

.mcz-ff-submit {
	background: #C40000;
	color: #FFFFFF;
	border: none;
	padding: 10px 24px;
	border-radius: 4px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 13px;
	cursor: pointer;
}

.mcz-ff-submit:hover {
	background: #8F0000;
}

.mcz-ff-reset {
	color: #888888;
	font-size: 13px;
	text-decoration: underline;
}

.mcz-results-count {
	color: #888888;
	font-size: 13px;
	margin: 0 0 16px;
}

.mcz-pagination {
	display: flex;
	gap: 8px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.mcz-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid #333333;
	border-radius: 4px;
	color: #D0D0D0;
	text-decoration: none;
	font-size: 13px;
}

.mcz-pagination .page-numbers.current {
	background: #C40000;
	border-color: #C40000;
	color: #FFFFFF;
}

.mcz-pagination .page-numbers:hover:not(.current) {
	border-color: #C40000;
}

/* Submit an Event */

.mcz-ff-field textarea {
	background: #0c0c0c;
	border: 1px solid #333333;
	color: #FFFFFF;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	resize: vertical;
}

.mcz-ff-field textarea:focus {
	outline: none;
	border-color: #C40000;
}

.mcz-ff-field input[type="file"] {
	color: #D0D0D0;
	font-size: 13px;
}

.mcz-form-errors {
	background: rgba(196, 0, 0, 0.12);
	border: 1px solid #C40000;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 16px;
}

.mcz-form-errors ul {
	margin: 0;
	padding-left: 18px;
	color: #FFFFFF;
}

.mcz-submit-success {
	background: #141414;
	border: 1px solid #262626;
	border-left: 4px solid #C40000;
	border-radius: 6px;
	padding: 20px;
	color: #FFFFFF;
}

.mcz-submit-success p {
	margin: 0 0 8px;
	color: #D0D0D0;
}

.mcz-submit-success p:first-child {
	color: #FFFFFF;
}

.mcz-submit-form > p.description {
	color: #888888;
	font-size: 13px;
	margin: -4px 0 16px;
}

.mcz-submit-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mcz-submit-overlay-inner {
	text-align: center;
	color: #FFFFFF;
}

.mcz-submit-overlay-inner p {
	margin-top: 16px;
	font-size: 15px;
	color: #D0D0D0;
}

.mcz-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #333333;
	border-top-color: #C40000;
	border-radius: 50%;
	margin: 0 auto;
	animation: mcz-spin 0.8s linear infinite;
}

@keyframes mcz-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Card additions (v0.2.0): time, status lines, cancelled cards */

.mcz-event-time {
	margin: 0 0 4px;
	color: #F2F2F2 !important;
	font-size: 14px;
	font-weight: 600;
}

.mcz-event-status {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: #D0D0D0;
}

.mcz-event-status--postponed {
	color: #FFB300;
}

.mcz-event-status--cancelled {
	color: #FF6B6B;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.mcz-event-card--cancelled .mcz-event-date {
	background: #3A3A3A;
}

.mcz-event-card--cancelled .mcz-event-name {
	text-decoration: line-through;
	text-decoration-color: #C40000;
	color: #AAAAAA !important;
}

.mcz-event-card--cancelled:hover {
	transform: none;
	border-color: #262626;
}

/* Club pages */

.mcz-upcoming-events--club.mcz-upcoming-events--left {
	justify-content: flex-start;
}

.mcz-next-event__card {
	box-sizing: border-box;
	display: flex;
	background: #141414;
	border: 1px solid #262626;
	border-radius: 6px;
	overflow: hidden;
	max-width: 520px;
}

.mcz-next-event__card .mcz-event-date {
	flex: 0 0 96px;
	padding: 20px 8px;
}

.mcz-next-event__card .mcz-event-month {
	font-size: 15px;
}

.mcz-next-event__card .mcz-event-day {
	font-size: 40px;
}

.mcz-next-event__body {
	padding: 18px 22px;
	flex: 1;
	min-width: 0;
}

.mcz-next-event__date {
	margin: 0 0 6px;
	color: #FFFFFF !important;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}

.mcz-badge {
	display: inline-block;
	margin-bottom: 8px;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.mcz-badge--postponed {
	background: #FFB300;
	color: #111111;
}

.mcz-event-notice {
	box-sizing: border-box;
	margin: 0 0 12px;
	padding: 10px 14px;
	background: rgba(196, 0, 0, 0.12);
	border-left: 4px solid #C40000;
	border-radius: 0 4px 4px 0;
	color: #FFFFFF;
	font-size: 14px;
	max-width: 520px;
}

/* Find a Car Show: content placed inside the shortcode (e.g. a sponsor box ad) */

.mcz-finder-slot {
	flex: 0 1 340px;
	max-width: 340px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mcz-finder-slot > * {
	margin: 0 !important;
	width: 100%;
}

.mcz-upcoming-events--ad-only {
	justify-content: flex-start;
}

@media (prefers-reduced-motion: reduce) {
	.mcz-event-card {
		transition: none;
	}
	.mcz-event-card:hover {
		transform: none;
	}
}

/* Keep event cards their natural height in a row that also holds a taller ad. */
.mcz-upcoming-events:has(.mcz-finder-slot) {
	align-items: flex-start;
}

/* v0.2.1: alignment for the club shortcodes (align="left|center|right") */

.mcz-upcoming-events--club.mcz-upcoming-events--center {
	justify-content: center;
}

.mcz-upcoming-events--club.mcz-upcoming-events--right {
	justify-content: flex-end;
}

.mcz-next-event--center .mcz-next-event__card,
.mcz-next-event--center .mcz-event-notice,
.mcz-next-event--center .mcz-no-events {
	margin-left: auto;
	margin-right: auto;
}

.mcz-next-event--center .mcz-no-events {
	text-align: center;
}

.mcz-next-event--right .mcz-next-event__card,
.mcz-next-event--right .mcz-event-notice {
	margin-left: auto;
	margin-right: 0;
}

.mcz-next-event--right .mcz-no-events {
	text-align: right;
}

/* v0.2.1: themes (Kadence included) add their own paragraph and heading
   spacing inside page content, which spread the card lines apart.
   These selectors are specific enough to keep the cards' own spacing. */

.mcz-event-body h3.mcz-event-name {
	margin: 4px 0 8px;
}

.mcz-event-body p.mcz-event-time,
.mcz-next-event__body p.mcz-event-time {
	margin: 0 0 4px;
}

.mcz-event-body p.mcz-event-location,
.mcz-next-event__body p.mcz-event-location {
	margin: 0 0 10px;
}

.mcz-event-body p.mcz-event-status,
.mcz-next-event__body p.mcz-event-status {
	margin: 0 0 8px;
}

.mcz-next-event__body p.mcz-next-event__date {
	margin: 0 0 6px;
}

.mcz-next-event p.mcz-event-notice {
	margin: 0 0 12px;
}

.mcz-event-body > :last-child,
.mcz-next-event__body > :last-child {
	margin-bottom: 0;
}

.mcz-no-events--center {
	text-align: center;
}

.mcz-no-events--right {
	text-align: right;
}

/* v0.3.0: "Moved from" lines */

.mcz-event-status--moved {
	color: #F2F2F2;
}

.mcz-event-notice--moved,
.mcz-event-notice--postponed {
	border-left-color: #FFB300;
	background: rgba(255, 179, 0, 0.1);
}

/* v0.3.0: [muddycarz_event_detail] */

.mcz-event-flyer {
	margin: 0 0 16px;
}

.mcz-event-flyer a {
	display: inline-block;
	line-height: 0;
}

.mcz-event-flyer img,
.mcz-event-flyer__img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.mcz-event-flyer-pdf {
	color: #FFFFFF;
	font-weight: 600;
}

/* v0.3.0: club directory [muddycarz_clubs] */

.mcz-clubs {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 24px 0;
}

.mcz-club-tile {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	aspect-ratio: 1456 / 300;
	min-height: 200px;
	overflow: hidden;
	background: #141414;
	border: 1px solid #262626;
	border-radius: 6px;
	color: #FFFFFF;
	text-decoration: none !important;
	transition: border-color 0.2s ease;
}

.mcz-club-tile:hover,
.mcz-club-tile:focus-visible {
	border-color: #C40000;
}

.mcz-club-tile:focus-visible {
	outline: 2px solid #C40000;
	outline-offset: 3px;
}

.mcz-club-tile--no-image {
	border-left: 6px solid #C40000;
}

.mcz-club-tile img.mcz-club-tile__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.mcz-club-tile:hover img.mcz-club-tile__img {
	transform: scale(1.03);
}

.mcz-club-tile__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.1) 100%);
}

.mcz-club-tile__body {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	max-width: 60%;
	padding: 24px 32px;
}

.mcz-club-tile__name {
	font-size: clamp(24px, 3.4vw, 40px);
	font-weight: 800;
	line-height: 1.05;
	text-transform: uppercase;
	color: #FFFFFF;
}

.mcz-club-tile__desc {
	font-size: 15px;
	line-height: 1.45;
	color: #D0D0D0;
}

.mcz-club-tile__meet {
	margin-top: 2px;
	padding-left: 10px;
	border-left: 3px solid #C40000;
	font-size: 14px;
	font-weight: 600;
	color: #FFFFFF;
}

.mcz-club-tile__cta {
	margin-top: 6px;
	font-size: 14px;
	font-weight: 700;
	color: #FFFFFF;
	text-decoration: underline;
	text-decoration-color: #C40000;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

@media (max-width: 767px) {
	.mcz-club-tile {
		aspect-ratio: auto;
		min-height: 220px;
	}
	.mcz-club-tile__shade {
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.25) 100%);
	}
	.mcz-club-tile__body {
		max-width: 100%;
		padding: 20px;
		align-self: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mcz-club-tile img.mcz-club-tile__img {
		transition: none;
	}
	.mcz-club-tile:hover img.mcz-club-tile__img {
		transform: none;
	}
}

/* v0.4.0: Club Members Only badge (spec Section 9.7) */

.mcz-event-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.mcz-event-meta .mcz-badge {
	margin-bottom: 0;
}

.mcz-badge--members {
	background: transparent;
	border: 1px solid #C40000;
	color: #FFFFFF;
	padding: 1px 7px;
}

.mcz-next-event__date .mcz-badge--members {
	margin: 0 0 0 6px;
	vertical-align: 3px;
}

/* v0.4.0: empty card (club shortcodes with no upcoming events) */

.mcz-event-date--empty {
	background: #3A3A3A;
	color: #888888;
}

.mcz-empty-icon {
	display: block;
}

.mcz-event-card--empty,
.mcz-next-event__card--empty {
	align-items: stretch;
}

.mcz-event-card--empty:hover {
	transform: none;
	border-color: #262626;
}

.mcz-event-card--empty .mcz-event-body,
.mcz-next-event__card--empty .mcz-next-event__body {
	display: flex;
	align-items: center;
}

.mcz-event-body p.mcz-event-empty-text,
.mcz-next-event__body p.mcz-event-empty-text {
	margin: 0;
	color: #D0D0D0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.mcz-next-event__card--empty .mcz-event-date {
	min-height: 96px;
}

/* v0.4.0: "This show took place" notice */

.mcz-event-notice--past {
	border-left-color: #888888;
	background: rgba(255, 255, 255, 0.06);
}

.mcz-event-notice__link {
	color: #FFFFFF;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: #C40000;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.mcz-event-notice__link:hover {
	color: #C40000;
}
