/* ==========================================================================
   TITULKA — nový dizajn („Sidequest Homepage“)

   Sekcie sú v inc/blocks/home.php. Rozmery podľa návrhu: kontajner 1280,
   medzera medzi sekciami 72, hlavný článok 1fr + 420 stĺpec.
   ========================================================================== */

body.home {
	background-color: var(--sq-bg);
	background-image:
		radial-gradient(62% 38% at 80% -4%, rgba(139, 92, 255, 0.22) 0%, transparent 70%),
		radial-gradient(46% 26% at 6% 26%, rgba(204, 255, 51, 0.05) 0%, transparent 70%),
		radial-gradient(52% 30% at 92% 62%, rgba(139, 92, 255, 0.12) 0%, transparent 72%);
	background-repeat: no-repeat;
}

.home main > .sq-container + .sq-container,
.home .sq-hsection {
	margin-top: 72px;
}

.home .sq-htop {
	margin-top: 40px;
}

/* ---- Lišta rubrík a trendov -------------------------------------------- */

.sq-htopics {
	background: linear-gradient(100deg, rgba(28, 18, 54, 0.55) 0%, rgba(14, 16, 19, 0.6) 52%, rgba(8, 9, 11, 0.6) 100%);
	border-bottom: 1px solid var(--sq-border);
}

.sq-htopics__inner {
	display: flex;
	align-items: center;
	gap: 26px;
	height: 46px;
	overflow-x: auto;
	scrollbar-width: none;
	white-space: nowrap;
	font-family: var(--sq-font-display);
	font-size: 13px;
	font-weight: var(--sq-weight-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sq-htopics__inner::-webkit-scrollbar {
	display: none;
}

.sq-htopics__link {
	color: var(--sq-text-body);
}

.sq-htopics__link:hover {
	color: var(--sq-accent);
}

.sq-htopics__link.is-current {
	padding: 5px 11px;
	font-weight: var(--sq-weight-bold);
	color: var(--sq-accent-ink);
	background: var(--sq-accent);
	border-radius: 3px;
}

.sq-htopics__trends {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-left: auto;
	font-size: 12px;
	letter-spacing: 0.08em;
}

.sq-htopics__label {
	color: var(--sq-text-tertiary);
}

.sq-htopics__trend {
	padding: 5px 10px;
	color: var(--sq-personal-text);
	background: var(--sq-personal-soft);
	border: 1px solid var(--sq-personal-line);
	border-radius: var(--sq-radius-pill);
}

.sq-htopics__trend:hover {
	color: var(--sq-text);
}

/* ---- Hlavný článok ----------------------------------------------------- */

.sq-htop {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 420px;
	gap: 32px;
	align-items: stretch;
}

/* Stĺpec určuje výšku riadku, hlavný článok sa natiahne na rovnakú výšku. */
.sq-hlead {
	height: 100%;
}

.sq-hlead {
	position: relative;
	min-height: 520px;
	overflow: hidden;
	background: var(--sq-surface);
	border-radius: 6px;
}

.sq-hlead__media,
.sq-hlead__media .sq-media {
	position: absolute;
	inset: 0;
	display: block;
	aspect-ratio: auto;
	border-radius: 0;
}

.sq-hlead__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sq-hlead::before,
.sq-hlead::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.sq-hlead::before {
	/* Tmavší spodok — dátum a štítky musia byť čitateľné na akejkoľvek fotke. */
	background: linear-gradient(to top, rgba(8, 9, 11, 0.97) 0%, rgba(10, 8, 20, 0.86) 30%, rgba(8, 9, 11, 0.35) 58%, transparent 80%);
}

.sq-hlead::after {
	background: radial-gradient(58% 42% at 12% 104%, rgba(139, 92, 255, 0.42) 0%, transparent 68%);
}

.sq-hlead__body {
	position: absolute;
	left: 40px;
	right: 40px;
	bottom: 36px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.sq-hlead__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 12px;
	font-weight: var(--sq-weight-semibold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sq-text-body);
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.sq-hlabel {
	padding: 5px 10px;
	font-weight: var(--sq-weight-bold);
	letter-spacing: 0.14em;
	color: var(--sq-accent-ink);
	background: var(--sq-accent);
	border-radius: 3px;
}

.sq-hlabel--live {
	color: #fff;
	background: var(--sq-live);
}

.sq-hlead__title {
	max-width: 760px;
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 46px;
	font-weight: var(--sq-weight-bold);
	line-height: 1.06;
	letter-spacing: -0.03em;
	text-wrap: pretty;
}

.sq-hlead__title a {
	color: #fff;
}

.sq-hlead__title a:hover {
	color: var(--sq-accent);
}

.sq-hlead__excerpt {
	max-width: 640px;
	margin: 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--sq-text-body);
}

.sq-hlead__follow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	padding-top: 6px;
}

/* Tlačidlo sledovania nesie názov hry — ako v návrhu jeden fialový pill. */
.sq-hlead__follow .sq-hfollow {
	height: 36px;
	padding: 0 14px;
	font-size: 13px;
	font-weight: var(--sq-weight-semibold);
	color: var(--sq-personal-text);
	background: rgba(139, 92, 255, 0.14);
	border: 1px solid rgba(139, 92, 255, 0.5);
	border-radius: var(--sq-radius-pill);
}

.sq-hlead__game {
	font-size: 13px;
	font-weight: var(--sq-weight-semibold);
	color: var(--sq-personal-text);
}

.sq-hlead__hint {
	font-size: 12px;
	color: var(--sq-text-tertiary);
}

/* ---- Ďalšie správy ----------------------------------------------------- */

.sq-hside {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sq-hside__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--sq-border);
}

