/* Hrejcesky – detail hry. Načítá se jen na stránce hry. */

/* ---------- Hero ---------- */

.hc-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: #2a2f3d;
	color: #fff;
}

.hc-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Ztmavení fotky, aby byl bílý text čitelný na jakémkoli obrázku. */
.hc-hero__bg + .hc-hero__inner::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(14, 17, 22, 0.62), rgba(14, 17, 22, 0.86));
}

.hc-hero__inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	min-height: 340px;
	padding-block: 24px 40px;
}

.hc-hero__inner::before {
	pointer-events: none;
}

.hc-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
	color: #c3c8d4;
	font-size: 14px;
}

.hc-breadcrumb li + li::before {
	content: "›";
	margin-inline-end: 8px;
}

.hc-breadcrumb a {
	color: #e1e5ee;
	text-decoration: none;
}

.hc-breadcrumb a:hover {
	color: #fff;
	text-decoration: underline;
}

.hc-hero__main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 28px;
}

.hc-hero__cover {
	flex: 0 0 auto;
	width: 150px;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	background: #3a4256;
}

.hc-hero__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hc-hero__text {
	display: flex;
	flex: 1 1 400px;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.hc-hero__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hc-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(30px, 4.5vw, 48px);
	line-height: 1.1;
}

.hc-hero__meta {
	margin: 0;
	color: #c3c8d4;
	font-size: 15px;
}

/* ---------- Rozvržení ---------- */

.hc-game__body {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-block: 40px 72px;
}

.hc-detail {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	align-items: start;
	gap: 40px;
}

.hc-detail__content {
	display: flex;
	flex-direction: column;
	gap: 40px;
	min-width: 0;
}

.hc-detail__aside {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.hc-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hc-section > *,
.hc-section__head > * {
	margin: 0;
}

.hc-section h2,
.hc-section__head h2 {
	font-size: 26px;
}

.hc-section h3 {
	margin-top: 8px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 600;
}

.hc-section > p,
.hc-prose {
	color: var(--hc-text-soft);
	font-size: 17px;
	line-height: 1.6;
}

.hc-section--authors > p {
	font-size: 16px;
}

.hc-prose > :first-child {
	margin-top: 0;
}

.hc-prose > :last-child {
	margin-bottom: 0;
}

.hc-prose a,
.hc-steps a {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.hc-section__head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hc-section__head p {
	color: var(--wp--preset--color--text-muted);
}

/* ---------- Boxy ---------- */

.hc-box {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 16px;
	background: var(--wp--preset--color--surface);
}

.hc-box > * {
	margin: 0;
}

.hc-box__title {
	font-size: 20px;
}

.hc-box__heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.5;
}

.hc-box__note {
	margin: 0;
	color: var(--wp--preset--color--text-muted);
	font-size: 13px;
	text-align: center;
}

.hc-box__note--left {
	text-align: left;
}

.hc-download {
	gap: 18px;
	padding: 24px;
}

.hc-download__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 12px;
}

.hc-downloads {
	color: var(--wp--preset--color--text-muted);
	font-size: 14px;
	white-space: nowrap;
}

.hc-downloads strong {
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--heading);
}

.hc-downloads--stacked {
	font-size: 13px;
	line-height: 1.35;
}

.hc-params {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 16px;
	margin: 0;
	font-size: 15px;
}

.hc-params dt {
	color: var(--wp--preset--color--text-muted);
}

.hc-params dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* ---------- Tlačítka a vstupy ---------- */

.hc-button--download .hc-icon {
	flex: 0 0 auto;
	stroke-width: 2.2;
}

.hc-button--lg {
	min-height: 56px;
	border-radius: 12px;
	font-size: 17px;
}

.hc-button--secondary {
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--text);
}

.hc-button--secondary:hover {
	color: var(--wp--preset--color--text);
}

.hc-button--ghost {
	min-height: 48px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: transparent;
	color: var(--wp--preset--color--text-muted);
	font-size: 15px;
	font-weight: 400;
}

.hc-button--ghost:hover {
	border-color: var(--wp--preset--color--text-muted);
	color: var(--wp--preset--color--text);
	filter: none;
}

.hc-button--compact {
	padding-inline: 18px;
	font-size: 15px;
}

.hc-input {
	min-width: 0;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--bg);
	color: var(--wp--preset--color--text);
	font: inherit;
	font-size: 15px;
}

.hc-input::placeholder {
	color: var(--wp--preset--color--text-muted);
	opacity: 1;
}

.hc-input--price {
	width: 84px;
	height: 36px;
}

.hc-label {
	color: var(--wp--preset--color--text-muted);
	font-size: 13px;
}

.hc-checkbox {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	min-height: 36px;
	font-size: 14px;
}

