/*
 * Inspiracje search and category filters (template-parts/inspirations/filters.php).
 * No section mockup; built from the preview docs/preview/inspiracje.png
 * (820 px wide; × 1.756 for 1440): a warm panel the width of the container
 * with the question, the search field and button in a row, the category
 * links below and „Wyczyść filtry” at the right. The preview controls are
 * taller than ours (field and button 77 px, links 67 px at 1440), so the
 * field and button take the site button height and the links are a little
 * shorter, in the same proportion as in the preview (0.86).
 * Phones: the button under the field below 26em; the links wrap.
 */

.hf-inspirations-filters
{
	padding-bottom: var(--hf-space-l);
	/* Links and the search jump here; the sticky header is handled by
	   scroll-padding-top (site-header.css). */
	scroll-margin-top: var(--hf-space-s);
}

.hf-inspirations-filters__panel
{
	padding: clamp(1.25rem, 0.75rem + 2vw, 2.5rem);
	border-radius: var(--hf-radius-m);
	background: var(--hf-color-band);
}

/* „Czego dziś szukasz?”: the label of the field, set like a small heading. */
.hf-inspirations-filters__label
{
	display: block;
	margin-bottom: var(--hf-space-s);
	color: var(--hf-color-heading);
	font-family: var(--hf-font-display);
	font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem);
	line-height: 1.3;
}

.hf-inspirations-filters__row
{
	display: flex;
	gap: var(--hf-space-s);
}

.hf-inspirations-filters__field
{
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.hf-inspirations-filters__field-icon
{
	position: absolute;
	top: 50%;
	left: 1.1rem;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--hf-color-icon);
	pointer-events: none;
	translate: 0 -50%;
}

.hf-inspirations-filters__input
{
	display: block;
	box-sizing: border-box;
	width: 100%;
	min-height: var(--hf-button-height);
	margin: 0;
	padding: 0 var(--hf-space-s) 0 3.5rem;
	border: 1px solid var(--hf-color-field-border);
	border-radius: var(--hf-radius-s);
	background: var(--hf-color-surface);
	color: var(--hf-color-heading);
	font-family: var(--hf-font-text);
	font-size: var(--hf-text-control);
	line-height: 1.2;
	appearance: none;
}

.hf-inspirations-filters__input::placeholder
{
	color: var(--hf-color-text);
	opacity: 1;
}

.hf-inspirations-filters__input:hover
{
	border-color: var(--hf-color-primary);
}

.hf-inspirations-filters__input:focus-visible
{
	border-color: var(--hf-color-primary);
	outline: 2px solid var(--hf-color-focus);
	outline-offset: 1px;
}

/* Preview at 1440: 230 px wide next to a 985 px field; with the preview
   scale about 195 px. */
.hf-inspirations-filters__submit
{
	flex: none;
	min-width: clamp(7rem, 3rem + 10vw, 14rem);
	padding-block: 0;
	cursor: pointer;
}

/* Category links and „Wyczyść filtry”. */

.hf-inspirations-filters__bar
{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--hf-space-s) var(--hf-space-m);
	margin-top: var(--hf-space-m);
}

.hf-inspirations-filters__list
{
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Preview: 16–17 px text at 1440 (after the preview scale), frames in a
   light line, the current one filled like the main button. */
.hf-inspirations-filters__chip
{
	display: inline-flex;
	align-items: center;
	min-height: calc(var(--hf-button-height) * 0.86);
	box-sizing: border-box;
	padding: 0.4em 1.35em;
	border: 1px solid color-mix(in srgb, var(--hf-color-outline) 45%, transparent);
	border-radius: var(--hf-radius-s);
	background: var(--hf-color-surface);
	color: var(--hf-color-heading);
	font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
	line-height: 1.3;
	text-decoration: none;
	transition: background-color var(--hf-transition), border-color var(--hf-transition), color var(--hf-transition);
}

.hf-inspirations-filters__chip:hover
{
	border-color: var(--hf-color-primary);
}

.hf-inspirations-filters__chip[aria-current="page"]
{
	border-color: var(--hf-color-primary);
	background: var(--hf-color-primary);
	color: var(--hf-color-on-dark);
}

.hf-inspirations-filters__reset
{
	margin-left: auto;
	color: var(--hf-color-heading);
	font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
	text-decoration-color: var(--hf-color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.hf-inspirations-filters__reset:hover
{
	color: var(--hf-color-primary-hover);
}

/* Narrow phones: the button under the field, full width. */
@media (max-width: 25.99em)
{
	.hf-inspirations-filters__row
	{
		flex-direction: column;
	}
}
