/* TNA Modal Search — styles (TheMusicAccess.com palette) */

:root {
	/* Variable names kept as --tna-gold/-light for consistency across
	   sites, but repurposed here as the general accent color — hot pink,
	   pulled from the rainbow treble-clef logo. */
	--tna-gold: #ec1e8c;
	--tna-gold-light: #f562b0;
	--tna-dark: #111111;
	--tna-overlay: rgba(10, 10, 10, 0.96);
	--tna-card-bg: #1b1b1b;
	--tna-card-border: #2c2c2c;
	--tna-text: #f5f5f5;
	--tna-text-muted: #9a9a9a;
}

/* Floating trigger button */
.tna-search-trigger {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99998;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--tna-gold);
	color: #111;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease;
}
.tna-search-trigger:hover {
	background: var(--tna-gold-light);
	transform: scale(1.05);
}

/* Overlay */
.tna-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: var(--tna-overlay);
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	padding: 40px 20px;
	opacity: 0;
	transition: opacity 0.18s ease;
}
/* When results push content taller than the viewport, anchor to the
   top instead of centering so nothing gets clipped above the fold. */
.tna-search-overlay.is-tall {
	justify-content: flex-start;
	padding-top: 70px;
}
.tna-search-overlay.is-open {
	display: flex;
	opacity: 1;
}

.tna-search-close {
	position: fixed;
	top: 18px;
	right: 22px;
	z-index: 100000;
	background: transparent;
	border: none;
	color: var(--tna-text);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
}
.tna-search-close:hover {
	opacity: 1;
}

.tna-search-inner {
	width: 100%;
	max-width: 880px;
}

/* Search input row */
.tna-search-form {
	display: flex;
	align-items: center;
	border: 2px solid var(--tna-gold);
	border-radius: 10px;
	background: #0d0d0d;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tna-search-form:focus-within {
	border-color: var(--tna-gold-light);
	box-shadow: 0 0 0 3px rgba(232, 163, 61, 0.25);
}
.tna-search-input {
	flex: 1;
	-webkit-appearance: none;
	appearance: none;
	-webkit-border-radius: 0;
	border-radius: 0;
	background: transparent !important;
	background-color: transparent !important;
	border: none;
	outline: none;
	color: var(--tna-text) !important;
	font-size: 20px;
	padding: 18px 20px;
	box-shadow: none !important;
	-webkit-text-fill-color: var(--tna-text);
}
.tna-search-input::placeholder {
	color: var(--tna-text-muted) !important;
	opacity: 1;
}
.tna-search-submit {
	background: var(--tna-gold);
	border: none;
	color: #111;
	width: 56px;
	height: 100%;
	min-height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}
.tna-search-submit:hover {
	background: var(--tna-gold-light);
}

/* Results grid */
.tna-search-results {
	margin-top: 28px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
}
@media (min-width: 640px) {
	.tna-search-results {
		grid-template-columns: 1fr 1fr;
	}
}

.tna-search-hint,
.tna-search-empty {
	color: var(--tna-text-muted);
	font-size: 15px;
	padding: 4px 2px;
}

.tna-result-item {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--tna-card-bg);
	border: 1px solid var(--tna-card-border);
	border-radius: 10px;
	padding: 10px 14px;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.1s ease;
}
.tna-result-item:hover {
	border-color: var(--tna-gold);
	transform: translateY(-1px);
}
.tna-result-thumb {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tna-result-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.tna-result-title {
	color: var(--tna-text);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.tna-search-more-wrap {
	text-align: center;
	margin-top: 26px;
}
.tna-search-more {
	background: transparent;
	border: 1px solid var(--tna-gold);
	color: var(--tna-gold);
	padding: 10px 26px;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}
.tna-search-more:hover {
	background: var(--tna-gold);
	color: #111;
}

/* Prevent page scroll behind the open modal */
body.tna-search-open {
	overflow: hidden;
}

/* ---------- Full results page (fallback / "Show more" destination) ---------- */
.tna-results-page {
	max-width: 1000px;
	margin: 0 auto;
	padding: 40px 20px 80px;
}
.tna-results-heading {
	font-size: 30px;
	font-weight: 800;
	margin-bottom: 30px;
	color: #111;
}
.tna-results-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 640px) {
	.tna-results-list {
		grid-template-columns: 1fr 1fr;
	}
}
.tna-results-card {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	padding: 16px;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.tna-results-card:hover {
	border-color: var(--tna-gold);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.tna-results-card-thumb {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
	background: #f3f3f3;
	display: flex;
	align-items: center;
	justify-content: center;
}
.tna-results-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.tna-results-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #111;
}
.tna-results-empty {
	color: #666;
	font-size: 16px;
}
.tna-results-count {
	color: #666;
	font-size: 14px;
	margin: -14px 0 22px;
}
.tna-results-load-more-wrap {
	text-align: center;
	margin-top: 30px;
}
#tna-results-load-more:disabled {
	opacity: 0.6;
	cursor: default;
}

