/*
 * 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/>.
 */

.container {
	display: flex;
	flex-direction: column;
	height: 100%;
	background-color: var(--background-secondary);
	padding: 0;
	gap: 12px;
}

.tabsContainer {
	padding: 4px 12px 0;
}

.panels {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.searchPanel,
.friendsPanel {
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.panelHidden {
	display: none;
}

.searchContainer {
	margin-bottom: 4px;
	padding-inline: 12px;
}

.searchInput {
	width: 100%;
	min-height: 52px;
	padding-block: 0.6rem;
}

.searchClearButton {
	background: transparent;
	border: none;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-tertiary);
	cursor: pointer;
	border-radius: 999px;
}

.scroller {
	flex: 1;
	min-height: 0;
}

.scrollContent {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding-bottom: var(--quick-switcher-scroll-padding-bottom, 0.5rem);
}

.friendsContent {
	height: 100%;
}

.section {
	display: flex;
	flex-direction: column;
}

.sectionHeader {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-primary-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.35rem;
}

.sectionList {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

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

.optionContent {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.optionText {
	display: flex;
	flex-direction: column;
	gap: 1px;
	flex: 1;
	min-width: 0;
}

.optionTitle {
	font-weight: 500;
	font-size: 0.9375rem;
	line-height: 1.125rem;
	color: var(--text-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.optionDescription {
	font-size: 0.8125rem;
	line-height: 1rem;
	color: var(--text-primary-muted);
	opacity: 0.8;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.optionIcon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	color: var(--text-primary-muted);
}

.optionHighlight {
	color: var(--text-secondary);
}

.optionIconHighlight {
	color: var(--text-secondary);
}

.avatar {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
}

.guildIcon {
	height: 32px;
	width: 32px;
	border-radius: 9999px;
	flex-shrink: 0;
}

.emptyState {
	padding: 2rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-tertiary);
}

.emptyStateTitle {
	font-weight: 500;
}

.emptyStateHint {
	margin-top: 0.25rem;
	color: var(--text-primary-muted);
	font-size: 0.75rem;
	line-height: 1rem;
}
