/*
 * MU Invasion S6 - Perfil do jogador (dados, atributos e Equipamentos).
 * Usa as cores do :root de muinvasion.css.
 */

.mi-perfil { margin: 6px 0 18px; }

/* ---------- topo ---------- */
.mi-perfil-topo {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	background: linear-gradient(90deg, var(--mi-caixa-1), var(--mi-caixa-2));
	border: 1px solid var(--mi-borda);
	border-radius: 10px;
	box-shadow: inset 0 0 24px rgba(var(--mi-roxo-rgb), .18);
}
.mi-perfil-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--mi-roxo);
	box-shadow: 0 0 14px rgba(var(--mi-roxo-rgb), .6);
	flex: 0 0 auto;
}
.mi-perfil-id { flex: 1 1 auto; min-width: 0; }
.mi-perfil-nome {
	font-family: var(--mi-titulo);
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 0 10px rgba(var(--mi-neon-rgb), .6);
	overflow-wrap: anywhere;
}
.mi-perfil-nome .mi-fig { height: 26px; vertical-align: middle; margin-left: 6px; }
.mi-perfil-classe { color: var(--mi-neon); font-size: 13px; letter-spacing: .5px; }
.mi-perfil-status {
	flex: 0 0 auto;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}
.mi-perfil-status.on { background: rgba(46, 204, 113, .15); color: #4dff9a; border: 1px solid rgba(46, 204, 113, .5); }
.mi-perfil-status.off { background: rgba(255, 70, 70, .12); color: #ff7b7b; border: 1px solid rgba(255, 70, 70, .45); }

/* ---------- dados ---------- */
.mi-perfil-dados { margin-top: 12px; display: grid; gap: 4px; }
.mi-perfil-linha {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 9px 14px;
	background: rgba(var(--mi-roxo-rgb), .07);
	border-left: 2px solid rgba(var(--mi-roxo-rgb), .55);
	border-radius: 4px;
}
.mi-perfil-linha:nth-child(odd) { background: rgba(var(--mi-roxo-rgb), .13); }
.mi-perfil-linha span { color: var(--mi-texto-2); }
.mi-perfil-linha strong { color: var(--mi-texto); font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.mi-perfil-linha .isonline { color: #4dff9a; }
.mi-perfil-linha .isoffline { color: #ff7b7b; }

/* ---------- titulos de secao ---------- */
.mi-perfil-sec {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin: 22px 0 10px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(var(--mi-neon-rgb), .25);
}
.mi-perfil-sec h3 {
	margin: 0;
	font-family: var(--mi-titulo);
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}
.mi-perfil-sec span { color: var(--mi-texto-2); font-size: 12px; }
.mi-perfil-sec span b { color: var(--mi-rosa); }

/* ---------- atributos ---------- */
.mi-perfil-atributos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mi-perfil-atributos.cinco { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mi-atr {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px;
	background: linear-gradient(180deg, var(--mi-caixa-1), var(--mi-caixa-2));
	border: 1px solid var(--mi-borda);
	border-radius: 8px;
	min-width: 0;
}
.mi-atr i {
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(var(--mi-magenta-rgb), .14) center / 20px no-repeat;
	border: 1px solid rgba(var(--mi-magenta-rgb), .35);
}
.mi-atr div { min-width: 0; }
.mi-atr small { display: block; color: var(--mi-texto-2); font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }
.mi-atr b { display: block; color: #fff; font-size: 17px; font-weight: 700; }
.mi-atr-forca i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6fd8'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E"); }
.mi-atr-agilidade i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6fd8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M3 8h11a3 3 0 1 0-3-3M3 12h16a3 3 0 1 1-3 3M3 16h8'/%3E%3C/svg%3E"); }
.mi-atr-vitalidade i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6fd8'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z'/%3E%3C/svg%3E"); }
.mi-atr-energia i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6fd8'%3E%3Cpath d='M12 2l2.2 6.6L21 9l-5.4 4 2 7-5.6-4.2L6.4 20l2-7L3 9l6.8-.4z'/%3E%3C/svg%3E"); }
.mi-atr-comando i { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff6fd8'%3E%3Cpath d='M3 18h18l-1.5-10-4.5 4-3-7-3 7-4.5-4z'/%3E%3C/svg%3E"); }

/* ---------- painel de equipamentos ---------- */
.mi-eq-dica { font-style: italic; }
.mi-eq {
	position: relative;
	width: 100%;
	max-width: 540px;
	margin: 0 auto;
	border-radius: 12px;
	border: 1px solid var(--mi-borda);
	background:
		radial-gradient(60% 55% at 50% 48%, rgba(var(--mi-roxo-rgb), .22), transparent 75%),
		linear-gradient(180deg, rgba(20, 6, 42, .96), rgba(8, 2, 18, .98));
	box-shadow: inset 0 0 40px rgba(0, 0, 0, .7), 0 0 18px rgba(var(--mi-roxo-rgb), .18);
	overflow: hidden;
}
.mi-eq::before { content: ''; display: block; padding-top: 92%; }
.mi-eq-fundo {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: 30% 20%;
	opacity: .22;
	filter: saturate(.9);
	-webkit-mask-image: radial-gradient(60% 60% at 50% 45%, #000 30%, transparent 78%);
	mask-image: radial-gradient(60% 60% at 50% 45%, #000 30%, transparent 78%);
	pointer-events: none;
}

.mi-eq-slot {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: radial-gradient(circle at 50% 40%, rgba(var(--mi-roxo-rgb), .16), rgba(8, 2, 18, .82) 75%);
	border: 1px solid rgba(var(--mi-neon-rgb), .28);
	box-shadow: inset 0 0 12px rgba(0, 0, 0, .8);
	transition: border-color .15s, box-shadow .15s, transform .15s;
	outline: none;
}
.mi-eq-slot:not(.vazio) { cursor: help; }
.mi-eq-slot:not(.vazio):hover,
.mi-eq-slot:not(.vazio):focus,
.mi-eq-slot.ativo {
	border-color: var(--mi-neon);
	box-shadow: inset 0 0 12px rgba(0, 0, 0, .6), 0 0 14px rgba(var(--mi-neon-rgb), .55);
	transform: translateY(-1px);
	z-index: 2;
}
.mi-eq-slot img {
	max-width: 94%;
	max-height: 94%;
	object-fit: contain;
	image-rendering: auto;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .9));
}
/* com a imagem do modelo o slot fica discreto e o item "flutua" (estilo DustMU) */
.mi-eq-slot.tem-img {
	background: radial-gradient(circle at 50% 50%, rgba(var(--mi-roxo-rgb), .14), transparent 72%);
	border-color: rgba(var(--mi-neon-rgb), .10);
	box-shadow: none;
}
.mi-eq-slot.tem-img:hover,
.mi-eq-slot.tem-img:focus,
.mi-eq-slot.tem-img.ativo {
	background: radial-gradient(circle at 50% 50%, rgba(var(--mi-neon-rgb), .22), transparent 75%);
	border-color: rgba(var(--mi-neon-rgb), .45);
	box-shadow: 0 0 14px rgba(var(--mi-neon-rgb), .35);
}
.mi-eq-slot svg { width: 46%; height: 46%; }
.mi-eq-slot svg path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.mi-eq-slot.vazio svg path { stroke: rgba(var(--mi-neon-rgb), .22); }
.mi-eq-sem { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.mi-eq-sem svg { width: 62%; height: 62%; }
.mi-eq-sem svg path { stroke: #c9c9c9; }

/* brilho por raridade (igual a cor do nome no jogo) */
.mi-eq-slot.c-azul .mi-eq-sem svg path { stroke: #8cb0ea; }
.mi-eq-slot.c-ouro .mi-eq-sem svg path { stroke: #ffcc19; }
.mi-eq-slot.c-exc .mi-eq-sem svg path { stroke: #2fe86b; }
.mi-eq-slot.c-anc .mi-eq-sem svg path { stroke: #2fe86b; }
.mi-eq-slot.c-exc img { filter: drop-shadow(0 0 5px rgba(47, 232, 107, .55)) drop-shadow(0 2px 3px rgba(0, 0, 0, .9)); }
.mi-eq-slot.c-anc img { filter: drop-shadow(0 0 6px rgba(60, 140, 255, .75)) drop-shadow(0 2px 3px rgba(0, 0, 0, .9)); }
.mi-eq-slot.c-ouro img { filter: drop-shadow(0 0 5px rgba(255, 204, 25, .45)) drop-shadow(0 2px 3px rgba(0, 0, 0, .9)); }
.mi-eq-slot.c-exc { border-color: rgba(47, 232, 107, .38); }
.mi-eq-slot.c-anc { border-color: rgba(60, 140, 255, .5); }

.mi-eq-nv {
	position: absolute;
	right: 4px;
	bottom: 2px;
	font-family: var(--mi-titulo);
	font-size: 11px;
	font-weight: 700;
	color: #ffcc19;
	text-shadow: 0 0 3px #000, 0 0 3px #000;
	pointer-events: none;
}

/* posicoes (largura 10 x altura 9.2 unidades), mesma ordem do inventario do jogo */
.mi-eq-s8  { left: 5%;  top: 3.3%;  width: 20%; height: 21.7%; }  /* pet */
.mi-eq-s2  { left: 40%; top: 3.3%;  width: 20%; height: 21.7%; }  /* elmo */
.mi-eq-s7  { left: 66%; top: 3.3%;  width: 30%; height: 21.7%; }  /* asa */
.mi-eq-s0  { left: 5%;  top: 30%;   width: 20%; height: 37%; }    /* arma */
.mi-eq-s9  { left: 28%; top: 30%;   width: 10%; height: 10.9%; }  /* pendant */
.mi-eq-s3  { left: 40%; top: 30%;   width: 20%; height: 32.6%; }  /* armadura */
.mi-eq-s1  { left: 75%; top: 30%;   width: 20%; height: 37%; }    /* escudo */
.mi-eq-s10 { left: 28%; top: 67.4%; width: 10%; height: 10.9%; }  /* anel */
.mi-eq-s4  { left: 40%; top: 67.4%; width: 20%; height: 21.7%; }  /* calca */
.mi-eq-s11 { left: 62%; top: 67.4%; width: 10%; height: 10.9%; }  /* anel */
.mi-eq-s5  { left: 5%;  top: 73.9%; width: 20%; height: 21.7%; }  /* luvas */
.mi-eq-s6  { left: 75%; top: 73.9%; width: 20%; height: 21.7%; }  /* botas */

/* tooltip: o conteudo fica escondido no slot; o JS copia para a caixa flutuante */
.mi-eq-tt { display: none; }
.mi-eq-flutuante {
	position: fixed;
	z-index: 99999;
	max-width: 340px;
	padding: 10px 14px 11px;
	background: rgba(0, 0, 0, .93);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 4px;
	box-shadow: 0 6px 22px rgba(0, 0, 0, .8);
	font-family: Tahoma, Verdana, var(--mi-corpo), sans-serif;
	font-size: 12px;
	line-height: 1.5;
	color: #fff;
	text-align: center;
	pointer-events: none;
}
.mi-eq-flutuante .t-nome { font-size: 13.5px; font-weight: 700; margin-bottom: 4px; padding: 1px 6px; }
.mi-eq-flutuante .c-normal { color: #fff; }
.mi-eq-flutuante .c-azul { color: #8cb0ea; }
.mi-eq-flutuante .c-ouro { color: #ffcc19; }
.mi-eq-flutuante .c-exc { color: #2fe86b; }
.mi-eq-flutuante .t-nome.c-anc { color: #2fe86b; background: #1b3b8f; border-radius: 2px; }
.mi-eq-flutuante .t-cinza { color: #c8c8c8; }
.mi-eq-flutuante .t-azul,
.mi-eq-flutuante .t-exc { color: #8cb0ea; }
.mi-eq-flutuante .t-roxo { color: #d07bff; }
.mi-eq-flutuante .t-harm { color: #ffd94a; }
.mi-eq-flutuante .t-anc { color: #2fe86b; }
.mi-eq-flutuante .t-anc-tit { color: #ffcc19; font-weight: 700; }
.mi-eq-flutuante .t-apagado { color: #6f6f6f; }
.mi-eq-flutuante .t-serial { color: #8a8a8a; font-size: 11px; }
.mi-eq-flutuante .t-sep { height: 1px; margin: 6px -4px; background: rgba(255, 255, 255, .12); }

@media (max-width: 640px) {
	.mi-perfil-atributos, .mi-perfil-atributos.cinco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mi-perfil-nome { font-size: 18px; }
	.mi-eq-flutuante { max-width: calc(100vw - 24px); font-size: 11.5px; }
	.mi-eq-nv { font-size: 9px; }
}
