/* Armory search + character profile */
.wc-page-armory {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 16px 48px;
}

.wc-armory-intro {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin: 18px 0 22px;
}

.wc-armory-intro__title {
	margin: 0;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	color: var(--wc-gold, #d4af37);
	font-family: Georgia, serif;
}

.wc-armory-intro__actions {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.wc-armory-intro__back {
	color: var(--wc-text-muted, #b8a88a);
	text-decoration: none;
	font-size: 0.95rem;
}

.wc-armory-intro__back:hover {
	color: var(--wc-gold, #d4af37);
}

.arm-wrap {
	padding: 0 0 24px;
	color: var(--wc-text, #cfc4a8);
	text-align: start;
}

.arm-panel {
	background: rgba(0, 0, 0, 0.32);
	border: 1px solid rgba(212, 175, 55, 0.16);
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 18px;
}

.arm-title {
	font-family: Georgia, serif;
	color: var(--wc-gold, #d4af37);
	font-size: 1.35rem;
	margin: 0 0 10px;
}

.arm-form {
	display: grid;
	grid-template-columns: 1fr minmax(140px, 170px) 120px;
	gap: 12px;
	margin-top: 16px;
}

.arm-form input,
.arm-form select {
	background: #0b0b0b;
	border: 1px solid rgba(212, 175, 55, 0.22);
	border-radius: 8px;
	color: #d8caa7;
	padding: 12px 14px;
	font: inherit;
}

.arm-form button {
	background: linear-gradient(#d7b842, #9f741a);
	border: 0;
	border-radius: 8px;
	color: #1b1207;
	font-weight: 700;
	padding: 12px 16px;
	cursor: pointer;
}

.arm-form button:hover {
	filter: brightness(1.05);
}

.arm-results {
	display: grid;
	gap: 10px;
}

.arm-row {
	display: grid;
	grid-template-columns: 1fr 140px 120px 90px;
	gap: 12px;
	align-items: center;
	background: rgba(255, 255, 255, 0.035);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 10px;
	padding: 14px 16px;
	text-decoration: none !important;
	color: #cfc4a8 !important;
	transition: border-color 0.15s, background 0.15s;
}

.arm-row:hover {
	border-color: rgba(212, 175, 55, 0.42);
	background: rgba(212, 175, 55, 0.06);
}

.arm-name {
	color: var(--wc-gold, #d4af37);
	font-size: 1.1rem;
	font-weight: 600;
}

.arm-muted {
	color: #8c816d;
}

.arm-online {
	color: #4bd66b;
}

.arm-offline {
	color: #b76a5c;
}

/* Profile */
.wa-wrap {
	padding: 0 0 32px;
	color: #d8ccb0;
	text-align: start;
}

.wa-card {
	background: linear-gradient(180deg, rgba(20, 14, 10, 0.94), rgba(3, 3, 3, 0.96));
	border: 1px solid rgba(214, 156, 48, 0.24);
	border-radius: 12px;
	box-shadow: 0 26px 90px rgba(0, 0, 0, 0.6);
	overflow: hidden;
}

.wa-hero {
	position: relative;
	min-height: 205px;
	padding: 28px;
	background: radial-gradient(circle at 48% 0, rgba(173, 102, 22, 0.34), transparent 43%), linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.28)), url('./template/style/images/headers/media.jpg');
	background-size: cover;
	background-position: center;
}

.wa-top {
	display: grid;
	grid-template-columns: 112px 1fr auto;
	gap: 20px;
	align-items: center;
}

.wa-portrait {
	position: relative;
	width: 98px;
	height: 98px;
	flex-shrink: 0;
}

.wa-portrait__race {
	width: 98px;
	height: 98px;
	border-radius: 12px;
	border: 1px solid rgba(231, 177, 61, 0.68);
	box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.45);
	display: block;
}

.wa-portrait__class {
	position: absolute;
	right: -6px;
	bottom: -6px;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #111;
}

.wa-character-portrait {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -54%);
	z-index: 3;
	width: 168px;
	height: 168px;
}

.wa-character-portrait__race {
	width: 168px;
	height: 168px;
	border-radius: 18px;
	border: 2px solid rgba(242, 189, 75, 0.55);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.65);
	display: block;
	background: rgba(0, 0, 0, 0.35);
}

.wa-character-portrait__class {
	position: absolute;
	right: -8px;
	bottom: -8px;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: #111;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.wa-armory-scene {
	opacity: 0.42;
}

.wa-sections--single {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 1050px) {
	.wa-portrait {
		margin: auto;
	}
}

.wa-name {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	color: #f2bd4b;
	font-family: Georgia, serif;
	text-shadow: 0 2px 4px #000;
	margin: 0;
}

.wa-meta {
	color: #d6c49d;
	margin-top: 5px;
}

.wa-badges {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 13px;
}

.wa-badge {
	padding: 7px 11px;
	border: 1px solid rgba(214, 156, 48, 0.27);
	background: rgba(0, 0, 0, 0.42);
	border-radius: 999px;
	font-size: 12px;
	color: #dfd0ad;
}

.wa-search {
	background: rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 9px;
	padding: 13px;
}

.wa-search select {
	background: #0d0d0d;
	color: #e3d5b1;
	border: 1px solid rgba(214, 156, 48, 0.27);
	padding: 10px;
	border-radius: 6px;
	min-width: 190px;
	max-width: 100%;
}

.wa-inspect {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) minmax(280px, 390px) minmax(240px, 1fr);
	gap: 15px;
	padding: 22px;
}

.wa-model {
	position: relative;
	min-height: 535px;
	border: 1px solid rgba(214, 156, 48, 0.27);
	border-radius: 13px;
	background: #050505;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.wa-armory-scene {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.wa-model:before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.2) 58%, rgba(0, 0, 0, 0.46));
	z-index: 1;
	pointer-events: none;
}

#wa-model-viewer,
.wa-model-embed,
.wa-character-model,
.wa-character-model__viewer {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 500px;
}

.wa-character-model__viewer canvas {
	max-width: 100%;
	max-height: 520px;
	outline: none;
}

/* Once the live viewer takes over, hide the static fallback portrait. */
.wa-character-model__viewer--ready .wa-character-model__img,
.wa-character-model__viewer--ready .wa-character-model__class {
	display: none;
}

.wa-character-model__img {
	max-height: 430px;
	max-width: 88%;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.72));
}

