/*
 * Copyright (C) 2026 Fluxer Contributors
 *
 * This file is part of Fluxer.
 *
 * Fluxer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Fluxer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
 */

.popout {
	width: 16rem;
	border-radius: 0.5rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-secondary);
	padding: 0.5rem;
	box-shadow:
		0 10px 15px -3px rgb(0 0 0 / 0.2),
		0 4px 6px -4px rgb(0 0 0 / 0.15);
}

.search {
	margin-bottom: 0.5rem;
}

.scroller {
	max-height: 14rem;
}

.list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.section {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.sectionHeading {
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 600;
	color: var(--text-tertiary);
	text-transform: uppercase;
}

.option {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.5rem;
	border: none;
	border-radius: 0.375rem;
	background: transparent;
	padding: 0.375rem 0.5rem;
	color: var(--text-primary);
	text-align: left;
	cursor: pointer;
	outline: none;
}

@media (hover: hover) {
	.option:hover {
		background-color: var(--background-modifier-hover);
	}
}

.optionActive {
	background-color: var(--background-modifier-selected);
}

.optionSelected {
	box-shadow: inset 0 0 0 1px var(--brand-500);
}

.emptyState {
	padding: 0.75rem 0.5rem;
	text-align: center;
	font-size: 0.8125rem;
	line-height: 1.125rem;
	color: var(--text-tertiary);
}
