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

.sectionHeader {
	margin-bottom: 0.5rem;
	font-size: 1.25rem;
	font-weight: 600;
}

.sectionDescription {
	margin-bottom: 1rem;
	font-size: 0.875rem;
	color: var(--text-primary-muted);
}

.sectionDescriptionNoMargin {
	font-size: 0.875rem;
	color: var(--text-primary-muted);
}

.redeemForm {
	display: flex;
	gap: 0.5rem;
}

.redeemInput {
	min-width: 0;
	flex: 1;
}

.redeemButton {
	flex-shrink: 0;
}

.loadingContainer {
	display: flex;
	justify-content: center;
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.errorContainer {
	padding: 1.5rem;
	border-radius: 0.375rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-tertiary);
	text-align: center;
	color: var(--text-primary-muted);
}

.emptyState {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 3rem 1.5rem;
	border-radius: 0.375rem;
	border: 1px dashed var(--background-header-secondary);
	background-color: var(--background-tertiary);
	text-align: center;
	color: var(--text-primary-muted);
}

.emptyIcon {
	margin-bottom: 0.75rem;
	height: 3rem;
	width: 3rem;
	color: var(--text-tertiary);
}

.emptyTitle {
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--text-primary);
}

.emptyDescription {
	margin-bottom: 1rem;
	font-size: 0.875rem;
}

.giftsList {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.giftCard {
	overflow: hidden;
	border-radius: 0.5rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-secondary);
}

.giftCardHeader {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	text-align: left;
	transition: background-color 0.15s;
	cursor: pointer;
}

.giftCardHeader:hover {
	background-color: var(--background-tertiary);
}

.giftIcon {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2.5rem;
	width: 2.5rem;
	flex-shrink: 0;
	border-radius: 9999px;
}

.giftIconRedeemed {
	background-color: var(--background-tertiary);
}

.giftIconActive {
	background: linear-gradient(to bottom right, #a855f7, #ec4899);
}

.giftIconImage {
	height: 1.25rem;
	width: 1.25rem;
}

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

.giftIconActive .giftIconImage {
	color: white;
}

.giftInfo {
	min-width: 0;
	flex: 1;
}

.giftTitle {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
}

.giftDate {
	font-size: 0.75rem;
	color: var(--text-primary-muted);
}

.expandIcon {
	height: 1.25rem;
	width: 1.25rem;
	flex-shrink: 0;
	color: var(--text-primary-muted);
	transition: transform 0.15s;
}

.expandIconRotated {
	transform: rotate(180deg);
}

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

.giftCardActions {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.giftUrlSection {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.redeemedMessage {
	padding: 0.75rem;
	border-radius: 0.375rem;
	background-color: var(--background-tertiary);
}

.redeemedMessageText {
	text-align: center;
	font-size: 0.875rem;
	color: var(--text-primary-muted);
}

.redeemButtonContainer {
	display: flex;
	flex-wrap: wrap;
}

.redeemButtonContainer > * {
	flex: 1;
	min-width: fit-content;
}

.iconMedium {
	height: 1.25rem;
	width: 1.25rem;
}
