/* ==========================================================================
   Jethro Tickets — public UI
   ========================================================================== */

:root {
	--jethro-primary: #6d28d9;
	--jethro-primary-dark: #4c1d95;
	--jethro-primary-soft: #f3eeff;
	--jethro-accent: #16a34a;
	--jethro-ink: #1e1b2e;
	--jethro-muted: #6b7280;
	--jethro-border: #e5e7eb;
	--jethro-bg: #ffffff;
	--jethro-surface: #faf9ff;
	--jethro-radius: 14px;
	--jethro-radius-sm: 9px;
	--jethro-shadow: 0 1px 2px rgba(31, 20, 70, .05), 0 8px 24px rgba(31, 20, 70, .06);
	--jethro-shadow-lg: 0 12px 40px rgba(31, 20, 70, .12);
}

.jethro-directory,
.jethro-event-detail,
.jethro-creator {
	max-width: 1120px;
	margin: 0 auto;
	padding: 2em 1.25em;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--jethro-ink);
	line-height: 1.5;
}

.jethro-directory a,
.jethro-event-detail a {
	color: var(--jethro-primary);
}

/* ---------- Buttons ---------- */

.jethro-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45em;
	background: var(--jethro-primary);
	color: #fff;
	padding: .6em 1.2em;
	border-radius: var(--jethro-radius-sm);
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	font-weight: 600;
	font-size: .95em;
	transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
}

.jethro-button:hover {
	background: var(--jethro-primary-dark);
	color: #fff;
	box-shadow: 0 4px 14px rgba(109, 40, 217, .28);
}

.jethro-button:active {
	transform: translateY(1px);
}

.jethro-button-ghost {
	background: transparent;
	color: var(--jethro-primary);
	border-color: rgba(109, 40, 217, .35);
}

.jethro-button-ghost:hover {
	background: var(--jethro-primary-soft);
	color: var(--jethro-primary);
	box-shadow: none;
}

.jethro-button-accent {
	background: var(--jethro-accent);
}

.jethro-button-accent:hover {
	background: #128a3d;
	box-shadow: 0 4px 14px rgba(22, 163, 74, .28);
}

/* ---------- Tags & badges ---------- */

.jethro-tag {
	display: inline-block;
	background: var(--jethro-primary-soft);
	color: var(--jethro-primary);
	font-size: .74em;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	border-radius: 999px;
	padding: .28em .8em;
}

.jethro-tag-online {
	background: #e0f2fe;
	color: #0369a1;
}

.jethro-badge {
	display: inline-block;
	font-size: .72em;
	font-weight: 700;
	padding: .22em .7em;
	border-radius: 999px;
	text-transform: capitalize;
	letter-spacing: .02em;
}

.jethro-badge-published { background: #dcfce7; color: #15803d; }
.jethro-badge-pending_review { background: #fef9c3; color: #a16207; }
.jethro-badge-draft { background: #e5e7eb; color: #374151; }
.jethro-badge-cancelled { background: #fee2e2; color: #b91c1c; }
.jethro-badge-rejected { background: #fee2e2; color: #b91c1c; }
.jethro-badge-completed { background: #e0e7ff; color: #4338ca; }
.jethro-badge-archived { background: #e5e7eb; color: #6b7280; }

/* ---------- Filters ---------- */

.jethro-filters {
	display: flex;
	gap: .6em;
	margin-bottom: 1.75em;
	flex-wrap: wrap;
	background: var(--jethro-surface);
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius);
	padding: .9em;
}

.jethro-filters input,
.jethro-filters select {
	padding: .6em .85em;
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius-sm);
	background: var(--jethro-bg);
	font: inherit;
	font-size: .95em;
	flex: 1 1 160px;
}

.jethro-filters input:focus,
.jethro-filters select:focus,
.jethro-wizard input:focus,
.jethro-wizard select:focus,
.jethro-wizard textarea:focus,
.jethro-apply-form input:focus,
.jethro-apply-form textarea:focus {
	outline: none;
	border-color: var(--jethro-primary);
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .15);
}

/* ---------- Event cards ---------- */

.jethro-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.25em;
}

.jethro-card {
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius);
	background: var(--jethro-bg);
	overflow: hidden;
	transition: transform .15s ease, box-shadow .2s ease;
}

.jethro-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--jethro-shadow-lg);
}

