/**
 * RLH Grid Items Styles
 * Styles for items placed on the grid (players, traps, banners, etc.)
 */

/* Item Type Colors */
.item-player {
	background-color: #663399 !important;
	border-color: #a872e6 !important;
}

.item-trap {
	background-color: #854d0e !important;
	border-color: #ca8a04 !important;
}

.item-banner {
	background-color: #166534 !important;
	border-color: #22c55e !important;
}

.item-hq {
	background-color: #854d0e !important;
	border-color: #ca8a04 !important;
}

.item-obstacle {
	background-color: #1e3a8a !important;
	border-color: #60a5fa !important;
}

/* Item Labels */
.item-label {
	position: absolute;
	pointer-events: none;
	text-transform: uppercase;
	color: white;
	font-size: 16px;
	font-weight: 900;
	transform: rotate(-45deg);
	display: flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 150px;
	text-shadow: 
		-1px -1px 0 #000,  
		 1px -1px 0 #000,
		-1px  1px 0 #000,
		 1px  1px 0 #000;
	z-index: 10;
	/* Performance optimization */
	will-change: transform, opacity;
}

/* Item Borders (continuous border around multi-cell items) */
.item-border {
	position: absolute;
	pointer-events: none;
	z-index: 15;
	border-width: 2px;
	border-style: solid;
	box-sizing: border-box;
	/* Performance optimization */
	contain: layout style;
}

.item-border.border-player { 
	border-color: #4a1f66;
}

.item-border.border-trap { 
	border-color: #5a3a05;
}

.item-border.border-banner { 
	border-color: #0d4a21;
}

.item-border.border-hq { 
	border-color: #5a3a05;
}

.item-border.border-obstacle { 
	border-color: #1e40af;
}

