/* Сторінки-гайди WoW Hub. Усе під .wng, щоб не чіпати решту сайту.
   BeTheme додає власні відступи й кольори до p, a, ul, table, тому вони тут задані явно. */

.wng {
	--wng-bg: #0b0e14;
	--wng-panel: #101720;
	--wng-panel-2: #151f2b;
	--wng-line: #2c3b49;
	--wng-text: #d6dbe1;
	--wng-head: #f4f7fb;
	--wng-muted: #9aa8b6;
	--wng-gold: #f0b429;
	--wng-accent: #f0b429;
	max-width: 1180px;
	margin: 0 auto 40px;
	color: var(--wng-text);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.65;
}

.wng-v-retail { --wng-accent: #a78bfa; }
.wng-v-forever { --wng-accent: #5cc6d6; }
.wng-v-tbc { --wng-accent: #8fd14f; }
.wng-v-mop { --wng-accent: #4fd1a5; }

.wng *,
.wng *::before,
.wng *::after { box-sizing: border-box; }

.wng p { margin: 0 0 14px; color: var(--wng-text); }
.wng p:last-child { margin-bottom: 0; }
.wng ol,
.wng ul { margin-left: 0; }
.wng a { color: var(--wng-gold); text-decoration: underline; text-underline-offset: 3px; }
.wng a:hover { color: #ffd166; }
.wng strong { color: var(--wng-head); font-weight: 600; }
.wng img { display: block; max-width: 100%; }

.wng h1,
.wng h2,
.wng h3 {
	margin: 0;
	color: var(--wng-head);
	font-weight: 600;
	letter-spacing: -0.02em;
	text-transform: none;
}
.wng h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; }
.wng h2 { margin-bottom: 14px; font-size: clamp(24px, 3vw, 31px); line-height: 1.2; }
.wng h3 { font-size: 20px; line-height: 1.3; }

.wng-section { margin-top: 54px; scroll-margin-top: 110px; }
.wng-lead-text { max-width: 760px; margin-bottom: 22px; color: var(--wng-muted); }

/* Хлібні крихти */
.wng-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
	color: var(--wng-muted);
	font-size: 14px;
	line-height: 1.4;
}
.wng-crumbs li { margin: 0; padding: 0; color: inherit; list-style: none; }
.wng-crumbs li + li::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.wng-crumbs a { color: var(--wng-muted); text-decoration: none; }
.wng-crumbs a:hover { color: var(--wng-head); }

/* Шапка сторінки */
.wng-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 400px;
	overflow: hidden;
	border: 1px solid var(--wng-line);
	border-radius: 22px;
	background: var(--wng-panel);
}
.wng img.wng-hero-img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 66%;
	height: 100%;
	object-fit: cover;
}
.wng-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--wng-panel) 34%, rgba(16, 23, 32, 0.82) 50%, rgba(16, 23, 32, 0.06) 78%);
}
.wng-hero-body { position: relative; z-index: 1; width: 56%; padding: 44px; }
.wng-hero-plain { min-height: 0; background: radial-gradient(circle at 88% 0, rgba(240, 180, 41, 0.14), transparent 46%), var(--wng-panel); }
.wng-hero-plain::after { display: none; }
.wng-hero-plain .wng-hero-body { width: 100%; max-width: 860px; }
.wng-eyebrow {
	display: block;
	margin-bottom: 10px;
	color: var(--wng-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}
.wng-hero p.wng-lead { margin: 14px 0 0; color: #e3e8ee; font-size: 18px; line-height: 1.6; }
.wng-updated { display: block; margin-top: 14px; color: var(--wng-muted); font-size: 14px; line-height: 1.4; }
.wng-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Кнопки */
.wng a.wng-btn,
.wng .wng-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--wng-gold);
	color: #15110a;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s;
}
.wng a.wng-btn:hover { background: #ffc94d; color: #15110a; }
.wng a.wng-btn-ghost { border-color: var(--wng-line); background: transparent; color: var(--wng-head); }
.wng a.wng-btn-ghost:hover { border-color: var(--wng-gold); background: transparent; color: var(--wng-head); }

/* Перемикач версій */
.wng-switch { margin-top: 14px; }
.wng-switch ul {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 6px;
	overflow-x: auto;
	border: 1px solid var(--wng-line);
	border-radius: 14px;
	background: var(--wng-panel);
	list-style: none;
	scrollbar-width: none;
}
.wng-switch li { flex: 1 0 auto; margin: 0; padding: 0; list-style: none; }
.wng-switch a {
	display: block;
	padding: 9px 14px;
	border-radius: 9px;
	color: var(--wng-muted);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}
.wng-switch a:hover { background: var(--wng-panel-2); color: var(--wng-head); }
.wng-switch a[aria-current="page"] { background: var(--wng-panel-2); box-shadow: inset 0 -2px 0 var(--wng-accent); color: var(--wng-head); }

/* Вибір версії */
.wng-versions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wng-vcard {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wng-line);
	border-radius: 18px;
	background: var(--wng-panel);
	transition: border-color 0.15s, transform 0.15s;
}
.wng-vcard:hover { border-color: var(--wng-accent); transform: translateY(-2px); }
.wng-vcard-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--wng-panel-2); }
.wng-vcard-media img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.wng-vcard-media img:first-child:not(:last-child) { width: 50%; }
.wng-vcard-media img + img { left: 50%; width: 50%; }
.wng-vcard-body { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.wng-vcard .wng-eyebrow { margin-bottom: 6px; font-size: 12px; }
.wng-vcard h3 { font-size: 23px; }
.wng-vcard h3 a { color: var(--wng-head); text-decoration: none; }
.wng-vcard-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.wng-vcard p { margin: 8px 0 14px; color: var(--wng-muted); font-size: 16px; line-height: 1.55; }
.wng-spec { display: grid; gap: 6px; margin: 0 0 18px; }
.wng-spec div { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid rgba(44, 59, 73, 0.6); font-size: 15px; line-height: 1.35; }
.wng-spec dt { margin: 0; color: var(--wng-muted); font-weight: 400; }
.wng-spec dd { min-width: 0; margin: 0; color: var(--wng-head); font-weight: 600; text-align: right; }
.wng-card .wng-spec div { flex-wrap: wrap; }
.wng-card .wng-spec { margin-bottom: 0; }
.wng-vcard-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.wng-vcard-cta .wng-btn { flex: 1 1 0; position: relative; z-index: 2; white-space: nowrap; }

/* Кроки */
.wng-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 0; counter-reset: wng-step; list-style: none; }
.wng-steps > li {
	position: relative;
	margin: 0;
	padding: 18px 20px 18px 74px;
	border: 1px solid var(--wng-line);
	border-radius: 14px;
	background: var(--wng-panel);
	counter-increment: wng-step;
	list-style: none;
}
.wng-steps > li::before {
	content: counter(wng-step);
	position: absolute;
	top: 18px;
	left: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid var(--wng-accent);
	border-radius: 50%;
	color: var(--wng-accent);
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}
.wng-steps h3 { margin-bottom: 4px; font-size: 19px; }
.wng-steps p { margin-bottom: 0; font-size: 16px; }
.wng-steps .wng-actions { margin-top: 12px; }

