/**
 * Játék single page — kiegészítő szekciók
 * (breadcrumb + alsó szekciók + sticky sidebar + hasonló játékok)
 *
 * Prefix: .jt-*
 * A hero szekció stílusait a jatekok-single.css tartalmazza.
 */

.jt-wrapper {
	--jt-text:    #ffffff;
	--jt-muted:   #a7b0c0;
	--jt-bg:      #080b12;
	--jt-card-bg: #141d2b;
	--jt-accent-1: #f6b93b;
	--jt-accent-2: #ff7a18;
	--jt-ready:   #22c55e;
	--jt-progress: #3b82f6;

	font-family: "Poppins", sans-serif;
	color: var(--jt-text);
	max-width: 1140px;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

/* ---- Breadcrumb -------------------------------------------------------- */

.jt-breadcrumb {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	color: var(--jt-muted);
	margin-top: 20px;
	flex-wrap: wrap;
}

.jt-breadcrumb a {
	color: var(--jt-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.jt-breadcrumb a:hover {
	color: var(--jt-text);
}

.jt-breadcrumb__sep {
	opacity: 0.5;
}

.jt-breadcrumb__current {
	color: var(--jt-text);
	font-weight: 500;
}

/* ---- Alsó szekció (grid) ----------------------------------------------- */

.jt-section {
	margin-top: 70px;
}

.jt-section__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 36px;
	align-items: start;
}

.jt-section__main {
	min-width: 0;
}

.jt-section__title {
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -0.5px;
	margin: 0 0 20px;
	color: var(--jt-text);
}

/* ---- „A magyarításról" ------------------------------------------------- */

.jt-content {
	margin-bottom: 40px;
}

.jt-content p {
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--jt-muted);
	margin: 0 0 14px;
}

.jt-content p:last-child {
	margin-bottom: 0;
}

/* ---- Telepítési útmutató ----------------------------------------------- */

.jt-install {
	margin-bottom: 40px;
	scroll-margin-top: 30px;
}

.jt-install__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.jt-install__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 20px;
	border-radius: 14px;
	background: var(--jt-card-bg);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.jt-install__num {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--jt-accent-1), var(--jt-accent-2));
	color: var(--jt-bg);
	font-weight: 800;
	font-size: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.jt-install__text {
	font-size: 15px;
	line-height: 1.55;
	color: var(--jt-text);
	padding-top: 4px;
}

/* ---- Verziótörténet (timeline) ----------------------------------------- */

.jt-changelog {
	margin-bottom: 20px;
}

.jt-changelog__list {
	position: relative;
	padding-left: 26px;
}

.jt-changelog__line {
	position: absolute;
	left: 6px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(var(--jt-accent-1), rgba(246, 185, 59, 0.1));
}

.jt-changelog__item {
	position: relative;
	margin-bottom: 22px;
}

.jt-changelog__item:last-child {
	margin-bottom: 0;
}

.jt-changelog__dot {
	position: absolute;
	left: -26px;
	top: 4px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--jt-dot-color, var(--jt-accent-1));
	border: 3px solid var(--jt-bg);
	box-shadow: 0 0 0 1px var(--jt-dot-color, var(--jt-accent-1));
}

.jt-changelog__head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 5px;
	flex-wrap: wrap;
}

.jt-changelog__version {
	font-size: 15px;
	font-weight: 700;
	color: var(--jt-text);
}

.jt-changelog__date {
	font-size: 12.5px;
	color: var(--jt-muted);
}

.jt-changelog__desc {
	font-size: 14px;
	line-height: 1.55;
	color: var(--jt-muted);
}

.jt-changelog__desc p {
	margin: 0 0 8px;
}

.jt-changelog__desc p:last-child {
	margin-bottom: 0;
}

/* ---- Sticky sidebar ---------------------------------------------------- */

.jt-sidebar {
	display: flex;
	flex-direction: column;
	gap: 18px;
	position: sticky;
	top: 24px;
}

/* ---- Sidebar box (általános) ------------------------------------------- */

.jt-box {
	border-radius: 18px;
	padding: 24px;
	background: var(--jt-card-bg);
	border: 1px solid rgba(255, 255, 255, 0.07);
}

.jt-box__label {
	font-size: 13px;
	font-weight: 700;
	color: var(--jt-accent-1);
	letter-spacing: 1.5px;
	margin-bottom: 16px;
}

/* ---- Részletek box ----------------------------------------------------- */

