/**
 * HabibActu — LE FLUX D'ÉVÉNEMENTS
 * ============================================================================
 *  « Ça bouge ! » — voir que les autres jouent, c'est ce qui donne envie.
 * ============================================================================
 */

.ha-feed {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ha-feed__item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	border-radius: 5px;
	border-left: 4px solid;
	background: #f6f8f9;
	font-size: 12.5px;
	line-height: 1.35;

	/* Chaque événement apparaît en glissant */
	animation: ha-feed-in .35s ease;
}

@keyframes ha-feed-in {
	from { opacity: 0; transform: translateX(-8px); }
	to   { opacity: 1; transform: translateX(0); }
}

/* --- Les couleurs par type --- */
.ha-feed__item--gold   { border-left-color: #f7941e; background: #fdf3e0; }
.ha-feed__item--purple { border-left-color: #8b5cf6; background: #f3effd; }
.ha-feed__item--green  { border-left-color: #4caf50; background: #eaf7e6; }
.ha-feed__item--blue   { border-left-color: #2c9bd6; background: #e7f0fa; }
.ha-feed__item--orange { border-left-color: #e8434a; background: #fdecec; }

/* Un GROS gain : ça doit sauter aux yeux */
.ha-feed__item.is-rare {
	border-left-width: 5px;
	box-shadow: inset 0 0 0 1px rgba(247, 148, 30, .35);
}

.ha-feed__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.ha-feed__icon .ha-img {
	width: 24px;
	height: 24px;
	image-rendering: pixelated;
}

.ha-feed__body {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
	flex: 1;
}

.ha-feed__text {
	color: #3a4a56;
}

.ha-feed__name {
	font-weight: 800;
	color: #1a2733;
	text-decoration: none !important;
}

.ha-feed__name:hover {
	text-decoration: underline !important;
}

.ha-feed__time {
	font-size: 10.5px;
	color: #8a99a5;
}

/* Le petit badge « Édition limitée » */
.ha-feed__tag {
	display: inline-block;
	font-size: 9.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .04em;
	background: #e8434a;
	color: #fff;
	padding: 1px 6px;
	border-radius: 99px;
	margin-left: 3px;
	vertical-align: 1px;
}

.ha-feed-empty {
	font-size: 12.5px;
	color: #8a99a5;
	font-style: italic;
	padding: 10px 0;
	margin: 0;
}

/* --- Mode sombre --- */
[data-theme="dark"] .ha-feed__item {
	background: #232e37;
}

[data-theme="dark"] .ha-feed__item--gold   { background: rgba(247, 148, 30, .12); }
[data-theme="dark"] .ha-feed__item--purple { background: rgba(139, 92, 246, .12); }
[data-theme="dark"] .ha-feed__item--green  { background: rgba(76, 175, 80, .12); }
[data-theme="dark"] .ha-feed__item--blue   { background: rgba(44, 155, 214, .12); }
[data-theme="dark"] .ha-feed__item--orange { background: rgba(232, 67, 74, .12); }

[data-theme="dark"] .ha-feed__name  { color: #e8f0f5; }
[data-theme="dark"] .ha-feed__text  { color: #b6c4ce; }

@media (prefers-reduced-motion: reduce) {
	.ha-feed__item { animation: none; }
}