.jethro-card-link {
	text-decoration: none;
	color: inherit;
	display: block;
	height: 100%;
}

.jethro-card-media img {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.jethro-card-media-empty {
	height: 180px;
	background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 60%, #0891b2 100%);
	position: relative;
}

.jethro-card-media-empty::after {
	content: "🎟";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.6em;
	opacity: .9;
}

.jethro-card-body {
	padding: 1.05em 1.15em 1.25em;
}

.jethro-card-tags {
	display: flex;
	gap: .45em;
	flex-wrap: wrap;
	margin-bottom: .55em;
}

.jethro-card-title {
	margin: 0 0 .35em;
	font-size: 1.12em;
	font-weight: 700;
}

.jethro-card-meta {
	color: var(--jethro-muted);
	font-size: .86em;
	margin: 0 0 .9em;
}

.jethro-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	border-top: 1px dashed var(--jethro-border);
	padding-top: .8em;
}

.jethro-card-price {
	font-weight: 700;
	color: var(--jethro-primary-dark);
}

.jethro-card-city {
	font-size: .85em;
	color: var(--jethro-muted);
}

/* ---------- Empty state ---------- */

.jethro-empty-state {
	text-align: center;
	padding: 4em 1em;
	color: var(--jethro-muted);
}

.jethro-empty-icon {
	font-size: 3em;
	display: block;
	margin-bottom: .4em;
}

.jethro-empty-state h2 {
	color: var(--jethro-ink);
	margin: 0 0 .35em;
}

/* ---------- Event detail ---------- */

.jethro-breadcrumb {
	margin-bottom: 1em;
	font-size: .9em;
}

.jethro-event-hero {
	border-radius: var(--jethro-radius);
	overflow: hidden;
	margin-bottom: 1.5em;
	background:
		linear-gradient(135deg, rgba(76, 29, 149, .92) 0%, rgba(67, 56, 202, .9) 55%, rgba(8, 145, 178, .85) 100%);
	color: #fff;
}

.jethro-event-cover img {
	width: 100%;
	height: 300px;
	object-fit: cover;
	display: block;
}

.jethro-event-heading {
	padding: 1.4em 1.6em 1.6em;
}

.jethro-event-cover + .jethro-event-heading {
	background: linear-gradient(135deg, rgba(76, 29, 149, .96) 0%, rgba(67, 56, 202, .94) 55%, rgba(8, 145, 178, .9) 100%);
}

.jethro-event-heading .jethro-tag {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.jethro-event-title {
	margin: .6em 0 0;
	font-size: clamp(1.6em, 4vw, 2.4em);
	line-height: 1.15;
}

.jethro-event-layout {
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 2em;
	align-items: start;
}

.jethro-event-facts {
	margin: 0 0 1.75em;
}

.jethro-fact {
	display: flex;
	gap: .9em;
	padding: .9em 0;
	border-bottom: 1px solid var(--jethro-border);
}

.jethro-fact:first-child {
	padding-top: 0;
}

.jethro-fact-icon {
	font-size: 1.4em;
	line-height: 1.2;
	filter: grayscale(.15);
}

.jethro-fact dt {
	font-size: .76em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--jethro-muted);
}

.jethro-fact dd {
	margin: .15em 0 0;
	font-weight: 600;
}

.jethro-fact-sub {
	font-weight: 400;
	color: var(--jethro-muted);
	font-size: .9em;
}

.jethro-event-description h2 {
	font-size: 1.35em;
	margin: 0 0 .6em;
}

.jethro-prose p {
	margin: 0 0 1em;
	color: #333040;
}

/* ---------- Ticket box ---------- */

.jethro-ticket-box {
	background: var(--jethro-surface);
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius);
	padding: 1.4em;
	position: sticky;
	top: 24px;
	box-shadow: var(--jethro-shadow);
}

.jethro-ticket-box h2 {
	margin: 0 0 1em;
	font-size: 1.25em;
}

