/*
 * 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;
	gap: 1rem;
}

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

.title {
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.75rem;
}

.subtitle {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-primary-muted);
}

.controls {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.searchInput {
	flex: 1 1 240px;
}

.viewToggle {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-secondary);
	border-radius: 0.5rem;
	overflow: hidden;
}

.viewToggleButton {
	border: none;
	background: transparent;
	padding: 0.45rem 0.75rem;
	color: var(--text-primary-muted);
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 0.12s ease-in-out,
		color 0.12s ease-in-out;
}

.viewToggleButton:not(:last-child) {
	border-right: 1px solid var(--background-header-secondary);
}

.viewToggleButtonActive {
	background-color: var(--background-tertiary);
	color: var(--text-primary);
}

.hiddenInput {
	display: none;
}

.spinnerContainer {
	display: flex;
	justify-content: center;
	padding: 2rem 0;
}

.notice {
	border-radius: 0.375rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-tertiary);
	padding: 1.5rem;
}

.noticeText {
	text-align: center;
	color: var(--text-primary-muted);
}

.stickerGrid {
	--sticker-grid-gap: 1rem;
	display: grid;
	gap: var(--sticker-grid-gap);
	grid-template-columns: repeat(auto-fill, minmax(var(--sticker-card-min-width, 190px), 1fr));
	grid-auto-rows: var(--sticker-card-height, 260px);
	align-items: stretch;
}

.compactGrid {
	--sticker-card-min-width: 150px;
	--sticker-card-height: 220px;
	--sticker-card-padding: 0.5rem;
	--sticker-card-gap: 0.5rem;
}

.cozyGrid {
	--sticker-card-min-width: 190px;
	--sticker-card-height: 260px;
	--sticker-card-padding: 0.75rem;
	--sticker-card-gap: 0.75rem;
}