.sq-hside__title,
.sq-hmost__title {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 14px;
	font-weight: var(--sq-weight-bold);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sq-text);
}

.sq-hside__link {
	font-size: 12px;
	color: var(--sq-text-secondary);
}

.sq-hstory {
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	margin: -12px;
	padding: 12px;
	border-radius: 6px;
	transition: background-color var(--sq-duration) var(--sq-ease);
}

.sq-hstory:hover {
	background: var(--sq-surface);
}

.sq-hstory__media .sq-media {
	width: 116px;
	height: 66px;
	aspect-ratio: auto;
	border-radius: 4px;
}

.sq-hstory__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sq-hstory__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sq-hstory__meta {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 11px;
	font-weight: var(--sq-weight-bold);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sq-accent);
}

.sq-hstory__title {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 17px;
	font-weight: var(--sq-weight-semibold);
	line-height: 1.22;
	letter-spacing: -0.015em;
}

.sq-hstory__title a,
.sq-hcard__title a,
.sq-hnews__title a,
.sq-hmost__name a,
.sq-hupcoming__game a {
	color: var(--sq-text);
}

.sq-hstory__title a:hover,
.sq-hcard__title a:hover,
.sq-hnews__title a:hover,
.sq-hmost__name a:hover,
.sq-hupcoming__game a:hover {
	color: var(--sq-accent);
}

.sq-hfeedcta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: auto;
	padding: 22px 24px;
	background: linear-gradient(125deg, #1c1236 0%, #100c1c 60%, #0a0b0f 100%);
	border: 1px solid rgba(139, 92, 255, 0.35);
	border-radius: 6px;
}

.sq-hfeedcta__title {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 20px;
	font-weight: var(--sq-weight-bold);
	letter-spacing: -0.015em;
}

.sq-hfeedcta__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--sq-personal-text);
}

.sq-hbtn {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	height: 36px;
	padding: 0 18px;
	font-family: var(--sq-font-display);
	font-size: 13px;
	font-weight: var(--sq-weight-bold);
	color: var(--sq-accent-ink);
	background: var(--sq-accent);
	border: 0;
	border-radius: var(--sq-radius-pill);
	cursor: pointer;
}

.sq-hbtn:hover {
	color: var(--sq-accent-ink);
	background: var(--sq-accent-hover);
}