.jethro-ticket-row {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	align-items: center;
	padding: 1.1em 0;
	border-bottom: 1px solid var(--jethro-border);
}

.jethro-ticket-info h3 {
	margin: 0 0 .2em;
	font-size: 1.05em;
}

.jethro-ticket-info p {
	margin: 0 0 .35em;
	color: var(--jethro-muted);
	font-size: .88em;
}

.jethro-ticket-price {
	font-weight: 800;
	color: var(--jethro-primary-dark);
	font-size: 1.05em;
}

.jethro-ticket-actions {
	text-align: right;
	white-space: nowrap;
}

.jethro-ticket-arrive {
	margin-top: 1.1em;
	color: var(--jethro-muted);
	font-size: .82em;
}

.jethro-low-stock {
	color: #b45309;
	font-size: .8em;
	font-weight: 600;
}

.jethro-soldout {
	color: #b91c1c;
	font-weight: 700;
	font-size: .9em;
}

.jethro-hint {
	color: var(--jethro-muted);
	font-size: .9em;
}

.jethro-alert {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	border-radius: var(--jethro-radius-sm);
	padding: 1em 1.2em;
	max-width: 760px;
	margin: 2em auto;
}

/* ---------- Creator studio ---------- */

.jethro-gate {
	text-align: center;
	padding: 4em 1em;
	max-width: 560px;
	margin: 0 auto;
}

.jethro-gate h2 {
	font-size: 1.7em;
	margin: 0 0 .5em;
}

.jethro-gate .jethro-button {
	margin: 0 .35em .5em;
}

.jethro-apply-form {
	display: grid;
	gap: 1em;
	max-width: 440px;
	margin: 1.75em auto;
	text-align: left;
	background: var(--jethro-surface);
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius);
	padding: 1.5em;
}

.jethro-apply-form label {
	display: grid;
	gap: .35em;
	font-weight: 600;
	font-size: .92em;
}

.jethro-apply-form input,
.jethro-apply-form textarea {
	padding: .6em .8em;
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius-sm);
	font: inherit;
}

.jethro-creator-nav {
	display: flex;
	gap: .25em;
	border-bottom: 2px solid var(--jethro-border);
	margin-bottom: 1.75em;
	flex-wrap: wrap;
}

.jethro-creator-nav button {
	border: none;
	background: none;
	padding: .65em 1.1em;
	cursor: pointer;
	font-size: .95em;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	color: var(--jethro-muted);
	font-weight: 600;
}

.jethro-creator-nav button:hover {
	color: var(--jethro-primary);
}

.jethro-creator-nav button.active {
	border-color: var(--jethro-primary);
	color: var(--jethro-primary);
}

.jethro-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1em;
	margin-bottom: 1.75em;
}

.jethro-stat {
	background: var(--jethro-surface);
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius);
	padding: 1.15em;
	text-align: center;
}

.jethro-stat strong {
	display: block;
	font-size: 1.7em;
	color: var(--jethro-primary);
}

.jethro-stat span {
	font-size: .85em;
	color: var(--jethro-muted);
}

.jethro-event-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.jethro-event-list li {
	display: flex;
	gap: .8em;
	align-items: center;
	padding: .85em .5em;
	border-bottom: 1px solid var(--jethro-border);
	transition: background .12s ease;
}

.jethro-event-list li:hover {
	background: var(--jethro-surface);
}

.jethro-event-list li:first-child {
	border-top: 1px solid var(--jethro-border);
}

.jethro-event-name {
	font-weight: 600;
	flex: 1;
	min-width: 0;
}

.jethro-event-date {
	color: var(--jethro-muted);
	font-size: .85em;
}

.jethro-event-list button {
	border: 1px solid var(--jethro-border);
	background: #fff;
	border-radius: var(--jethro-radius-sm);
	padding: .35em .8em;
	cursor: pointer;
	font-size: .85em;
	font-weight: 600;
	color: var(--jethro-ink);
	transition: border-color .12s ease, color .12s ease;
}

.jethro-event-list button:hover {
	border-color: var(--jethro-primary);
	color: var(--jethro-primary);
}

/* ---------- Wizard ---------- */

