/* ==========================================================================
   CrewLeak v2 – style główne
   1. Czcionki  2. Zmienne  3. Baza  4. Układ  5. Przyciski
   6. Nagłówek  7. Pasek przewijany  8. Stopka  9. Ruch ograniczony
   Breakpointy: telefon do 767 px, tablet 768–1099 px, komputer od 1100 px.
   ========================================================================== */

/* 1. Czcionki (lokalne woff2, podzbiory latin + latin-ext dla polskich znaków) */

@font-face {
	font-family: "Archivo Black";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/archivo-black-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Archivo Black";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/archivo-black-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Space Grotesk to czcionka zmienna: jeden plik obsługuje wagi 400/500/700. */
@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/space-grotesk-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Space Grotesk";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/space-mono-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/space-mono-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/space-mono-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "Space Mono";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/space-mono-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 2. Zmienne */

:root {
	/* Tła i powierzchnie */
	--bg: #0a0a0a;
	--surface-1: #111111;
	--surface-2: #141414;
	--surface-3: #121212;

	/* Obramowania neutralne */
	--line: #2e2e2e;
	--line-soft: #262626;
	--line-strong: #4a4a4a;

	/* Tekst */
	--text: #f2ede1;
	--text-post: #ddd6c8;
	--text-2: #c9c2b3;
	--text-3: #9a9488; /* minimum dla małego tekstu */
	--text-sep: #6a6a6a; /* separatory dekoracyjne */

	/* Akcenty */
	--teal: #2dd4bf;
	--purple: #a855f7;
	--purple-light: #c084fc;
	--brand-gradient: linear-gradient(90deg, #2dd4bf, #a855f7);

	/* Stream */
	--live: #ff3d1a;
	--live-text: #ff5a3c;
	--amber: #fbbc04;
	--offline-dot: #6a6a6a;
	--offline-text: #9a9488;

	/* Platformy */
	--yt: #ff0033;
	--yt-text: #ff3355;
	--ig-gradient: linear-gradient(135deg, #ffdc80, #fd1d1d, #e1306c, #c13584, #833ab4);
	--tt-cyan: #25f4ee;
	--tt-red: #fe2c55;
	--tw: #9146ff;
	--tw-text: #a970ff;
	--dc: #5865f2;
	--dc-text: #8891f7;

	/* Czcionki */
	--font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
	--font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-mono: "Space Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

	/* Układ */
	--container: 1280px;
	--gutter: 20px;
	--header-h: 64px;
	--marquee-h: 44px;
	--tap: 44px;
}

@media (min-width: 768px) {
	:root {
		--gutter: 40px;
		--header-h: 72px;
		--marquee-h: 44px;
	}
}

@media (min-width: 1100px) {
	:root {
		--gutter: 80px;
		--header-h: 88px;
	}
}

/* 3. Baza */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	min-height: 100vh;
	margin: 0;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(ellipse 900px 520px at 10% 0, rgba(45, 212, 191, 0.13), transparent 60%),
		radial-gradient(ellipse 820px 520px at 95% 8%, rgba(168, 85, 247, 0.14), transparent 55%),
		var(--bg);
	background-repeat: no-repeat;
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.05;
	text-transform: uppercase;
}

p {
	margin: 0 0 1em;
}

a {
	color: inherit;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font: inherit;
}

:focus-visible {
	outline: 3px solid var(--teal);
	outline-offset: 3px;
}

::selection {
	background: var(--teal);
	color: var(--bg);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 100;
	padding: 14px 20px;
	background: var(--text);
	color: var(--bg);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	transform: translateY(-120%);
}

.skip-link:focus {
	transform: translateY(0);
}

/* 4. Układ */

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.site-main {
	flex: 1 0 auto;
}

.section {
	padding-block: 40px;
}

@media (min-width: 1100px) {
	.section {
		padding-block: 72px;
	}
}

/* Szablon awaryjny index.php */
.stub-entry {
	margin-bottom: 32px;
}

.stub-entry__title {
	font-size: 26px;
}

.stub-entry__title a {
	text-decoration: none;
}

.stub-entry__title a:hover {
	color: var(--teal);
}

/* 5. Przyciski */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	min-height: var(--tap);
	padding: 12px 20px;
	border: 2px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--text);
	font-family: var(--font-mono);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.btn--primary {
	background: var(--brand-gradient);
	color: var(--bg);
}

.btn--primary:hover {
	box-shadow: 0 0 24px rgba(45, 212, 191, 0.5), 0 0 36px rgba(168, 85, 247, 0.35);
}

.btn--secondary {
	border-color: var(--teal);
	color: var(--text);
}

.btn--secondary:hover {
	box-shadow: 0 0 18px rgba(45, 212, 191, 0.45);
}

/* 6. Nagłówek */

.site-header {
	border-bottom: 2px solid var(--text);
}

/* Telefon i tablet: logo + hamburger w jednym rzędzie, menu rozwija się pod spodem. */
.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.logo {
	display: flex;
	flex: 1;
	align-items: center;
	min-height: var(--header-h);
	font-family: var(--font-display);
	font-size: 20px;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--text);
}

