/*-------------------------------------------------------------------------*/
/* Character Page
/*-------------------------------------------------------------------------*/

/* Top bar */
.top-bar {
	padding: 1.5rem 1.25rem;
	background: rgba(0,0,0,0.15);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 4px;
	margin-bottom: 0;
}

.top-bar .col-avatar .avatar img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.08);
}

.top-bar .h1 {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 1.5rem;
	margin: 0;
	line-height: 1.2;
}

.top-bar [class*="color-c"] {
	text-shadow: 0 0 15px rgba(255,255,255,0.08);
}

.top-bar .border-start {
	border-color: rgba(255,255,255,0.08) !important;
}

.top-bar .border-start div {
	font-size: 0.85rem;
	color: #8a8a9a;
	line-height: 1.5;
}

/* Separator - use themed divider instead of <hr> */
/* The <hr> elements are kept but styled to be subtle */
hr {
	border: none;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
	opacity: 1;
	margin: 2rem 0;
}

/* Equipment row */
.row.bg-faction {
	padding: 1.5rem;
	background: rgba(0,0,0,0.1);
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 4px;
	margin: 0;
	position: relative;
	overflow: hidden;
}

.row.bg-faction::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0.03;
	background-size: cover;
	background-position: center;
	pointer-events: none;
}

.row.bg-faction.horde::before {
	background-image: url(../../../images/misc/bg_horde_complete.png);
}

.row.bg-faction.alliance::before {
	background-image: url(../../../images/misc/bg_alliance_complete.png);
}

/* Avatar in center */
.char-avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: rgba(255,255,255,0.04);
	border: 2px solid rgba(255,255,255,0.06);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.char-avatar .avatar {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
}

.char-avatar .char-level {
	position: absolute;
	bottom: -2px;
	right: -2px;
	width: 36px;
	height: 36px;
	line-height: 36px;
	border-radius: 50%;
	background: #1a1a28;
	border: 2px solid #c07020;
	color: #e0a840;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 0.85rem;
	text-align: center;
	box-shadow: 0 0 10px rgba(192,112,32,0.3);
}

.avatar-text.h1 {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 1.3rem;
	color: #c8a060;
	text-shadow: 0 0 20px rgba(200,160,96,0.15);
}

/* Item slots */
.col-items {
	width: auto;
	padding: 0 0.5rem;
	position: relative;
	z-index: 1;
}

.item {
	width: 64px;
	height: 64px;
	margin: 0 auto 4px;
	background: rgba(0,0,0,0.25);
	border: 1px solid rgba(255,255,255,0.06);
	border-radius: 3px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.item a {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: block;
	background: none !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
}

.item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	border-radius: 2px;
}

.item .item-trans {
	width: 18px;
	height: 18px;
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 3;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent #e060df #e060df;
	border-radius: 0 0 0 3px;
}

/* Bottom equipment row */
.col-bottom {
	padding: 1rem 0 0;
	gap: 0.5rem;
	position: relative;
	z-index: 1;
}

.col-bottom .item {
	width: 64px;
	height: 64px;
}

/* Health/Mana bars */
#bars {
	padding: 0;
}

#bars .progress {
	height: 6px;
	background: rgba(0,0,0,0.3);
	border-radius: 3px;
	overflow: hidden;
}

#bars .progress .progress-bar {
	border-radius: 3px;
}

#bars .h4 {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #a0a0b0;
	margin-bottom: 0.3rem;
}

/* Attributes / PvP section */
#attributes {
	margin-top: 1.5rem;
}

#attributes .section-header {
	margin: 0;
	padding: 0.6rem 0.8rem;
	font-size: 0.85rem;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #c8a060;
	background: rgba(0,0,0,0.15);
	border: 1px solid rgba(255,255,255,0.04);
	border-bottom: none;
	border-radius: 4px 4px 0 0;
}

#attributes .section-body {
	padding: 0.8rem;
	border: 1px solid rgba(255,255,255,0.04);
	border-radius: 0 0 4px 4px;
	background: rgba(0,0,0,0.05);
}

#attributes .table {
	margin-bottom: 0.8rem;
	font-size: 0.85rem;
}

#attributes .table:last-child {
	margin-bottom: 0;
}

#attributes .table td {
	padding: 0.35rem 0.5rem;
	border-color: rgba(255,255,255,0.04);
	color: #c0c0c8;
}

#attributes .table td:last-child {
	color: #e0e0e8;
	font-weight: 500;
}

#attributes .table-striped > tbody > tr:nth-of-type(odd) > * {
	background: rgba(255,255,255,0.015);
}

/* Class colors */
.color-c1 { color: #c79c6e; }
.color-c2 { color: #f58cba; }
.color-c3 { color: #abd473; }
.color-c4 { color: #fff569; }
.color-c5 { color: #ffffff; }
.color-c6 { color: #c41f3b; }
.color-c7 { color: #0070de; }
.color-c8 { color: #69ccf0; }
.color-c9 { color: #9482c9; }
.color-c10 { color: #ff7d0a; }
.color-c11 { color: #00ff96; }
.color-c12 { color: #a330c9; }

/* Responsive */
@media (max-width: 768px) {
	.top-bar .col-avatar .avatar img {
		width: 48px;
		height: 48px;
	}

	.top-bar .h1 {
		font-size: 1.1rem;
	}

	.char-avatar {
		width: 80px;
		height: 80px;
	}

	.char-avatar .avatar {
		width: 72px;
		height: 72px;
	}

	.col-items {
		padding: 0 0.25rem;
	}

	.item {
		width: 52px;
		height: 52px;
	}

	#attributes .section-body {
		padding: 0.5rem;
	}
}

@media (max-width: 576px) {
	.top-bar .col-9 {
		padding-left: 0.75rem !important;
	}

	.top-bar .border-start {
		margin-left: 0.5rem !important;
		padding-left: 0.5rem !important;
	}

	.top-bar .border-start div {
		font-size: 0.75rem;
	}

	#bars .col-6 {
		width: 100%;
		margin-bottom: 0.5rem;
	}
}