/* Картки та списки */
.wng-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wng-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wng-card { padding: 18px 20px; border: 1px solid var(--wng-line); border-radius: 14px; background: var(--wng-panel); }
.wng-card h3 { margin-bottom: 6px; font-size: 19px; }
.wng-card p { font-size: 16px; }
.wng-tag { display: block; margin-bottom: 6px; color: var(--wng-accent); font-size: 15px; font-weight: 700; line-height: 1.3; }

.wng-list { margin: 0 0 14px; padding: 0; list-style: none; }
.wng-list li { position: relative; margin: 0 0 8px; padding: 0 0 0 20px; list-style: none; }
.wng-list li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 2px;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--wng-accent);
	transform: rotate(45deg);
}

.wng p.wng-note,
.wng-note {
	margin: 18px 0 0;
	padding: 14px 18px;
	border: 1px solid var(--wng-line);
	border-left: 3px solid var(--wng-gold);
	border-radius: 10px;
	background: var(--wng-panel-2);
	font-size: 16px;
}

/* Посилання далі */
.wng-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wng a.wng-link {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--wng-line);
	border-radius: 14px;
	background: var(--wng-panel);
	color: var(--wng-text);
	font-size: 15px;
	line-height: 1.45;
	text-decoration: none;
	transition: border-color 0.15s;
}
.wng a.wng-link:hover { border-color: var(--wng-accent); }
.wng-link strong { display: block; margin-bottom: 2px; font-size: 17px; }