.hc-checkbox input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--wp--preset--color--link);
}

/* ---------- Karty češtin (více češtin) ---------- */

.hc-translations {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hc-translations__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}

.hc-translation {
	gap: 16px;
	padding: 22px;
}

.hc-translation--featured {
	border: 2px solid var(--wp--preset--color--accent);
	padding: 21px;
}

.hc-translation__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.hc-translation__author {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.hc-translation__label {
	display: block;
	color: var(--wp--preset--color--text-muted);
	font-size: 13px;
}

.hc-translation__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}

.hc-translation__name a {
	color: var(--wp--preset--color--text);
}

.hc-translation__action {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: auto;
}

.hc-translation__action .hc-button {
	flex: 1 1 auto;
	min-height: 52px;
	border-radius: 12px;
}

/* ---------- Překladatel ---------- */

.hc-translator {
	flex-direction: row;
	align-items: center;
	gap: 14px;
}

.hc-translator__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.hc-translator__name {
	color: var(--wp--preset--color--text);
	font-weight: 600;
}

.hc-translator__meta {
	color: var(--wp--preset--color--text-muted);
	font-size: 13px;
}

/* ---------- Kde koupit ---------- */

.hc-shops {
	gap: 10px;
}

.hc-shops__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hc-shop {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.hc-shop:hover {
	border-color: var(--wp--preset--color--text-muted);
	color: var(--wp--preset--color--text);
	text-decoration: none;
}

.hc-shop--cheapest,
.hc-shop--cheapest:hover {
	border-color: var(--wp--preset--color--success);
}

.hc-shop__name {
	display: flex;
	flex-direction: column;
	font-weight: 600;
}

.hc-shop__flag {
	color: var(--hc-success-text);
	font-size: 12px;
	font-weight: 400;
}

.hc-shop__price {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	white-space: nowrap;
}

.hc-shop__price .hc-deal__badge {
	padding: 2px 7px;
	font-size: 13px;
}

/* ---------- Hlídací pes ---------- */

.hc-watchdog__title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.hc-watchdog__title .hc-icon {
	color: var(--wp--preset--color--accent);
}

.hc-watchdog__text {
	color: var(--hc-text-soft);
	font-size: 14px;
}

.hc-watchdog__options {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hc-watchdog .hc-label {
	margin-bottom: -6px;
}

.hc-watchdog__row {
	display: flex;
	gap: 8px;
}

.hc-watchdog__row .hc-input {
	flex: 1 1 auto;
}

.hc-watchdog__row .hc-button {
	padding-inline: 16px;
}

.hc-watchdog__status {
	padding: 10px 12px;
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--surface-2);
	font-size: 14px;
}

.hc-follow {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	font-size: 14px;
}

.hc-follow .hc-social-link {
	justify-content: center;
}

/* ---------- Instalace ---------- */

.hc-steps {
	color: var(--hc-text-soft);
}

.hc-steps > :first-child {
	margin-top: 0;
}

.hc-steps > :last-child {
	margin-bottom: 0;
}

.hc-steps ol {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: hc-step;
}

.hc-steps ol > li {
	position: relative;
	min-height: 32px;
	padding: 4px 0 0 48px;
	counter-increment: hc-step;
}

.hc-steps ol > li::before {
	content: counter(hc-step);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: var(--wp--preset--color--surface-2);
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
}

.hc-notice {
	display: flex;
	gap: 12px;
	margin-top: 4px;
	padding: 16px 18px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
}

.hc-notice__icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin-top: 2px;
	color: var(--wp--preset--color--warning);
}

.hc-notice p {
	margin: 2px 0 0;
	color: var(--hc-text-soft);
}

.hc-tabs {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hc-tabs__list {
	display: flex;
	flex-wrap: wrap;
	align-self: flex-start;
	gap: 4px;
	padding: 4px;
	border-radius: 12px;
	background: var(--wp--preset--color--surface-2);
}

.hc-tabs__tab {
	height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--wp--preset--color--text-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.hc-tabs__tab[aria-selected="true"] {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--text);
}

.hc-tabs__panel[hidden] {
	display: none;
}

/* ---------- Galerie ---------- */

.hc-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 12px;
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.hc-gallery a {
	display: block;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--button);
	background: var(--wp--preset--color--surface-2);
}

.hc-gallery img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ---------- FAQ ---------- */

.hc-faq {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 12px;
	background: var(--wp--preset--color--surface);
}

.hc-faq__item {
	padding: 16px 20px;
}

.hc-faq__item + .hc-faq__item {
	border-top: 1px solid var(--wp--preset--color--border);
}

.hc-faq__item summary {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}

.hc-faq__item summary::-webkit-details-marker {
	display: none;
}

