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

.themeButtonGroup {
	display: flex;
	gap: 0.75rem;
}

.themeButton {
	position: relative;
	height: 3.5rem;
	width: 3.5rem;
	border-radius: 9999px;
	border: 2px solid;
	outline: none;
	cursor: pointer;
}

.themeButton:focus {
	outline: none;
}

.themeButton:active {
	transform: none;
}

.themeButtonSelected {
	border-color: var(--brand-primary);
}

.themeButtonLight {
	border-color: var(--border-color);
}

.themeButtonDark {
	border-color: white;
}

.themeButtonIcon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.themeButtonCheckmark {
	position: absolute;
	top: -0.25rem;
	right: -0.25rem;
	display: flex;
	height: 1.25rem;
	width: 1.25rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background-color: var(--brand-primary);
}

.themeButtonCheckmarkIcon {
	color: white;
}

.colorGrid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 768px) {
	.colorGrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.colorSection {
	border-top: 1px solid var(--background-header-secondary);
	padding-top: 1rem;
}

.colorSectionHeading {
	margin-bottom: 0.75rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--text-primary);
}

.cssSection {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	border-top: 1px solid var(--background-header-secondary);
	padding-top: 1rem;
}

.buttonGroup {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.loadingContainer {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	min-height: 16rem;
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}