/* Таблиця */
.wng-table-wrap { overflow-x: auto; border: 1px solid var(--wng-line); border-radius: 14px; background: var(--wng-panel); }
.wng table { width: 100%; min-width: 760px; margin: 0; border: 0; border-collapse: collapse; background: transparent; font-size: 15px; line-height: 1.4; }
.wng th,
.wng td {
	padding: 12px 14px;
	border: 0;
	border-bottom: 1px solid var(--wng-line);
	background: transparent;
	color: var(--wng-text);
	text-align: left;
	vertical-align: top;
}
.wng thead th { color: var(--wng-head); font-weight: 700; }
.wng tbody th { color: var(--wng-muted); font-weight: 500; }
.wng thead th:first-child,
.wng tbody th { position: sticky; left: 0; z-index: 1; background: var(--wng-panel); }
.wng tbody tr:last-child th,
.wng tbody tr:last-child td { border-bottom: 0; }
.wng tr:hover th,
.wng tr:hover td { background: transparent; }

/* Словник термінів */
.wng-terms { margin: 0; border: 1px solid var(--wng-line); border-radius: 14px; background: var(--wng-panel); }
.wng-terms > div {
	display: grid;
	grid-template-columns: 240px minmax(0, 1fr);
	gap: 16px;
	padding: 11px 18px;
	border-top: 1px solid rgba(44, 59, 73, 0.6);
}
.wng-terms > div:first-child { border-top: 0; }
.wng-terms dt { margin: 0; color: var(--wng-head); font-size: 16px; font-weight: 700; line-height: 1.45; }
.wng-terms dt small { display: block; color: var(--wng-muted); font-size: 13px; font-weight: 400; line-height: 1.35; }
.wng-terms dd { margin: 0; color: var(--wng-text); font-size: 16px; line-height: 1.5; }

/* Картки аддонів */
.wng-addons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.wng-addons-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wng-addon {
	display: flex;
	flex-direction: column;
	padding: 20px;
	border: 1px solid var(--wng-line);
	border-radius: 16px;
	background: var(--wng-panel);
	transition: border-color 0.15s;
}
.wng-addon:hover { border-color: var(--wng-accent); }
.wng-addon-rec {
	position: relative;
	border-color: var(--wng-gold);
	background: linear-gradient(180deg, rgba(240, 180, 41, 0.1), rgba(240, 180, 41, 0) 42%), var(--wng-panel);
	box-shadow: 0 0 0 1px rgba(240, 180, 41, 0.28);
}
.wng-badge {
	position: absolute;
	top: 20px;
	right: 18px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wng-gold);
	color: #15110a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.25;
}
.wng-addon h3 { margin-bottom: 2px; font-size: 21px; }
.wng-addon-by { display: block; margin-bottom: 10px; color: var(--wng-muted); font-size: 14px; line-height: 1.4; }
.wng-addon p { margin-bottom: 10px; font-size: 16px; line-height: 1.55; }
.wng-addon-state { padding-top: 10px; border-top: 1px solid rgba(44, 59, 73, 0.6); color: var(--wng-muted); }
.wng-addon .wng-addon-state { color: var(--wng-muted); font-size: 15px; }
.wng-addon-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.wng-addon-cta .wng-btn { flex: 1 1 auto; }