.wa-character-model__class {
	position: absolute;
	right: 22%;
	bottom: 20%;
	width: 52px;
	height: 52px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: #111;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}

.wa-model-fallback {
	position: relative;
	z-index: 2;
	color: #a99b7b;
	text-align: center;
	padding: 24px;
	font-size: 14px;
}

.wa-character-title {
	position: absolute;
	left: 50%;
	bottom: 22px;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 8px 18px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.58);
	border: 1px solid rgba(214, 156, 48, 0.32);
	text-shadow: 0 2px 4px #000;
	white-space: nowrap;
}

.wa-character-title__name {
	color: #f2bd4b;
	font-size: 17px;
	font-family: Georgia, serif;
	font-weight: 600;
}

.wa-character-title__meta {
	color: #d6c49d;
	font-size: 12px;
}

.wa-slots {
	display: grid;
	gap: 8px;
}

.wa-slot {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 10px;
	align-items: center;
	min-height: 57px;
	padding: 7px;
	background: rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.075);
	border-radius: 9px;
	text-decoration: none !important;
	color: #d8ccb0 !important;
	transition: 0.15s;
}

.wa-slot:hover {
	border-color: rgba(214, 156, 48, 0.48);
	background: rgba(31, 20, 9, 0.78);
}

.wa-slot img,
.wa-empty-icon,
.wa-ach img {
	width: 44px;
	height: 44px;
	border-radius: 7px;
	background: #111;
	border: 1px solid rgba(255, 255, 255, 0.15);
	display: block;
	pointer-events: none;
}

.wa-slot b {
	display: block;
	font-size: 12px;
	line-height: 1.2;
}

.wa-slot em {
	display: block;
	font-style: normal;
	color: #92866e;
	font-size: 10px;
	margin-top: 3px;
}