.logo__leak {
	margin-left: 1px;
	padding: 1px 5px;
	background: var(--brand-gradient);
	color: var(--bg);
}

@media (min-width: 1100px) {
	.logo {
		flex: 0 0 auto;
		font-size: 24px;
	}

	.logo__leak {
		padding: 2px 6px;
	}
}

.nav-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--tap);
	height: var(--tap);
	padding: 0;
	border: 2px solid var(--text);
	background: none;
	color: var(--text);
	cursor: pointer;
}

.nav-toggle__icon--close,
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close {
	display: block;
}

/* Bez JS nie ma hamburgera, a menu jest zawsze widoczne. */
html:not(.js) .nav-toggle {
	display: none;
}

.site-menu {
	flex-basis: 100%;
	margin-inline: calc(var(--gutter) * -1);
	padding: 12px var(--gutter) 24px;
	background: var(--surface-1);
	border-top: 2px solid var(--teal);
}

.js .site-menu {
	display: none;
}

.js .site-menu.is-open {
	display: block;
}

.site-nav__list {
	display: flex;
	flex-direction: column;
}

.site-nav__list a {
	display: block;
	padding: 14px 0;
	border-bottom: 1px solid var(--line-soft);
	font-family: var(--font-display);
	font-size: 24px;
	line-height: 1.1;
	text-decoration: none;
	text-transform: uppercase;
	color: var(--text);
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a,
.site-nav__list a[aria-current="page"] {
	color: var(--teal);
}

.btn--cta {
	display: flex;
	width: 100%;
	margin-top: 20px;
	padding: 16px;
	background: var(--brand-gradient);
	color: var(--bg);
	font-size: 14px;
}

.btn--cta:hover {
	box-shadow: 0 0 24px rgba(45, 212, 191, 0.5), 0 0 36px rgba(168, 85, 247, 0.35);
}

/* Komputer: menu poziome w jednym rzędzie z logo i przyciskiem. */
@media (min-width: 1100px) {
	.nav-toggle {
		display: none;
	}

	.site-header__inner {
		flex-wrap: nowrap;
		min-height: var(--header-h);
	}

	/* Wrapper znika z układu, a nav i przycisk stają się elementami rzędu nagłówka. */
	.site-menu,
	.js .site-menu {
		display: contents;
	}

	.site-nav__list {
		flex-direction: row;
		gap: 32px;
	}

	.site-nav__list a {
		display: flex;
		align-items: center;
		min-height: var(--tap);
		padding: 0;
		border: 0;
		font-family: var(--font-mono);
		font-size: 13px;
		font-weight: 700;
		line-height: 1;
	}

	.site-nav__list a::before {
		content: "[\00a0";
	}

	.site-nav__list a::after {
		content: "\00a0]";
	}

	.btn--cta {
		display: inline-flex;
		width: auto;
		margin-top: 0;
		padding: 12px 20px;
		border: 0;
		background: var(--text);
	}

	.btn--cta:hover {
		background: var(--brand-gradient);
	}
}

/* 7. Pasek przewijany */

.marquee {
	display: flex;
	align-items: center;
	height: var(--marquee-h);
	overflow: hidden;
	border-bottom: 1px solid var(--teal);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.marquee {
		font-size: 12px;
	}
}

.marquee__track {
	display: inline-flex;
	flex-shrink: 0;
	white-space: nowrap;
	animation: marquee-scroll 55s linear infinite;
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
	animation-play-state: paused;
}

/* Każda kopia ma co najmniej szerokość okna, żeby pętla (-50%) nie zostawiała luki na szerokich ekranach. */
.marquee__group {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-around;
	min-width: 100vw;
}

.marquee__item {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	color: var(--text);
}

.marquee__label {
	font-weight: 700;
}

.marquee__text {
	color: var(--text);
}

a.marquee__text {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	text-decoration: underline;
	text-decoration-color: var(--teal);
	text-underline-offset: 5px;
}

.marquee__sep {
	padding-inline: 14px;
	color: var(--text-sep);
}

.marquee__item--live .marquee__label {
	color: var(--live-text);
}

.marquee__item--offline .marquee__label,
.marquee__item--offline .marquee__text {
	color: var(--offline-text);
}

.marquee__item--youtube .marquee__label {
	color: var(--yt-text);
}

.marquee__item--post .marquee__label {
	color: var(--teal);
}

.marquee__item--notice .marquee__label {
	color: var(--purple-light);
}

.marquee__item--discord .marquee__label,
.marquee__item--discord .marquee__text {
	color: var(--dc-text);
	font-weight: 700;
}

a.marquee__text:hover {
	color: var(--teal);
}

.marquee__item--tagline .marquee__text {
	color: var(--text-2);
}

@keyframes marquee-scroll {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

/* 8. Stopka */

.site-footer {
	border-top: 1px solid var(--teal);
	padding-block: 24px 28px;
	font-family: var(--font-mono);
	font-size: 12px;
	text-transform: uppercase;
	color: var(--text-3);
}

.site-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.site-footer__company {
	margin: 0;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
}

.site-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
}

.site-footer a {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	color: var(--text-3);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--teal);
	text-decoration: underline;
}

