/* Item Styles */
.item {
	transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.2, 1), opacity 0.3 ease,
		max-height 0.3 ease;
}

.item.will-hide {
	opacity: 0;
	transform: translateY(-8px) scale(0.99);
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	margin: 0;
	overflow: hidden;
}

.item.appearing {
	opacity: 0;
	transform: translateY(-8px) scale(0.99);
}

.item {
	display: flex;
	align-items: center;
	padding: 12px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 8px;
	transition: all 0.3s ease;
	border: 1px solid transparent;
}

.item:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 165, 0, 0.3);
	transform: translateX(5px);
}

.item.checked .item-name {
	text-decoration: line-through;
	opacity: 0.7;
}

.item-checkbox {
	width: 20px;
	height: 20px;
	margin-right: 15px;
	cursor: pointer;
	accent-color: #00ff64;
}

.item-info {
	flex: 1;
}

.item-name {
	font-weight: bold;
	color: #ffffff;
	margin-bottom: 3px;
	transition: all 0.3s ease;
}

.item-location {
	font-size: 0.9em;
	color: #a8a8a8;
}

.tier-badge {
	padding: 3px 10px;
	border-radius: 15px;
	font-size: 0.8em;
	font-weight: bold;
	margin-left: 10px;
}

.tier-copper {
	background: #b87333;
	color: white;
}
.tier-iron {
	background: #7c7c7c;
	color: white;
}
.tier-steel {
	background: #4a5568;
	color: white;
}
.tier-aluminum {
	background: #8b9dc3;
	color: white;
}

.item-name a,
.item-location a {
	color: #ffd27a;
	text-decoration: none;
	border-bottom: 1px dashed rgba(255, 210, 122, 0.15);
	transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.item-name a:hover,
.item-location a:hover {
	color: #ffffff;
	border-bottom-color: rgba(255, 210, 122, 0.45);
}
.item-name a:focus,
.item-location a:focus {
	outline: 3px solid rgba(255, 165, 0, 0.12);
	outline-offset: 3px;
	border-bottom-color: rgba(255, 210, 122, 0.6);
}
.item-name a:visited,
.item-location a:visited {
	color: #ffb86b;
}

.item.checked .item-name a {
	text-decoration: line-through;
	opacity: 0.7;
}

.item.infobox {
	flex-direction: column;
	align-items: stretch;
	padding: 0;
	background: rgba(255, 255, 255, 0.03);
	border-radius: 12px;
	overflow: hidden;
	min-height: 280px;
	position: relative;
	cursor: pointer;
	display: flex;
}

.item.infobox .item-image {
	width: 100%;
	height: 160px;
	object-fit: contain;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
	display: block;
}

.item.infobox .item-info {
	padding: 12px 14px 16px;
}

.item.infobox .item-checkbox {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.item.infobox .item-info {
	cursor: pointer;
}

.item.infobox.checked {
	box-shadow: inset 0 0 8px 8px rgba(25, 25, 25, 0.8);
	border: 1px solid rgba(25, 25, 25, 0.5);
}

.item.infobox .item-name {
	font-size: 1.05em;
}
.item.infobox .item-location {
	margin-top: 6px;
}

.location-icon {
	height: 24px;
	object-fit: contain;
	vertical-align: middle;
	padding-right: 4px;
}
