/* Маршрут прокачки профессии: [route], [craft], [route_summary], [route_shopping] — inc/route.php */

.route-icon { flex-shrink: 0; border-radius: 6px; border: 1px solid #3a3f4a; background: #000; box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset; }
.route-icon.q2 { border-color: color-mix(in srgb, #1eff00 45%, #222); }
.route-icon.q3 { border-color: color-mix(in srgb, #0070dd 65%, #222); }
.route-icon.q4 { border-color: color-mix(in srgb, #a335ee 65%, #222); }
.route .wh-link, .route-shop .wh-link, .route__total .wh-link { background-image: none !important; padding-left: 0 !important; }
.entry-content .wh-link.q1 { color: #f2efe8; }
.entry-content .wh-link.q2 { color: #3ce63c; }
.entry-content .wh-link.q3 { color: #3d9bff; }
.entry-content .wh-link.q4 { color: #b867f5; }

/* Шаги */
.route { margin: 1.4em 0 1.6em; }
.entry-content .route__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.entry-content .route__list > li { margin: 0; }
.route-step {
	position: relative;
	display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(200px, 36%) 40px;
	align-items: center; gap: 16px;
	padding: 16px 16px 16px 20px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	transition: border-color .2s, opacity .2s, background .2s;
}
.route-step:hover { border-color: var(--border-2); }
.route-step__skill { font: 400 24px/1.1 var(--font-head); color: var(--gold-2); letter-spacing: .02em; white-space: nowrap; }
.route-step__main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.route-step__what { min-width: 0; }
.route-step__name { font-size: 17px; line-height: 1.3; }
.entry-content .route-step__name a { text-decoration: none; }
.entry-content .route-step__name a:hover { text-decoration: underline; }
.route-step__meta { margin-top: 4px; color: var(--muted); font-size: 14px; }
.route-step__meta b { color: var(--text); font-weight: 600; }
.route-step__note { margin-top: 8px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.route-step__note p { margin: 0; }

.entry-content .route-step__mats { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1px solid var(--border); display: grid; gap: 6px; font-size: 14.5px; }
.entry-content .route-step__mats li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.route-step__mats .route-icon { border-radius: 4px; }
.route-step__qty { min-width: 2.2em; text-align: right; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.route-step__x { color: var(--muted); margin: 0 -2px; }
.entry-content .route-step__mats a { color: var(--text-2); font-weight: 500; text-decoration: none; }
.entry-content .route-step__mats a:hover { color: var(--gold-2); }

.route-step__check {
	justify-self: end;
	display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
	border: 1.5px solid var(--border-2); border-radius: 50%;
	background: transparent; color: transparent; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.route-step__check:hover { border-color: var(--heal); color: color-mix(in srgb, var(--heal) 55%, transparent); }
.route-step__check:active { transform: scale(.92); }
.route-step.is-done { opacity: .55; background: var(--bg-2); }
.route-step.is-done:hover { opacity: .85; }
.route-step.is-done .route-step__check { background: var(--heal); border-color: var(--heal); color: #0b1a10; }
.route-step.is-done .route-step__skill { color: var(--muted); }
.route-step--text { grid-template-columns: 92px minmax(0, 1fr) 40px; border-style: dashed; background: var(--bg-2); }
.route-step--text .route-step__name { color: var(--text); font-weight: 600; }
.route-step--text .route-step__note { margin-top: 4px; }

/* Итог под путём-вариантом */
.route__total {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
	margin-top: 10px; padding: 12px 16px;
	border: 1px solid color-mix(in srgb, var(--gold) 30%, var(--border)); border-radius: var(--radius-sm);
	background: var(--gold-dim); font-size: 14px;
}
.route__total-label { color: var(--gold-2); font-weight: 600; }
.route__total > span:not(.route__total-label) { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.route__total .route-icon { border-radius: 4px; }
.entry-content .route__total a { color: var(--text); font-weight: 500; text-decoration: none; }
.entry-content .route__total a:hover { color: var(--gold-2); }
.route-step--missing { border-color: var(--dps); color: var(--dps); grid-template-columns: 92px 1fr; }

@media (max-width: 760px) {
	.route-step { grid-template-columns: 1fr auto; gap: 12px; padding: 14px; }
	.route-step__skill { font-size: 21px; }
	.route-step__main { grid-column: 1 / -1; grid-row: 2; }
	.entry-content .route-step__mats { grid-column: 1 / -1; grid-row: 3; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--border); }
	.route-step__check { grid-column: 2; grid-row: 1; }
	.route-step--text { grid-template-columns: 1fr auto; }
}

/* Сводка */
.route-summary {
	margin: 1.6em 0; padding: 20px 22px;
	border: 1px solid var(--border); border-radius: var(--radius);
	background:
		radial-gradient(500px 160px at 0% 0%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 70%),
		var(--surface);
}
.route-summary__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.route-summary__stats div { padding: 4px 0 4px 14px; border-left: 2px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.route-summary__stats dd { order: -1; margin: 0; font: 400 28px/1.1 var(--font-head); color: var(--gold-2); }
.route-summary__stats div { display: flex; flex-direction: column; }
.route-summary__stats dt { margin-top: 4px; color: var(--muted); font-size: 13px; }
.route-summary__progress { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.route-summary__progress[hidden] { display: none; }
.route-summary__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--border); overflow: hidden; }
.route-summary__bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--heal), #8ee6a8); transition: width .3s ease; }
.route-summary__count { color: var(--text-2); font-size: 14px; white-space: nowrap; }
.route-summary__count b { color: var(--text); }
.route-summary__reset { padding: 4px 10px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: none; color: var(--muted); font: 500 13px/1.4 var(--font-body); cursor: pointer; }
.route-summary__reset:hover { color: var(--text); border-color: var(--gold); }
.entry-content .route-summary__hint { margin: 14px 0 0; color: var(--muted); font-size: 13.5px; }
.route-summary.has-progress .route-summary__hint { display: none; }

@media (max-width: 760px) {
	.route-summary { padding: 16px; }
	.route-summary__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
	.route-summary__stats dd { font-size: 24px; }
	.route-summary__progress { flex-wrap: wrap; }
	.route-summary__bar { flex-basis: 100%; }
}

/* Список покупок */
.route-shop { margin: 1.4em 0; }
.entry-content .route-shop__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.entry-content .route-shop__list li {
	display: flex; align-items: center; gap: 12px; margin: 0;
	padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.route-shop__name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.entry-content .route-shop__name a { color: var(--text); text-decoration: none; }
.entry-content .route-shop__name a:hover { color: var(--gold-2); }
.route-shop__name small { color: var(--muted); font-size: 12.5px; }
.route-shop__qty { font: 400 22px/1 var(--font-head); color: var(--gold-2); font-variant-numeric: tabular-nums; }