@media (min-width: 1100px) {
	.site-footer {
		padding-block: 28px;
	}

	.site-footer__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* 9. Ruch ograniczony: bez przewijania i pulsowania */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}

	.marquee {
		overflow-x: auto;
	}
}

/* 10. Baner zgody na treści zewnętrzne */

.consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 60;
	border-top: 2px solid var(--teal);
	background: var(--surface-1);
	box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
}

.consent[hidden] {
	display: none;
}

.consent__inner {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-block: 18px;
}

.consent__title {
	margin: 0 0 6px;
	font-family: var(--font-display);
	font-size: 16px;
	text-transform: uppercase;
}

.consent__text p {
	margin: 0;
	color: var(--text-2);
	font-size: 14px;
	line-height: 1.55;
}

.consent__text .consent__title {
	color: var(--text);
	font-size: 16px;
}

.consent__text a {
	color: var(--teal);
}

.consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.consent__actions .btn {
	flex: 1 1 160px;
}

@media (min-width: 1100px) {
	.consent__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 40px;
	}

	.consent__actions {
		flex: 0 0 auto;
		flex-wrap: nowrap;
	}
}

.site-footer__cookies {
	display: inline-flex;
	align-items: center;
	min-height: var(--tap);
	padding: 0;
	border: 0;
	background: none;
	color: var(--text-3);
	font-family: inherit;
	font-size: inherit;
	text-transform: inherit;
	cursor: pointer;
}

.site-footer__cookies:hover {
	color: var(--teal);
	text-decoration: underline;
}