.sq-hbtn--ghost {
	height: 44px;
	padding: 0 28px;
	font-size: 14px;
	font-weight: var(--sq-weight-semibold);
	color: var(--sq-text);
	background: transparent;
	border: 1px solid var(--sq-border-strong);
}

.sq-hbtn--ghost:hover {
	color: var(--sq-text);
	background: var(--sq-surface);
}

/* ---- Hlavička sekcie --------------------------------------------------- */

.sq-hhead {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 22px;
}

.sq-hhead__title {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 26px;
	font-weight: var(--sq-weight-bold);
	letter-spacing: -0.015em;
}

.sq-hhead__line {
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(204, 255, 51, 0.55) 0%, rgba(139, 92, 255, 0.4) 38%, rgba(255, 255, 255, 0.06) 100%);
}

.sq-hhead__link {
	font-size: 13px;
	color: var(--sq-text-secondary);
}

/* ---- Najnovšie --------------------------------------------------------- */

.sq-hgrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.sq-hcard {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.sq-hcard__media {
	position: relative;
	margin-bottom: 6px;
	overflow: hidden;
	background: var(--sq-surface);
	border-radius: 6px;
}

.sq-hcard__media .sq-media {
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.sq-hcard__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--sq-duration-slow) var(--sq-ease);
}

.sq-hcard:hover .sq-hcard__media img {
	transform: scale(1.03);
}

.sq-hcard__label {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 5px 9px;
	font-family: var(--sq-font-display);
	font-size: 11px;
	font-weight: var(--sq-weight-bold);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sq-accent);
	background: rgba(8, 9, 11, 0.82);
	border-radius: 3px;
}

.sq-hcard .sq-hcard__follow {
	position: absolute;
	right: 12px;
	top: 12px;
	width: 30px;
	height: 30px;
	color: var(--sq-text);
	background: rgba(8, 9, 11, 0.82);
	border: 0;
	border-radius: 50%;
}

.sq-hcard__meta {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sq-text-tertiary);
}

.sq-hcard__title {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 21px;
	font-weight: var(--sq-weight-semibold);
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.sq-hcard__excerpt,
.sq-hnews__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--sq-text-secondary);
}

.sq-hcard__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-top: 4px;
}

.sq-hchip {
	padding: 4px 8px;
	font-family: var(--sq-font-display);
	font-size: 11px;
	font-weight: var(--sq-weight-semibold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--sq-personal-text);
	background: var(--sq-personal-soft);
	border: 1px solid var(--sq-personal-line);
	border-radius: 3px;
}

.sq-hchip:hover {
	color: var(--sq-text);
}

.sq-hcard__comments {
	margin-left: auto;
	font-size: 12px;
	color: var(--sq-text-secondary);
}

/* ---- Blíži sa ---------------------------------------------------------- */

.sq-hupcoming {
	display: flex;
	flex-direction: column;
	gap: 26px;
	padding: 36px 40px;
	background: linear-gradient(118deg, #14170f 0%, #0e1013 46%, #0a0b0f 100%);
	border: 1px solid rgba(204, 255, 51, 0.18);
	border-radius: 8px;
}

.sq-hupcoming__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
}

.sq-hupcoming__title {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 22px;
	font-weight: var(--sq-weight-bold);
	letter-spacing: -0.015em;
}

.sq-hupcoming__sub {
	font-size: 13px;
	color: var(--sq-text-tertiary);
}

.sq-hupcoming__link {
	margin-left: auto;
	font-size: 13px;
	color: var(--sq-accent);
}

.sq-hupcoming__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	background: var(--sq-border);
}

.sq-hupcoming__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px;
	background: #0b0d0f;
}

.sq-hupcoming__date {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 34px;
	font-weight: var(--sq-weight-bold);
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--sq-accent);
}

.sq-hupcoming__game {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 18px;
	font-weight: var(--sq-weight-semibold);
	line-height: 1.25;
}

.sq-hupcoming__note {
	margin: 0;
	font-size: 13px;
	color: var(--sq-text-secondary);
}

/* ---- Ďalšie novinky + pravý stĺpec ------------------------------------- */