.hc-faq__item summary::after {
	content: "+";
	flex: 0 0 auto;
	color: var(--wp--preset--color--text-muted);
	font-weight: 400;
}

.hc-faq__item[open] summary::after {
	content: "−";
}

.hc-faq__item p {
	margin: 4px 0 0;
	color: var(--hc-text-soft);
}

/* ---------- Přilepená lišta ke stažení (mobil) ---------- */

.hc-sticky-download {
	display: none;
}

/* ---------- Mobil a tablet ---------- */

@media (max-width: 899px) {
	.hc-game__body {
		gap: 28px;
		padding-block: 20px 40px;
	}

	/* Jeden sloupec: box ke stažení první, nákup a hlídání až za obsahem. */
	.hc-detail {
		display: flex;
		flex-direction: column;
		/* Roztažení na šířku stránky, jinak by řádek screenshotů roztáhl celou stránku do strany. */
		align-items: stretch;
		gap: 28px;
	}

	.hc-detail .hc-section,
	.hc-detail .hc-box {
		min-width: 0;
	}

	.hc-detail__content,
	.hc-detail__aside {
		display: contents;
	}

	.hc-detail .hc-download {
		order: 1;
	}

	.hc-detail .hc-translator {
		order: 2;
	}

	.hc-detail .hc-section {
		order: 3;
	}

	.hc-detail .hc-shops {
		order: 4;
	}

	.hc-detail .hc-watchdog {
		order: 5;
	}

	.hc-detail .hc-section--faq,
	.hc-detail .hc-section--authors,
	.hc-detail .hc-section--games {
		order: 6;
	}

	.hc-detail .hc-report,
	.hc-detail .hc-follow {
		order: 7;
	}

	.hc-sticky-download {
		position: sticky;
		bottom: 0;
		z-index: 10;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 16px 16px;
		border-top: 1px solid var(--wp--preset--color--border);
		background: var(--wp--preset--color--bg);
	}

	.hc-sticky-download__text {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		min-width: 0;
		font-size: 14px;
	}

	.hc-sticky-download__text strong {
		overflow: hidden;
		font-weight: 600;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.hc-sticky-download .hc-downloads {
		font-size: 12px;
	}

	.hc-sticky-download .hc-downloads strong {
		color: inherit;
		font-family: inherit;
		font-weight: 400;
	}
}

@media (max-width: 599px) {
	.hc-hero__inner {
		gap: 16px;
		min-height: 0;
		padding-block: 16px 24px;
	}

	.hc-breadcrumb ol {
		gap: 6px;
		font-size: 13px;
	}

	.hc-breadcrumb li + li::before {
		margin-inline-end: 6px;
	}

	/* Na mobilu drobečky začínají až Češtinami, jako v návrhu. */
	.hc-breadcrumb li:first-child {
		display: none;
	}

	.hc-breadcrumb li:nth-child(2)::before {
		content: none;
	}

	.hc-hero__main {
		flex-wrap: nowrap;
		gap: 16px;
	}

	.hc-hero__cover {
		width: 96px;
		border-radius: 10px;
	}

	.hc-hero__text {
		flex: 1 1 auto;
		gap: 8px;
	}

	.hc-hero__title {
		font-size: 26px;
		line-height: 1.15;
	}

	.hc-hero__meta {
		font-size: 13px;
	}

	.hc-hero .hc-pill {
		padding: 4px 10px;
		font-size: 12px;
	}

	.hc-section h2,
	.hc-section__head h2 {
		font-size: 22px;
	}

	.hc-section > p,
	.hc-prose {
		font-size: 16px;
	}

	.hc-download {
		gap: 14px;
		padding: 18px;
	}

	.hc-box__title {
		font-size: 19px;
	}

	.hc-params {
		gap: 6px 14px;
		font-size: 14px;
	}

	.hc-box,
	.hc-translation {
		padding: 16px;
	}

	.hc-translation--featured {
		padding: 15px;
	}

	.hc-translations__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.hc-tabs__list {
		align-self: stretch;
	}

	.hc-tabs__tab {
		flex: 1 1 0;
	}

	.hc-watchdog__row {
		flex-direction: column;
	}

	.hc-watchdog .hc-input:not(.hc-input--price),
	.hc-watchdog__row .hc-button {
		height: 48px;
		font-size: 16px;
	}

	/* Screenshoty v posuvném řádku. */
	.hc-gallery {
		display: flex;
		gap: 10px;
		margin-inline: calc(-1 * var(--wp--preset--spacing--40));
		padding-inline: var(--wp--preset--spacing--40);
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: thin;
	}

	.hc-gallery li {
		flex: 0 0 260px;
		scroll-snap-align: start;
	}

	.hc-faq__item {
		padding: 14px 16px;
	}

	.hc-faq__item summary {
		font-size: 15px;
	}
}
