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

.guildLayoutContainer {
	display: grid;
	grid-template-rows: minmax(0, 1fr);
	grid-auto-rows: minmax(0, 1fr);
	align-content: stretch;
	height: 100%;
	min-height: 0;
	max-height: 100%;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	background-color: var(--background-secondary);
}

.guildLayoutContainerWithNagbar {
	composes: guildLayoutContainer;
	grid-template-rows: auto minmax(0, 1fr);
}

.guildLayoutContent {
	display: grid;
	grid-template-columns: var(--layout-sidebar-width) 1fr;
	align-items: stretch;
	align-content: stretch;
	height: 100%;
	min-height: 0;
	max-height: 100%;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.guildLayoutContentMobile {
	composes: guildLayoutContent;
	grid-template-columns: 1fr;
	background-color: var(--background-tertiary);
}

.guildMainContent {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	height: 100%;
	min-height: 0;
	max-height: 100%;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	background-color: var(--background-secondary);
}

.guildUnavailableContainer {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-4);
	height: 100%;
	min-height: 0;
	width: 100%;
	min-width: 0;
	padding: var(--spacing-8);
	background-color: var(--background-secondary);
}

.guildUnavailableContent {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--spacing-1);
	text-align: center;
}

.guildUnavailableIcon {
	height: 4rem;
	width: 4rem;
	color: var(--text-tertiary);
}

.guildUnavailableTitle {
	font-weight: 600;
	font-size: 1.5rem;
	line-height: 2rem;
	color: var(--text-primary);
}

.guildUnavailableDescription {
	color: var(--text-tertiary);
}

.nagbarContent {
	display: flex;
	align-items: center;
}

.nagbarContentMobile {
	composes: nagbarContent;
	flex-direction: column;
	gap: var(--spacing-2);
}

.nagbarText {
	text-align: center;
}

.nagbarActions {
	display: flex;
	gap: var(--spacing-2);
}

.nagbarActionsDesktop {
	composes: nagbarActions;
	margin-left: var(--spacing-3);
}

.nagbarButton {
	border-radius: var(--radius-md);
	border: 1px solid white;
	background-color: transparent;
	padding: var(--spacing-1) var(--spacing-3);
	color: white;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1rem;
	transition: background-color var(--transition-fast);
	cursor: pointer;
}

.nagbarButton:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.nagbarButtonPrimary {
	composes: nagbarButton;
	background-color: white;
	font-weight: 600;
}

.nagbarButtonPrimaryOrange {
	composes: nagbarButtonPrimary;
	color: rgb(234, 88, 12);
	cursor: pointer;
}

.nagbarButtonPrimaryOrange:hover {
	background-color: rgba(255, 255, 255, 0.9);
}

.nagbarButtonPrimaryRed {
	composes: nagbarButtonPrimary;
	color: var(--status-danger);
	cursor: pointer;
}

.nagbarButtonPrimaryRed:hover {
	background-color: rgba(255, 255, 255, 0.9);
}