.sq-hnewslayout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	gap: 44px;
	align-items: start;
	margin-bottom: 80px;
}

.sq-hnewslayout--wide {
	grid-template-columns: minmax(0, 1fr);
}

.sq-hnewslayout .sq-hhead {
	margin-bottom: 28px;
}

.sq-hnewslist {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.sq-hnews {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--sq-border);
}

.sq-hnews__media .sq-media {
	aspect-ratio: 16 / 9;
	border-radius: 6px;
}

.sq-hnews__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sq-hnews__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sq-hnews__meta {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 11px;
	font-weight: var(--sq-weight-bold);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sq-accent);
}

.sq-hnews__title {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 24px;
	font-weight: var(--sq-weight-semibold);
	line-height: 1.18;
	letter-spacing: -0.02em;
}

.sq-hnewslist__more {
	display: flex;
	justify-content: center;
	margin: 28px 0 0;
}

.sq-haside {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.sq-hmost {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.sq-hmost__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sq-hmost__item {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 12px;
	align-items: start;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--sq-border);
}

.sq-hmost__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.sq-hmost__num {
	font-family: var(--sq-font-display);
	font-size: 24px;
	font-weight: var(--sq-weight-bold);
	line-height: 1;
	color: var(--sq-personal);
}

.sq-hmost__name {
	margin: 0;
	font-family: var(--sq-font-display);
	font-size: 16px;
	font-weight: var(--sq-weight-semibold);
	line-height: 1.25;
}

/* Anketa v stĺpci — kompaktná karta namiesto širokej sekcie. */
.sq-haside .sq-section {
	padding: 0;
}

.sq-haside .sq-section > .sq-container {
	max-width: none;
	padding: 0;
}

.sq-haside .sq-poll {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	padding: 24px;
	background: #0b0d0f;
	border: 1px solid var(--sq-border);
	border-radius: 6px;
}

.sq-haside .sq-poll__intro {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sq-haside .sq-poll__question {
	font-size: 20px;
	line-height: 1.2;
}

.sq-haside .sq-poll__options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.sq-haside .sq-poll__option {
	width: 100%;
	min-height: 44px;
	border-radius: 4px;
}

.sq-haside .sq-rail {
	margin: 0;
}

/* ---- Tablet a mobil ---------------------------------------------------- */

@media (max-width: 1023px) {
	.sq-htop,
	.sq-hnewslayout {
		grid-template-columns: minmax(0, 1fr);
	}

	.sq-hgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Päť dátumov sa pod sebou nezmestí — posúvajú sa do strany. */
	.sq-hupcoming__grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(210px, 42%);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.sq-hupcoming__item {
		scroll-snap-align: start;
	}

	.sq-haside {
		position: static;
	}

	.sq-hlead__title {
		font-size: 36px;
	}

	.sq-htopics__trends {
		margin-left: 12px;
	}
}

@media (max-width: 767px) {
	.home main > .sq-container + .sq-container,
	.home .sq-hsection {
		margin-top: 48px;
	}

	.home .sq-htop {
		margin-top: 20px;
	}

	.sq-hlead {
		min-height: 440px;
	}

	.sq-hlead__body {
		left: 20px;
		right: 20px;
		bottom: 22px;
		gap: 12px;
	}

	.sq-hlead__title {
		font-size: 28px;
	}

	.sq-hlead__excerpt {
		font-size: 16px;
	}

	.sq-hlead__hint {
		display: none;
	}

	.sq-hgrid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sq-hupcoming__grid {
		grid-auto-columns: 72%;
	}

	.sq-hupcoming {
		padding: 24px 20px;
	}

	.sq-hupcoming__link {
		margin-left: 0;
	}

	.sq-hnews {
		grid-template-columns: 120px minmax(0, 1fr);
		gap: 14px;
		padding-bottom: 20px;
	}

	.sq-hnews__title {
		font-size: 17px;
	}

	.sq-hnews__excerpt,
	.sq-hnews .sq-hcard__foot {
		display: none;
	}

	.sq-hhead__title {
		font-size: 22px;
	}
}
