/* Styles for Artists page template. */

.artists-layout {
	display: grid;
	gap: 2rem;
	position: relative;
}

.artists-layout__filters {
	align-self: flex-start;
}

.artists-layout__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.artists-toolbar {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 1.5rem;
	/* border: 1px solid #e2e2e2; */
	/* border-radius: 8px;
	background-color: #fafafa; */
}

.artists-filters__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.artists-filters__grid {
	display: grid;
	gap: 1.25rem;
}

.artists-filters__item {
	min-width: 0;
}

.artists-filters__label {
	display: block;
	margin-bottom: 0.4rem;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.artists-filters__control {
	display: block;
}

.artists-filters__select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background-color: #fff;
	font-size: 0.9375rem;
	line-height: 1.4;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.artists-filters__select:focus {
	border-color: #222;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
	outline: none;
}

.artists-filters__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: flex-start;
}

.artists-filters__submit:hover,
.artists-filters__submit:focus {
	background-color: #000;
	border-color: #000;
}

.artists-filters__reset {
	background-color: transparent;
	border: 1px solid #aaa;
	color: #333;
}

.artists-filters__reset:hover,
.artists-filters__reset:focus {
	border-color: #333;
	color: #111;
}

.artists-pagination {
	margin-top: auto;
}

.artists-layout.loading::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(1px);
	z-index: 5;
}

.artists-layout.loading::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	/* border: 3px solid rgba(0, 0, 0, 0.15); */
	border-top-color: #111;
	border-radius: 50%;
	animation: artists-loading-spin 0.8s linear infinite;
	z-index: 6;
}

.artists-layout.loading .artists-layout__content {
	opacity: 0.5;
	pointer-events: none;
}

@keyframes artists-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (min-width: 992px) {
	.artists-layout {
		grid-template-columns: minmax(220px, 1fr) minmax(0, 3fr);
		gap: 3rem;
	}

	.artists-filters__grid {
		gap: 1.5rem;
	}
}

@media (max-width: 991px) {
	.artists-layout__filters {
		order: -1;
	}
}
