/* Let's Frkn Dance — header, events, directory
   Builds on the tokens defined in map.css. */

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */

.lfd-nav-wrap {
	background: rgba(11, 10, 13, 0.92);
	border-bottom: 1px solid var(--lfd-line);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.lfd-nav-wrap.is-sticky {
	position: sticky;
	top: 0;
	z-index: 900;
}

.lfd-nav-wrap.is-scrolled {
	border-bottom-color: rgba(255, 59, 47, 0.45);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lfd-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 22px;
}

.lfd-nav-brand {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	text-decoration: none;
	line-height: 0;
}

.lfd-nav-brand img {
	height: 56px;
	width: auto;
	display: block;
	/* The logo art sits on a black background. Screen blending drops that black
	   away so it reads as lit neon rather than a pasted-on square. */
	mix-blend-mode: screen;
}

.lfd-nav-wordmark {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--lfd-bone);
	line-height: 1.2;
}

.lfd-nav-panel {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.lfd-nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lfd-nav-menu li { position: relative; margin: 0; }

.lfd-nav-menu a {
	display: block;
	padding: 10px 14px;
	color: var(--lfd-bone);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.lfd-nav-menu a:hover,
.lfd-nav-menu .current-menu-item > a {
	border-bottom-color: var(--lfd-neon);
	color: #fff;
}

/* Second level */
.lfd-nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 210px;
	list-style: none;
	margin: 0;
	padding: 6px 0;
	background: var(--lfd-panel);
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
}

.lfd-nav-menu li:hover > .sub-menu,
.lfd-nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }

.lfd-nav-menu .sub-menu a { border-bottom: 0; padding: 9px 16px; font-weight: 500; }
.lfd-nav-menu .sub-menu a:hover { background: var(--lfd-panel-2); }

.lfd-nav-cta { padding: 10px 18px; font-size: 14px; margin-left: 8px; }

.lfd-nav-toggle {
	display: none;
	margin-left: auto;
	padding: 10px;
	background: transparent;
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	cursor: pointer;
}

.lfd-nav-bars { display: block; width: 22px; }

.lfd-nav-bars span {
	display: block;
	height: 2px;
	background: var(--lfd-bone);
	border-radius: 2px;
}

.lfd-nav-bars span + span { margin-top: 5px; }

.lfd-nav-empty { color: var(--lfd-muted); font-size: 14px; margin: 0; }

@media (max-width: 900px) {
	.lfd-nav { padding: 10px 18px; }
	.lfd-nav-brand img { height: 44px; }
	.lfd-nav-toggle { display: block; }

	.lfd-nav-panel {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 18px 18px;
		background: var(--lfd-ink);
		border-bottom: 1px solid var(--lfd-line);
	}

	.lfd-nav-panel.is-open { display: flex; }
	.lfd-nav { position: relative; }
	.lfd-nav-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.lfd-nav-menu a { padding: 14px 4px; border-bottom: 1px solid var(--lfd-line); }
	.lfd-nav-menu a:hover, .lfd-nav-menu .current-menu-item > a { border-bottom-color: var(--lfd-neon); }

	.lfd-nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		border: 0;
		box-shadow: none;
		background: transparent;
		padding: 0 0 0 16px;
	}

	.lfd-nav-cta { margin: 14px 0 0; }
}

/* ------------------------------------------------------------------ *
 * Events
 * ------------------------------------------------------------------ */

.lfd-event-list { display: flex; flex-direction: column; gap: 12px; }

.lfd-event-wrap[hidden] { display: none; }

.lfd-event {
	display: grid;
	grid-template-columns: 74px 132px 1fr auto;
	gap: 18px;
	align-items: center;
	padding: 14px 18px 14px 14px;
	background: var(--lfd-panel);
	border: 1px solid var(--lfd-line);
	border-left: 3px solid var(--lfd-neon);
	border-radius: var(--lfd-radius);
}

/* No flyer: let the text take the space. */
.lfd-event-noflyer { grid-template-columns: 74px 1fr auto; }

.lfd-event-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 6px;
	background: var(--lfd-ink);
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	text-decoration: none;
	line-height: 1;
}

.lfd-event-mon {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lfd-neon);
}

.lfd-event-day { font-size: 28px; font-weight: 800; color: var(--lfd-bone); margin: 4px 0 3px; }
.lfd-event-dow { font-size: 12px; color: var(--lfd-muted); }

.lfd-event-flyer { display: block; line-height: 0; }