.wng td.wng-yes { color: #8fd14f; font-weight: 600; }
.wng td.wng-part { color: var(--wng-gold); font-weight: 600; }
.wng td.wng-no { color: var(--wng-muted); }
.wng code {
	display: inline;
	padding: 1px 6px;
	border-radius: 5px;
	background: var(--wng-panel-2);
	color: var(--wng-head);
	font-size: 0.9em;
	white-space: normal;
	word-break: normal;
	overflow-wrap: anywhere;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
}
.wng-figure { margin: 18px 0 0; }
.wng-figure img { width: 100%; max-width: 699px; height: auto; border: 1px solid var(--wng-line); border-radius: 12px; }
.wng-figure figcaption { margin-top: 8px; color: var(--wng-muted); font-size: 14px; line-height: 1.4; }

/* Часті запитання */
.wng-faq { display: grid; gap: 10px; }
.wng-faq details { border: 1px solid var(--wng-line); border-radius: 12px; background: var(--wng-panel); }
.wng-faq summary {
	position: relative;
	padding: 14px 44px 14px 18px;
	color: var(--wng-head);
	cursor: pointer;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
}
.wng-faq summary::-webkit-details-marker { display: none; }
.wng-faq summary::after {
	content: "+";
	position: absolute;
	top: 11px;
	right: 18px;
	color: var(--wng-gold);
	font-size: 22px;
	font-weight: 400;
}
.wng-faq details[open] summary::after { content: "−"; }
.wng-faq details p { margin: 0; padding: 0 18px 16px; font-size: 16px; }

/* Сторінка версії: текст і бічна панель */
.wng-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.wng-main { min-width: 0; }
.wng-main > .wng-section:first-child { margin-top: 40px; }
.wng-aside { position: sticky; top: 96px; margin-top: 40px; }
.wng-facts { padding: 20px; border: 1px solid var(--wng-line); border-radius: 16px; background: var(--wng-panel); }
.wng-facts h2 { margin-bottom: 12px; font-size: 19px; }
.wng-facts .wng-spec { margin-bottom: 16px; }
.wng-facts .wng-spec div { display: block; }
.wng-facts .wng-spec dd { margin-top: 2px; text-align: left; }
.wng-facts .wng-btn { width: 100%; }

@media (max-width: 959px) {
	.wng-versions,
	.wng-layout { grid-template-columns: minmax(0, 1fr); }
	.wng-grid,
	.wng-addons,
	.wng-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wng-layout { gap: 0; }
	.wng-aside { position: static; order: -1; margin-top: 24px; }
	.wng-main > .wng-section:first-child { margin-top: 44px; }
	.wng-hero { display: block; }
	.wng img.wng-hero-img { position: static; width: 100%; height: 240px; }
	.wng-hero::after { display: none; }
	.wng-hero-body { width: 100%; padding: 24px 26px 28px; }
	.wng-facts .wng-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
	.wng-vcard-media { aspect-ratio: 21 / 9; }
}

@media (max-width: 640px) {
	.wng { font-size: 16px; }
	.wng-section { margin-top: 42px; }
	.wng-grid,
	.wng-grid-2,
	.wng-addons,
	.wng-addons-2,
	.wng-links { grid-template-columns: minmax(0, 1fr); }
	.wng-card .wng-spec code { font-size: 0.8em; }
	.wng-terms > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 11px 16px; }
	.wng-hero { min-height: 0; border-radius: 16px; }
	.wng img.wng-hero-img { height: 190px; }
	.wng-hero-body { padding: 20px 20px 24px; }
	.wng-hero p.wng-lead { font-size: 16px; }
	.wng-steps > li { padding: 16px 16px 16px 62px; }
	.wng-steps > li::before { top: 16px; left: 14px; width: 34px; height: 34px; font-size: 15px; }
	.wng-actions .wng-btn { width: 100%; }
	.wng-vcard-cta .wng-btn { flex: 1 1 100%; }
	.wng-switch ul { flex-wrap: wrap; overflow: visible; }
	.wng-switch li { flex: 1 1 45%; }
	.wng-vcard-media { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
	.wng-vcard { transition: none; }
	.wng-vcard:hover { transform: none; }
}
