/*
 * IORESKILL Gamification v0.1 — styles frontend
 * =============================================================
 * Réutilise les tokens du dashboard IORESKILL v0.7 (--iore-violet, etc.)
 */

/* ============================================================
 * Bandeau points (hero)
 * ============================================================ */
.iore-points-hero {
	background: linear-gradient(135deg, var(--iore-violet-deep, #4a1f80) 0%, var(--iore-violet, #6b2fb3) 100%);
	color: #fff;
	border-radius: var(--iore-radius-lg, 14px);
	padding: 2rem;
	text-align: center;
	box-shadow: var(--iore-shadow-md, 0 4px 12px rgba(74,31,128,0.08));
	position: relative;
	overflow: hidden;
}
.iore-points-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 300px; height: 300px;
	background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
	pointer-events: none;
}
.iore-points-hero__label {
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	font-weight: 600;
	opacity: 0.9;
	margin-bottom: 0.4rem;
}
.iore-points-hero__value {
	font-family: var(--iore-font-heading, sans-serif);
	font-size: 4rem;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	margin-bottom: 0.5rem;
}
.iore-points-hero__unit {
	font-size: 1.25rem;
	font-weight: 500;
	opacity: 0.85;
	margin-left: 0.35rem;
}
.iore-points-hero__desc {
	max-width: 460px;
	margin: 0 auto;
	color: rgba(255,255,255,0.9);
	line-height: 1.5;
	font-size: 0.95rem;
}

/* ============================================================
 * Grille de badges
 * ============================================================ */
.iore-badges-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 1rem;
}
@media (min-width: 600px) { .iore-badges-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .iore-badges-grid { grid-template-columns: repeat(4, 1fr); } }

.iore-card__meta {
	color: var(--iore-text-muted, #6b5b7d);
	font-size: 0.88rem;
	font-weight: 500;
}

.iore-badge-card {
	background: var(--iore-card, #fff);
	border: 1px solid var(--iore-border, #e8dfff);
	border-radius: var(--iore-radius-md, 10px);
	padding: 1.25rem 1rem;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
}
.iore-badge-card.is-owned {
	background: linear-gradient(180deg, var(--iore-violet-tint, #f8f5ff) 0%, #fff 60%);
	border-color: var(--iore-violet-pale, #f0e6ff);
}
.iore-badge-card.is-owned:hover {
	transform: translateY(-3px);
	box-shadow: var(--iore-shadow-md, 0 4px 12px rgba(74,31,128,0.12));
}
.iore-badge-card.is-locked {
	opacity: 0.55;
	filter: saturate(0.4);
}
.iore-badge-card__icon {
	font-size: 2.5rem;
	line-height: 1;
	width: 72px; height: 72px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(107, 91, 125, 0.08);
	margin-bottom: 0.5rem;
	transition: background 0.15s;
}
.iore-badge-card__name {
	font-family: var(--iore-font-heading, sans-serif);
	color: var(--iore-violet-deep, #4a1f80);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
}
.iore-badge-card__rarity {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	color: var(--iore-text-muted, #6b5b7d);
}
.iore-badge-card__desc {
	color: var(--iore-text-muted, #6b5b7d);
	font-size: 0.82rem;
	line-height: 1.4;
	margin-top: 0.2rem;
	min-height: 2.6em;
}
.iore-badge-card__date {
	margin-top: 0.4rem;
	font-size: 0.75rem;
	color: var(--iore-text-light, #9a8ba8);
	font-style: italic;
}
.iore-badge-card__locked-label {
	margin-top: 0.4rem;
	font-size: 0.78rem;
	color: var(--iore-text-muted, #6b5b7d);
	font-weight: 600;
}

/* ============================================================
 * Historique des points
 * ============================================================ */
.iore-history-list {
	list-style: none;
	padding: 0;
	margin: 1rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.iore-history-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1rem;
	background: var(--iore-violet-tint, #f8f5ff);
	border-radius: var(--iore-radius-sm, 6px);
	transition: background 0.15s;
}
.iore-history-item:hover {
	background: var(--iore-violet-pale, #f0e6ff);
}
.iore-history-item__label {
	font-weight: 500;
	color: var(--iore-text, #1f1129);
	font-size: 0.92rem;
	flex: 1;
	min-width: 0;
}
.iore-history-item__meta {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	flex-shrink: 0;
}
.iore-history-item__date {
	color: var(--iore-text-muted, #6b5b7d);
	font-size: 0.82rem;
}
.iore-history-item__points {
	background: var(--iore-violet-deep, #4a1f80);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	min-width: 52px;
	text-align: center;
}

.iore-progression-empty {
	color: var(--iore-text-muted, #6b5b7d);
	font-style: italic;
	margin-top: 0.75rem;
}

/* ============================================================
 * Widget compact (shortcode [ioreskill_points_widget])
 * ============================================================ */
.iore-points-widget {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.85rem;
	background: var(--iore-violet-tint, #f8f5ff);
	color: var(--iore-violet-deep, #4a1f80);
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 500;
}
.iore-points-widget__icon { font-size: 1rem; line-height: 1; }
.iore-points-widget strong { font-weight: 700; }