.lfd-event-flyer img {
	width: 132px;
	height: 96px;
	object-fit: cover;
	border-radius: var(--lfd-radius);
	border: 1px solid var(--lfd-line);
}

.lfd-event-body { min-width: 0; }

.lfd-event-body h3 {
	margin: 0 0 4px;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
}

.lfd-event-body h3 a { text-decoration: none; }
.lfd-event-body h3 a:hover { color: var(--lfd-neon); }

.lfd-event-meta { margin: 0; color: var(--lfd-muted); font-size: 14px; }
.lfd-event-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.lfd-event-go { flex: 0 0 auto; }

@media (max-width: 780px) {
	.lfd-event,
	.lfd-event-noflyer {
		grid-template-columns: 64px 1fr;
		gap: 12px 14px;
		align-items: start;
	}

	.lfd-event-flyer { grid-column: 1 / -1; order: 3; }
	.lfd-event-flyer img {
		width: 100%;
		height: auto;
		max-height: 420px;
		object-fit: contain;
		background: var(--lfd-ink);
	}
	.lfd-event-body { order: 2; }
	.lfd-event-go { grid-column: 1 / -1; order: 4; }
	.lfd-event-go .lfd-btn { width: 100%; }
	.lfd-event-day { font-size: 24px; }
}

/* ------------------------------------------------------------------ *
 * Directory
 * ------------------------------------------------------------------ */

.lfd-pro-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}

.lfd-pro[hidden] { display: none; }

.lfd-pro {
	display: flex;
	flex-direction: column;
	background: var(--lfd-panel);
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	overflow: hidden;
}

.lfd-pro-photo {
	width: 100%;
	height: 190px;
	object-fit: cover;
	display: block;
	border-bottom: 1px solid var(--lfd-line);
}

.lfd-pro-photo-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	/* Same height as a real photo, so cards in a row line up. */
	height: 190px;
	background: var(--lfd-ink);
	color: var(--lfd-neon);
	font-size: 52px;
	font-weight: 800;
}

.lfd-pro-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.lfd-pro-body h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.2; }
.lfd-pro-meta { margin: 0; color: var(--lfd-muted); font-size: 14px; }
.lfd-pro-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.lfd-pro-bio { margin: 0; font-size: 15px; }
.lfd-pro-rate { margin: 0; color: var(--lfd-neon); font-size: 15px; font-weight: 600; }

.lfd-pro-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.lfd-pro-links .lfd-btn { padding: 9px 14px; font-size: 14px; }

/* ------------------------------------------------------------------ *
 * Modal
 * ------------------------------------------------------------------ */

.lfd-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(5, 5, 7, 0.82);
	overflow-y: auto;
}

.lfd-modal[hidden] { display: none; }

.lfd-modal-box {
	position: relative;
	width: 100%;
	max-width: 460px;
	padding: 26px 24px 24px;
	background: var(--lfd-panel);
	border: 1px solid var(--lfd-line);
	border-top: 3px solid var(--lfd-neon);
	border-radius: var(--lfd-radius);
	box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}

.lfd-modal-box h3 { margin: 0 0 16px; font-size: 20px; font-weight: 700; }
.lfd-modal-box label { display: block; margin-bottom: 14px; font-size: 14px; font-weight: 600; }
.lfd-modal-box label input,
.lfd-modal-box label textarea { margin-top: 6px; font-weight: 400; }

.lfd-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	background: transparent;
	border: 1px solid var(--lfd-line);
	border-radius: 50%;
	color: var(--lfd-bone);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.lfd-form-narrow { max-width: 620px; }

.lfd-hint { display: block; margin-top: 5px; color: var(--lfd-muted); font-size: 13px; font-weight: 400; }

.lfd-form input[type="file"] {
	width: 100%;
	margin-top: 6px;
	padding: 11px 12px;
	background: var(--lfd-panel);
	border: 1px dashed var(--lfd-line);
	border-radius: var(--lfd-radius);
	color: var(--lfd-muted);
	font-size: 14px;
}

.lfd-form input[type="date"],
.lfd-form input[type="time"] {
	width: 100%;
	margin-top: 6px;
	padding: 12px 14px;
	background: var(--lfd-panel);
	border: 1px solid var(--lfd-line);
	border-radius: var(--lfd-radius);
	color: var(--lfd-bone);
	font: inherit;
	font-size: 16px;
	color-scheme: dark;
}

.lfd-repeat-extra,
.lfd-repeat-until { margin-top: 14px; }
.lfd-repeat-extra[hidden],
.lfd-repeat-until[hidden] { display: none; }
