/* Czcionki */
@font-face {
	font-family: 'FiraCodeNerdFont';
	src: url('../assets/fonts/FiraCodeNFP-Med.woff2') format('woff2');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

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

:root {
	--bg1: #141318;
	--bg2: #19171c;
	--text-color: #fff;
	--text-color-2: #060607;
	--accent-color: #ff91a4;
	--accent-color-2: #eee;
	--hover-color: #ff6f8e;
	--box-radius: 8px;
	--box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
	--box-shadow-hover: 0 4px 10px rgba(255, 145, 164, 0.5);
	--font-family-main: 'FiraCodeNerdFont', sans-serif;
	--disabled-color: #6c6c7a;
}

.light-theme {
	--bg1: #e0e0e0;
	--bg2: #ffffff;
	--text-color: #333;
	--text-color-2: #222;
	--disabled-color: #888;

	--accent-color: #007bff;
	--accent-color-2: #fff;
	--hover-color: #0056b3;

	--shadow-color: rgba(0, 0, 0, 0.15);
	--box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
	--box-shadow-hover: 0 4px 10px rgba(0, 123, 255, 0.3);
	--disabled-color: #888;
	--disabled-background: #b0b3b8;;
}

html,
body {
	min-height: 100vh;
	height: 100%;
}

body {
	font-family: var(--font-family-main);
	background-color: var(--bg1);
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: var(--text-color);
	line-height: 1.6;
	letter-spacing: 0.01em;
}

#global-nav {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 60px;
	padding: 0 16px;
	margin-bottom: 24px;
}

#global-nav .nav-left {
	display: flex;
	align-items: center;
	gap: 12px;
	/* Nowe! */
	flex: 0 0 auto;
}

#global-nav h1 {
	flex: 1 1 0%;
	text-align: center;
	margin: 0;
	font-size: 2.1rem;
	color: var(--accent-color);
	font-weight: 700;
	white-space: nowrap;
	letter-spacing: 0.01em;
	pointer-events: none;
	user-select: none;
}

main {
	flex: 1 0 auto;
}

.theme-button {
	font-family: var(--font-family-main);
	background-color: var(--accent-color);
	border: none;
	color: var(--text-color);
	width: 42px;
	height: 42px;
	font-size: 1.4em;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--box-shadow);
}
.theme-button:hover {
	background-color: var(--hover-color);
	transform: scale(1.1);
	box-shadow: var(--box-shadow-hover);
}
.theme-button.floating {
	position: fixed;
	top: 15px;
	right: 15px;
	z-index: 10;
}

#global-nav {
	display: flex;
	align-items: center;
	min-height: 60px;
	padding: 0 16px;
	margin-bottom: 24px;
}
#global-nav .nav-left {
	display: flex;
	align-items: center;
	gap: 12px;
}
#global-nav a,
#global-nav button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 0 20px;
	height: 42px;
	background: var(--accent-color-2);
	color: var(--text-color-2);
	border-radius: var(--box-radius);
	font-size: 1.13rem;
	box-shadow: var(--box-shadow);
	font-family: var(--font-family-main);
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.22s, color 0.18s, box-shadow 0.16s, transform 0.14s;
	outline: none;
}
#global-nav a:hover,
#global-nav button:hover,
#global-nav a:focus-visible,
#global-nav button:focus-visible {
	background: var(--accent-color);
	color: var(--text-color);
	transform: scale(1.04);
	box-shadow: var(--box-shadow-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--accent-color);
	outline-offset: 2px;
}

a {
	color: var(--accent-color);
	text-decoration: none;
	transition: color 0.2s;
}

.global-footer {
	margin-top: auto;
	text-align: center;
	padding: 20px 0;
	background-color: var(--bg2);
	color: var(--text-color);
	font-size: 0.9rem;
}

.global-footer a {
	color: var(--accent-color);
	text-decoration: none;
}

.global-footer a:hover {
	text-decoration: underline;
}

@media (max-width: 700px) {
	#global-nav {
		flex-direction: column;
		gap: 8px;
		min-height: unset;
		padding: 12px 3vw 0 3vw;
	}
	#global-nav h1 {
		font-size: 1.35rem;
		margin: 0 0 6px 0;
	}
	#global-nav .nav-left {
		justify-content: center;
		width: 100%;
		margin-bottom: 8px;
	}
	#global-nav a,
	#global-nav button {
		font-size: 1.01rem;
		height: 34px;
		padding: 0 10px;
	}
}