.wa-item-ench {
	display: block;
	color: #7ec8ff;
	font-size: 9px;
	margin-top: 2px;
	line-height: 1.2;
}

.wa-item-gems {
	display: block;
	color: #c9a0ff;
	font-size: 9px;
	margin-top: 2px;
	line-height: 1.2;
}

.wa-slot.empty {
	opacity: 0.55;
}

.wa-empty-icon {
	background: linear-gradient(135deg, #111, #242424);
}

.q-poor b { color: #9d9d9d; }
.q-common b { color: #fff; }
.q-uncommon b { color: #1eff00; }
.q-rare b { color: #0070dd; }
.q-epic b { color: #a335ee; }
.q-legendary b { color: #ff8000; }
.q-artifact b { color: #e6cc80; }

.wa-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	padding: 0 22px 22px;
}

.wa-stat {
	background: rgba(0, 0, 0, 0.38);
	border: 1px solid rgba(255, 255, 255, 0.075);
	border-radius: 9px;
	padding: 14px;
}

.wa-stat strong {
	display: block;
	color: #f2bd4b;
	font-size: 22px;
	line-height: 1.15;
}

.wa-stat span {
	font-size: 11px;
	text-transform: uppercase;
	color: #998d74;
}

.wa-sections {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	padding: 0 22px 24px;
}

.wa-section {
	background: rgba(0, 0, 0, 0.34);
	border: 1px solid rgba(255, 255, 255, 0.075);
	border-radius: 10px;
	overflow: hidden;
}

.wa-section h3 {
	margin: 0;
	padding: 13px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.075);
	color: #f2bd4b;
	font-family: Georgia, serif;
}

.wa-section-body {
	padding: 14px 16px;
}

.wa-ach {
	display: grid;
	grid-template-columns: 44px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 9px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.wa-ach a {
	color: #e6d2a8 !important;
	text-decoration: none !important;
}

.wa-ach a:hover {
	color: #f2bd4b !important;
}

.wa-line {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
	flex-wrap: wrap;
}

.wa-progress-row {
	padding: 9px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.wa-progress-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 7px;
	flex-wrap: wrap;
}

.wa-progress-name {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #f6d36b;
}

.wa-mini-icon {
	width: 26px;
	height: 26px;
	border-radius: 5px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.45);
}

.wa-bar {
	height: 8px;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	overflow: hidden;
}

.wa-bar span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #8b5a17, #f2bd4b);
	border-radius: 999px;
}

.wa-small {
	font-size: 11px;
	color: #a99b7b;
}

.wa-muted {
	color: #91856d;
}

.wa-online { color: #55d979; }
.wa-offline { color: #c17465; }

.wa-class-warrior { color: #c79c6e; }
.wa-class-paladin { color: #f58cba; }
.wa-class-hunter { color: #abd473; }
.wa-class-rogue { color: #fff569; }
.wa-class-priest { color: #fff; }
.wa-class-deathknight { color: #c41f3b; }
.wa-class-shaman { color: #0070de; }
.wa-class-mage { color: #69ccf0; }
.wa-class-warlock { color: #9482c9; }
.wa-class-druid { color: #ff7d0a; }

.wa-empty-state {
	padding: 32px 24px;
	text-align: center;
}

.wa-empty-state h2 {
	color: #d4af37;
	margin: 0 0 8px;
}

@media (max-width: 1050px) {
	.wa-inspect {
		grid-template-columns: 1fr;
	}

	.wa-model {
		min-height: 400px;
		order: -1;
	}

	.wa-stats,
	.wa-sections {
		grid-template-columns: 1fr 1fr;
	}

	.wa-top {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.wa-avatar {
		margin: auto;
	}

	.wa-search {
		justify-self: center;
	}
}

@media (max-width: 700px) {
	.arm-form,
	.arm-row {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 650px) {
	.wa-stats,
	.wa-sections {
		grid-template-columns: 1fr;
	}

	.wa-wrap {
		padding-bottom: 16px;
	}

	.wa-ach {
		grid-template-columns: 44px 1fr;
	}

	.wa-ach em {
		grid-column: 2;
	}
}
