/**
 * IllusoX EventX Pro — Theme-Inherited Frontend Stylesheet (`assets/css/frontend.css`).
 *
 * ARCHITECTURE & DESIGN PHILOSOPHY #2:
 * - Zero hardcoded hex/RGB colors.
 * - Uses only WordPress preset CSS custom properties (`var(--wp--preset--color--*)`),
 *   `currentColor`, `transparent`, and `inherit`.
 * - Inherits typography, line-heights, form inputs, and button styles directly
 *   from the active WordPress theme (Astra, Kadence, GeneratePress, Twenty Twenty-Four, etc.).
 */

.eventx-single-event,
.eventx-archive-events,
.eventx-pending-payment-page,
.eventx-booking-form,
.eventx-order-tickets-section {
	font-family: inherit;
	color: inherit;
	line-height: inherit;
}

.eventx-event-banner {
	margin: 0 0 1.75rem;
	border-radius: 8px;
	overflow: hidden;
}

.eventx-event-banner img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 460px;
	object-fit: cover;
}

.eventx-event-meta-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.75rem;
	margin: 0.75rem 0 1.75rem;
	padding: 0.875rem 1.25rem;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 6px;
}

.eventx-tickets-section {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

.eventx-tier-cards,
.eventx-tickets-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.25rem;
	margin: 1.25rem 0 2rem;
}

.eventx-ticket-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.25rem;
	border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
	border-radius: 8px;
	background: var(--wp--preset--color--base, transparent);
	transition: border-color 0.15s ease;
}

.eventx-ticket-card:hover {
	border-color: var(--wp--preset--color--primary, currentColor);
}

.eventx-tier-title,
.eventx-ticket-event-title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
}

.eventx-tier-price {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--primary, inherit);
}

.eventx-tier-stock,
.eventx-ticket-meta {
	margin: 0.25rem 0;
	font-size: 0.925em;
	opacity: 0.88;
}

.eventx-ticket-card-action,
.eventx-ticket-card-actions {
	margin-top: 1rem;
}

/* Booking & Attendee Registration Form */
.eventx-booking-form {
	margin-top: 1.75rem;
	padding: 1.5rem;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 8px;
}

.eventx-booking-controls {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.eventx-attendee-fieldset {
	margin: 0 0 1.5rem;
	padding: 1.25rem;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 6px;
}

.eventx-attendee-fieldset legend {
	padding: 0 0.5rem;
	font-weight: 600;
}

.eventx-field-group {
	margin-bottom: 1rem;
}

.eventx-field-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
}

.eventx-booking-form .eventx-field,
.eventx-archive-filter-bar .eventx-field {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: inherit;
	background-color: transparent;
	border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
	border-radius: 4px;
	padding: 0.55rem 0.75rem;
}

.eventx-radio-group,
.eventx-checkbox-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.eventx-inline-option {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-weight: normal;
	cursor: pointer;
}

.eventx-inline-option input {
	width: auto;
	margin: 0;
}

.eventx-booking-feedback {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border: 1px solid currentColor;
	border-radius: 4px;
}

/* Archive Grid & Filter Bar */
.eventx-archive-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 1.25rem 0 2rem;
}

.eventx-filter-group {
	flex: 1 1 200px;
}

.eventx-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0 2.5rem;
}

.eventx-event-card {
	display: flex;
	flex-direction: column;
	border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
	border-radius: 8px;
	overflow: hidden;
}

.eventx-card-thumb {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.eventx-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.25rem;
}

.eventx-card-date-badge {
	display: inline-block;
	align-self: flex-start;
	font-size: 0.85em;
	font-weight: 600;
	padding: 0.2rem 0.6rem;
	margin-bottom: 0.6rem;
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 4px;
}

.eventx-card-title {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
}

.eventx-card-title a {
	color: inherit;
	text-decoration: none;
}

.eventx-card-footer {
	margin-top: auto;
	padding-top: 1rem;
}

/* Pending Payment Page */
.eventx-pending-notice {
	margin-bottom: 1.5rem;
}

.eventx-pending-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.75rem;
}
