/**
 * Styles for the PDL search-results page, 404 page, and the header live-search
 * dropdown. Uses the brand color variables defined in output.css (:root
 * --color-*) so everything matches the theme without a Tailwind rebuild.
 */

/* ---- Shared page shell (search + 404) --------------------------------- */
.pdl-page {
	min-height: 70vh;
	padding: 7.5rem 1.875rem 5rem; /* clears the fixed header */
	color: #fff;
}
.pdl-page__inner {
	max-width: 80rem;
	margin: 0 auto;
}
.pdl-page h1 {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 500;
	line-height: 1.05;
	margin: 0;
}
.pdl-page__meta {
	color: rgba(255, 255, 255, 0.7);
	margin-top: 0.5rem;
}

/* ---- Search form + buttons -------------------------------------------- */
.pdl-search__form {
	display: flex;
	gap: 0.75rem;
	margin: 1.5rem 0 2.5rem;
	max-width: 36rem;
}
.pdl-search__input {
	flex: 1;
	height: 2.75rem;
	border-radius: 9999px;
	background: transparent;
	border: 1px solid var(--color-cyan);
	color: #fff;
	padding: 0 1rem;
	outline: none;
}
.pdl-search__input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}
.pdl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 2.75rem;
	padding: 0 1.25rem;
	border: 0;
	border-radius: 9999px;
	font-weight: 500;
	color: var(--color-slate);
	background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.pdl-btn:hover {
	filter: brightness(1.06);
}

/* ---- Search results list ---------------------------------------------- */
.pdl-results {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
.pdl-result {
	border-bottom: 1px solid rgba(0, 225, 141, 0.25);
	padding-bottom: 1.25rem;
}
.pdl-result__type {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-lime-green);
}
.pdl-result__title {
	display: block;
	font-size: 1.5rem;
	font-weight: 500;
	color: #fff;
	text-decoration: none;
	margin-top: 0.15rem;
}
.pdl-result__title:hover {
	text-decoration: underline;
}
.pdl-result__excerpt {
	color: rgba(255, 255, 255, 0.7);
	margin-top: 0.4rem;
}
.pdl-empty {
	color: rgba(255, 255, 255, 0.75);
}

/* ---- Pagination ------------------------------------------------------- */
.pdl-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	margin-top: 2.5rem;
}
.pdl-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	padding: 0 0.5rem;
	border: 1px solid var(--color-teal);
	border-radius: 9999px;
	color: #fff;
	text-decoration: none;
}
.pdl-pagination .page-numbers.current {
	background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
	color: var(--color-slate);
	border-color: transparent;
}
.pdl-pagination a.page-numbers:hover {
	border-color: var(--color-cyan);
}

/* ---- 404 -------------------------------------------------------------- */
.pdl-404 .pdl-page__inner {
	max-width: 40rem;
	text-align: center;
}
.pdl-404__code {
	font-size: clamp(5rem, 18vw, 10rem);
	font-weight: 500;
	line-height: 1;
	margin: 0;
	background: linear-gradient(to right, var(--color-gradient-start), var(--color-gradient-end));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.pdl-404 .pdl-search__form {
	margin-left: auto;
	margin-right: auto;
}
.pdl-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.5rem;
}

/* ---- Header live-search dropdown -------------------------------------- */
#pdl-search-results {
	max-width: 80rem;
	margin: 0.75rem auto 0;
}
#pdl-search-results ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}
#pdl-search-results li a {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	padding: 0.6rem 0.75rem;
	border-radius: 0.5rem;
	color: #fff;
	text-decoration: none;
}
#pdl-search-results li a:hover,
#pdl-search-results li a:focus {
	background: rgba(255, 255, 255, 0.08);
}
#pdl-search-results .pdl-res-type {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--color-lime-green);
}
#pdl-search-results .pdl-res-title {
	font-size: 1rem;
}
#pdl-search-results .pdl-res-empty {
	color: rgba(255, 255, 255, 0.75);
	padding: 0.6rem 0.75rem;
	font-size: 0.9rem;
}
#pdl-search-results .pdl-res-all {
	display: inline-block;
	margin-top: 0.25rem;
	padding: 0.4rem 0.75rem;
	color: var(--color-lime-green);
	text-decoration: none;
	font-size: 0.9rem;
}
#pdl-search-results .pdl-res-all:hover {
	text-decoration: underline;
}
