/*
 * 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;
}

.participantButton {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.375rem;
	border-radius: 0.375rem;
	padding: 0.25rem 0.5rem;
	transition-property: color, background-color;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
	cursor: pointer;
	text-align: left;
	color: var(--text-primary-muted);
}

.participantButtonSpeaking {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

.participantButton:hover {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

.participantButtonContextMenuActive {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

.participantButton[data-popout-open] {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

.avatarAndName {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 0.375rem;
}

.nameContainer {
	display: flex;
	min-width: 0;
	flex: 1;
	align-items: baseline;
	gap: 0.25rem;
}

.participantName {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.875rem;
}

.participantNameSpeaking {
	color: var(--text-primary);
}

.participantNameCurrent {
	color: var(--text-primary);
}

.deviceCountButton {
	flex-shrink: 0;
	border: none;
	background: transparent;
	padding: 0;
	font-size: 0.75rem;
	color: var(--text-link);
	cursor: pointer;
}

.deviceCountButton:hover {
	text-decoration: underline;
}

.iconsAndToggle {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.devicesContainer {
	margin-top: 0.125rem;
	margin-left: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.flexShrinkZero {
	flex-shrink: 0;
}
