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

.channelHeader {
	margin-top: 1rem;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.channelHeader:first-child {
	margin-top: 0;
}

.channelHeaderCompact {
	margin-top: 0.5rem;
	margin-bottom: 0.25rem;
}

.channelIcon {
	height: 1.25rem;
	width: 1.25rem;
	flex-shrink: 0;
	color: var(--text-primary-muted);
}

.channelIconAvatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 1.25rem;
	width: 1.25rem;
	flex-shrink: 0;
}

.channelIconAvatarImage {
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 50%;
}

.channelNameButton {
	border: none;
	background: none;
	color: var(--text-primary);
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0;
	cursor: pointer;
	text-align: left;
	font-family: inherit;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
}

.channelNameButton:hover,
.channelNameButton:focus-visible {
	text-decoration: underline;
}

.channelNameButton:focus-visible {
	outline: none;
}

.channelNameText {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.125rem;
}

.channelNamePrimary {
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.2;
}

.channelScopeRow {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.75rem;
	color: var(--text-primary-muted);
}

.channelScopeGuildIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	--guild-icon-size: 0.75rem;
}

.channelScopeGuildName {
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1;
}

.channelScopeChevron {
	height: 0.75rem;
	width: 0.75rem;
	color: var(--text-primary-muted);
}

.channelScopeChannelInfo {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.channelScopeChannelIcon {
	height: 0.75rem;
	width: 0.75rem;
	color: var(--text-primary-muted);
}

.channelScopeChannelName {
	font-weight: 600;
	color: var(--text-primary);
	line-height: 1;
}

.focusRingTight {
	border-radius: 0.5rem;
}