.jethro-wizard-steps {
	display: flex;
	gap: .5em;
	margin-bottom: 1.5em;
	flex-wrap: wrap;
	counter-reset: step;
}

.jethro-wizard-steps .step {
	border: 1px solid var(--jethro-border);
	background: #fff;
	border-radius: 999px;
	padding: .45em 1.05em .45em 2.4em;
	cursor: pointer;
	font-size: .86em;
	font-weight: 600;
	position: relative;
	color: var(--jethro-muted);
}

.jethro-wizard-steps .step::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	left: .7em;
	top: 50%;
	transform: translateY(-50%);
	width: 1.35em;
	height: 1.35em;
	border-radius: 50%;
	background: var(--jethro-border);
	color: var(--jethro-muted);
	font-size: .85em;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jethro-wizard-steps .step.active {
	border-color: var(--jethro-primary);
	color: var(--jethro-primary);
	background: var(--jethro-primary-soft);
}

.jethro-wizard-steps .step.active::before {
	background: var(--jethro-primary);
	color: #fff;
}

.jethro-wizard-section {
	border: none;
	padding: 0;
	display: grid;
	gap: 1em;
	background: var(--jethro-surface);
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius);
	padding: 1.5em;
}

.jethro-wizard-section label {
	display: grid;
	gap: .35em;
}

.jethro-wizard-section label > span {
	font-weight: 600;
	font-size: .9em;
}

.jethro-wizard-section input[type="text"],
.jethro-wizard-section input[type="number"],
.jethro-wizard-section input[type="datetime-local"],
.jethro-wizard-section input[type="url"],
.jethro-wizard-section select,
.jethro-wizard-section textarea {
	padding: .6em .8em;
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius-sm);
	font: inherit;
	background: #fff;
}

.jethro-wizard-section textarea {
	resize: vertical;
}

.jethro-ticket-editor {
	display: grid;
	gap: .7em;
}

.jethro-wizard .jethro-ticket-row {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr .8fr auto;
	gap: .6em;
	align-items: center;
	padding: 1em;
	background: #fff;
	border: 1px solid var(--jethro-border);
	border-radius: var(--jethro-radius-sm);
}

.jethro-wizard .jethro-ticket-row input {
	padding: .45em .6em;
	border: 1px solid var(--jethro-border);
	border-radius: 6px;
	width: 100%;
	box-sizing: border-box;
	font: inherit;
}

.jethro-wizard .jethro-ticket-row button {
	border: 1px solid #fecaca;
	background: #fef2f2;
	color: #b91c1c;
	border-radius: 6px;
	padding: .45em .8em;
	cursor: pointer;
	font-weight: 600;
}

.jethro-wizard-nav {
	display: flex;
	gap: .6em;
	margin-top: 1.5em;
	justify-content: flex-end;
}

.jethro-wizard-status {
	color: var(--jethro-muted);
	font-size: .9em;
	margin-top: .9em;
	text-align: right;
}

.jethro-review-summary {
	white-space: pre-line;
	margin: 0;
	color: var(--jethro-ink);
}

/* ---------- Misc helpers ---------- */

.jethro-my-tickets.empty {
	text-align: center;
	color: var(--jethro-muted);
	padding: 3em 1em;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
	.jethro-event-layout {
		grid-template-columns: 1fr;
	}

	.jethro-ticket-box {
		position: static;
	}

	.jethro-event-cover img {
		height: 220px;
	}

	.jethro-wizard .jethro-ticket-row {
		grid-template-columns: 1fr 1fr;
	}

	.jethro-wizard .jethro-ticket-row .tt-name {
		grid-column: 1 / -1;
	}

	.jethro-event-list li {
		flex-wrap: wrap;
	}
}

@media (max-width: 500px) {
	.jethro-card-media img,
	.jethro-card-media-empty {
		height: 150px;
	}

	.jethro-wizard .jethro-ticket-row {
		grid-template-columns: 1fr;
	}

	.jethro-wizard-nav {
		flex-wrap: wrap;
		justify-content: stretch;
	}

	.jethro-wizard-nav .jethro-button {
		flex: 1;
	}
}