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

.card {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 0.75rem;
	padding: 1.25rem;
	color: white;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 1024px) {
	.grid {
		grid-template-columns: 1fr auto;
		align-items: start;
	}
}

.content {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.75rem;
}

.header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
}

.title {
	font-weight: bold;
	font-size: 1rem;
	line-height: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.badge {
	border-radius: 0.25rem;
	background-color: white;
	padding: 0.125rem 0.375rem;
	font-weight: bold;
	font-size: 11px;
	text-transform: uppercase;
	line-height: 1;
}

.description {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: rgba(255, 255, 255, 0.9);
}

.renewalInfo {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
}

.upgradeNote {
	font-size: 0.75rem;
	line-height: 1rem;
	color: rgba(255, 255, 255, 0.8);
}

.actions {
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 0.5rem;
}

@media (min-width: 768px) {
	.actions {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}
}

@media (min-width: 1024px) {
	.actions {
		display: flex;
		min-width: 220px;
		flex-direction: column;
		align-items: flex-end;
		justify-content: flex-start;
		gap: 0.75rem;
	}
}

.actionButton {
	width: 100%;
}

@media (min-width: 768px) {
	.actionButton {
		width: 100%;
	}
}

@media (min-width: 1024px) {
	.actionButton {
		width: auto;
	}
}

.communityButtonActive {
	background-color: rgba(255, 255, 255, 0.2);
}

.iconSmall {
	height: 1rem;
	width: 1rem;
}

.cardExpired {
	background-color: var(--status-danger);
}

.cardGracePeriod {
	background-color: rgb(249 115 22);
}

.cardVisionary {
	background-color: var(--brand-primary);
}

.cardActive {
	background-color: var(--status-online);
}
