:root { --clr-btn-border: #BBBBBB; }
body {
	font-family: Arial, sans-serif;
	background-color: #121212;
	color: #ffffff;
	padding: 30px;
}
.langs-bar {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	margin-bottom: 15px;
}
.lang-btn {
	width: 40px; height: 26px;
	background-color: #1e1e1e;
	color: #fff;
	border: 1px solid #333;
	border-radius: 4px;
	text-align: center;
	cursor: pointer;
	transition-duration: 0.2s;
}
.lang-btn:hover {
	border-color: var(--clr-btn-border);
	box-shadow: 0 0 6px var(--clr-btn-border);
	transform: translateY(-3px);
}
.rare-btn {
	--rare: #0000;
	width: 40px; height: 40px;
	background-color: #222;
	box-shadow: 0 4px 6px #000;
	border: 1px solid #444;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition-duration: 0.2s;
}
.rare-btn[on] {
	background-color: #666;
	border-color: #fff;
}
.rare-btn:hover {
	background-color: #444;
	border-color: var(--rareb);
	box-shadow: 0 4px 6px var(--rareb);
	transform: translateY(-3px);
}
.rare-btn .rare-box {
	background-color: var(--rareb);
	width: 20px;
	height: 20px;
	border-radius: 4px;
}
#searchInput {
	width: 100%;
	max-width: 400px;
	padding: 12px;
	font-size: 16px;
	border-radius: 6px;
	border: 1px solid #333;
	background-color: #1e1e1e;
	color: #fff;
	margin-bottom: 25px;
	outline: none;
}
#searchInput:focus { border-color: var(--clr-btn-border); }
.grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}
.card {
	--rare: #0000;
	background-color: #1e1e1e;
	border: 1px solid #333;
	border-left: 6px solid var(--rare);
	border-radius: 8px;
	width: 206px;
	height: 92px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	text-align: left;
	padding: 10px;
	box-sizing: border-box;
	box-shadow: 0 4px 6px #000;
	transition-duration: 0.2s;
}
.card * {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.card:hover {
	transform: translateY(-3px);
	border-color: var(--rare);
	box-shadow: 0 4px 6px var(--rare);
	border-left: 6px solid var(--rare);
}
.back-link {
	display: inline-block;
	margin-bottom: 20px;
	color: var(--clr-btn-border);
	text-decoration: none;
}
.back-link:hover { text-decoration: underline; }
.details-box {
	--rare: #0000;
	background-color: #1e1e1e;
	border: 1px solid #333;
	border-left: 6px solid var(--rare);
	border-radius: 8px;
	padding: 20px;
	max-width: 800px;
	box-shadow: 0 4px 6px #000;
}
.craft-section {
	margin-top: 20px;
	border-top: 1px solid #333;
}
.craft-section h3 {
	font-size: 16px;
	margin-bottom: 10px;
	color: #ccc;
}
.craft-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
stit {
	font-size: 22px;
	font-weight: bold;
	margin-top: -8px;
}
tit {
	font-size: 32px;
	font-weight: bold;
}
id {
	font-size: 14px;
	color: #444;
	margin-left: 8px;
}
sdes {
	font-size: 13px;
	color: #AAA;
	display: block;
}
des {
	font-size: 16px;
	color: #AAA;
	display: block;
}
sl { text-transform: capitalize; }
.category-separator {
	width: 100%;
	cursor: pointer;
	user-select: none;
}
.category-separator h3 {
	color: #888;
	font-size: 16px;
	margin-top: 5px;
	margin-bottom: 5px;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.category-separator:hover h3 { color: #fff; }
.category-separator .collapse-arrow {
	transition: transform 0.3s ease;
	font-size: 12px;
}
.category-separator.collapsed .collapse-arrow { transform: rotate(-90deg); }
.category-collapse-wrapper {
	display: grid;
	grid-template-rows: 1fr;
	transition: grid-template-rows 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
	opacity: 1;
	width: 100%;
	padding-bottom: 8px;
}
.category-collapse-wrapper > div,
.category-collapse-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	max-height: 2000px;
	transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
	padding-top: 5px;
	padding-left: 5px;
	overflow: hidden;
}
.category-collapse-wrapper {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 15px;
}
.category-collapse-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	max-height: 2000px;
	transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}
.category-collapse-wrapper[collapsed] {
	max-height: 0;
	opacity: 0;
	margin-bottom: 0;
	padding-top: 0;
	pointer-events: none;
}
.market-calculator hr {
	border: none;
	border-top: 1px solid #333;
	margin: 15px 0;
}
.market-inputs-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 15px;
}
.market-input-group { width: 200px; }
.market-price-input,
.market-sell-input {
	width: 100%;
	background: #1a1a1a;
	border: 1px solid #444;
	color: #fff;
	padding: 5px 8px;
	border-radius: 4px;
	box-sizing: border-box;
}
.market-sell-input {
	padding: 6px 8px;
	margin-top: 4px;
}
.market-total-box {
	background: #1e1e1e;
	padding: 0px;
	border-radius: 6px;
	margin-bottom: 10px;
}
.market-total-value {
	color: #42c2b6;
	font-weight: bold;
}
.market-profit-box { margin-top: 8px; }
.market-profit-value {
	color: #ff9a00;
	font-weight: bold;
}
