/*
 * Publication Year Filter
 */

/* Filter form */

.publication-year-filter {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 2rem;
}

.publication-year-filter-select {
	min-width: 180px;
	height: 44px;
	padding: 0 2.5rem 0 1rem;

	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;

	color: #2f2f2f;
	background-color: #ffffff;

	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;

	cursor: pointer;

	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.875rem center;

	transition:
		border-color .2s ease,
		box-shadow .2s ease,
		background-color .2s ease;
}

.publication-year-filter-select:hover {
	border-color: rgba(0, 0, 0, 0.25);
}

.publication-year-filter-select:focus {
	outline: none;
	border-color: #b98a3f;
	box-shadow: 0 0 0 3px rgba(185, 138, 63, .15);
}


/*
 * Loading overlay
 */

#publication-loading {
	position: fixed;
	inset: 0;

	display: flex;
	align-items: center;
	justify-content: center;

	background: rgba(246, 244, 238, 0.35);
	backdrop-filter: blur(2px);

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transition:
		opacity 180ms ease,
		visibility 180ms ease;

	z-index: 999999;
}

#publication-loading.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

.publication-loading-content {
	padding: 1rem 1.5rem;

	background: #ffffff;

	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 4px;

	box-shadow:
		0 10px 30px rgba(0, 0, 0, 0.08);
}

.publication-loading-text {
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.04em;

	color: #3d3d3d;

	animation: publicationLoadingPulse 1.2s ease-in-out infinite;
}

@keyframes publicationLoadingPulse {

	0%,
	100% {
		opacity: .45;
	}

	50% {
		opacity: 1;
	}
}
