/**
 * Card Collection - bloc collection sur le profil
 *
 * @copyright (c) 2024, Verturin
 * @license GNU General Public License, version 2 (GPL-2.0)
 */

.cc-profile .inner {
	padding: 18px 20px;
}

.cc-profile-title {
	margin: 0 0 16px;
	font-size: .88em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #6b7280;
}

/* Compteurs par type */
.cc-profile-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.cc-profile-stats li {
	padding: 11px 12px;
	border: 1px solid rgba(0, 0, 0, .1);
	border-radius: 10px;
	background: rgba(255, 255, 255, .7);
	text-align: center;
}

.cc-profile-value {
	display: block;
	font-size: 1.4em;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

.cc-profile-label {
	display: block;
	margin-top: 3px;
	font-size: .72em;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #6b7280;
}

/* Objets a echanger et creations : mis en avant */
.cc-profile-trade {
	border-color: rgba(16, 185, 129, .4) !important;
	background: rgba(16, 185, 129, .08) !important;
}

.cc-profile-created {
	border-color: rgba(245, 158, 11, .4) !important;
	background: rgba(245, 158, 11, .08) !important;
}

/* Apercu de la collection */
.cc-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
	gap: 9px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.cc-profile-grid li {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* =============================================================
 * MINI-PROFIL SOUS LES MESSAGES
 *
 * Les pictogrammes seuls n'etaient pas parlants : on voyait des
 * chiffres sans savoir ce qu'ils comptaient. Chaque nombre porte
 * desormais son intitule.
 * ============================================================= */

.profile-cc {
	margin: 10px 0 6px !important;
}

.cc-mini {
	display: block;
	padding: 9px 10px;
	border: 1px solid rgba(59, 130, 246, .22);
	border-radius: 9px;
	background: rgba(59, 130, 246, .05);
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, background .15s ease;
}

.cc-mini:hover {
	border-color: rgba(59, 130, 246, .48);
	background: rgba(59, 130, 246, .1);
	text-decoration: none;
}

.cc-mini-title {
	display: block;
	margin-bottom: 7px;
	font-size: .66em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #6b7280;
}

/* Une colonne par type, alignees */
.cc-mini-items {
	display: flex;
	gap: 4px;
	justify-content: center;
}

.cc-mini-item {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
}

.cc-mini-num {
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: #1f2937;
}

.cc-mini-label {
	font-size: .62em;
	text-transform: uppercase;
	letter-spacing: .04em;
	line-height: 1.2;
	text-align: center;
	color: #6b7280;
}

/* Creations : un statut, pas un compteur de plus */
.cc-mini-created {
	display: block;
	margin-top: 8px;
	padding-top: 7px;
	border-top: 1px solid rgba(0, 0, 0, .08);
	font-size: .72em;
	font-weight: 600;
	text-align: center;
	color: #b45309;
}

@media (prefers-reduced-motion: reduce) {
	.cc-mini { transition: none; }
}