.jt-details__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 11px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	gap: 10px;
}

.jt-details__row:last-child {
	border-bottom: none;
}

.jt-details__label {
	font-size: 13.5px;
	color: var(--jt-muted);
}

.jt-details__value {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--jt-text);
	text-align: right;
}

.jt-details__value.is-sarga { color: var(--jt-accent-1); }
.jt-details__value.is-zold  { color: var(--jt-ready); }
.jt-details__value.is-szurke { color: var(--jt-muted); }

/* ---- Kompatibilitás box ------------------------------------------------ */

.jt-compat {
	background: linear-gradient(160deg, rgba(34, 197, 94, 0.1), rgba(20, 29, 43, 0.5));
	border: 1px solid rgba(34, 197, 94, 0.25);
}

.jt-compat__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.jt-compat__title {
	font-size: 16px;
	font-weight: 700;
}

.jt-compat__version {
	font-size: 14.5px;
	font-weight: 600;
	color: var(--jt-text);
	margin-bottom: 14px;
}

.jt-compat__info {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 10px;
	background: rgba(59, 130, 246, 0.1);
	border: 1px solid rgba(59, 130, 246, 0.25);
	font-size: 13px;
	color: var(--jt-muted);
}

.jt-compat__info-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--jt-progress);
	flex-shrink: 0;
}

/* ---- „Találtál hibát?" box --------------------------------------------- */

.jt-bug__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.jt-bug__title {
	font-size: 16px;
	font-weight: 700;
}

.jt-bug__text {
	font-size: 13.5px;
	line-height: 1.55;
	color: var(--jt-muted);
	margin: 0 0 16px;
}

.jt-bug__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	border-radius: 11px;
	border: 1px solid rgba(246, 185, 59, 0.4);
	font-weight: 700;
	font-size: 14px;
	font-family: inherit;
	background: rgba(255, 122, 24, 0.14);
	color: var(--jt-accent-1);
	text-decoration: none;
	margin-bottom: 10px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.jt-bug__btn:hover {
	background: rgba(255, 122, 24, 0.22);
	transform: translateY(-1px);
}

.jt-bug__discord {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--jt-text);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
}

.jt-bug__discord:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
}

/* ---- Hasonló magyarítások ---------------------------------------------- */

.jt-related {
	margin-top: 80px;
	margin-bottom: 85px;
}

.jt-related__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}

.jt-related__card {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	background: var(--jt-card-bg);
	border: 1px solid rgba(255, 255, 255, 0.07);
	text-decoration: none;
	color: inherit;
	transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.jt-related__card:hover {
	transform: translateY(-6px);
	border-color: rgba(255, 122, 24, 0.4);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.jt-related__media {
	position: relative;
	height: 120px;
	overflow: hidden;
	background: linear-gradient(135deg, #1a2434, #0e1623);
}

.jt-related__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.jt-related__placeholder {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.04), transparent 50%),
		linear-gradient(135deg, #1a2434, #0e1623);
}

.jt-related__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(transparent 40%, rgba(20, 29, 43, 0.95) 100%);
}

.jt-related__body {
	padding: 15px;
}

.jt-related__title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--jt-text);
}

.jt-related__status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	font-weight: 600;
}

.jt-related__status-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
}

.jt-related__status.is-kesz {
	color: var(--jt-ready);
}

.jt-related__status.is-kesz .jt-related__status-dot {
	background: var(--jt-ready);
}

.jt-related__status.is-folyamatban {
	color: var(--jt-progress);
}

.jt-related__status.is-folyamatban .jt-related__status-dot {
	background: var(--jt-progress);
}

/* ---- Reszponzivitás ---------------------------------------------------- */

@media (max-width: 1024px) {
	.jt-related__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 900px) {
	.jt-section {
		margin-top: 50px;
	}
	.jt-section__grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	/* Mobil: a sidebar már nem sticky */
	.jt-sidebar {
		position: static;
	}
}

@media (max-width: 768px) {
	.jt-related__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
	.jt-section__title {
		font-size: 22px;
	}
}

@media (max-width: 560px) {
	.jt-related__grid {
		grid-template-columns: 1fr;
	}
	.jt-box {
		padding: 20px;
	}
}

/* ---- Reduced motion ---------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.jt-related__card,
	.jt-bug__btn,
	.jt-bug__discord {
		transition: none;
	}
	.jt-related__card:hover {
		transform: none;
	}
}
