/* sekcja hero */
.hero-section {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 1vw;
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1s ease, transform 1s ease;
	background-attachment: fixed;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	overflow: hidden;
	height: 25vw;
	position: relative;
	z-index: 1;
	min-height: 150px;
	background-color: var(--dominant-color);
	font-family: 'Comic Neue', sans-serif !important;
}
.hero-section.show {
	opacity: 1;
	transform: translateY(0);
}
.hero-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}
.hero-content {
	z-index: 3;
	position: absolute;
	bottom: 8vw;
}
.hero-content h1 {
	font-size: 3vw;
	margin-bottom: 0.5vw;
	padding: 1vw;
	color: white;
}
.hero-content p {
	font-size: 1.2vw;
	max-width: 60%;
	padding: 1vw;
	margin: 0 auto 1vw;
	color: white;
}

/* przycisk hero */
.start-adventure-btn {
	font-size: 1vw;
	padding: 0.8vw 2vw;
	background-color: #ff6f61;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: transform 0.3s ease, background 0.3s ease;
	animation: pulsuj 1.5s ease-in-out infinite alternate;
}
.start-adventure-btn:hover {
	transform: scale(1.1);
	background-color: #ff8f7f;
}
@keyframes pulsuj {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

/* filtry */
.filter-contener {
	width: 80%;
	display: flex;
	flex-wrap: wrap;
	margin: auto;
}
.filter-card {
	width: auto;
	margin: 10px auto;
	border-radius: 10px;
	padding: 10px 20px;
}
.filter-card-body {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* --- SORTOWANIE --- */
.filter-option.sort {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	font-size: 0.9rem;
	color: #333;
	background: #e6eef5;
	border: none;
	border-radius: 24px; /* pastylka */
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
	gap: 6px;
}

.filter-option.sort img {
	width: 18px;
	height: 18px;
}

.filter-option.sort.active {
	background: #49aba4;
	color: #fff;
}

/* --- KATEGORIE WIEKOWE --- */
.filter-option.age {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%; /* okrąg */
	background: #e6eef5;
	color: #333;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease;
	border: none;
}

.filter-option.age.active {
	background: #49aba4;
	color: #fff;
}

/* wyszukiwarka */
.search-card {
	display: flex;
	width: auto;
	min-width: 40%;
	margin: 0 auto;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.search-box {
	width: fit-content;
	height: fit-content;
	position: relative;
}
.input-search {
	height: 40px;
	width: 40px;
	border: none;
	padding: 8px;
	font-size: 15px;
	letter-spacing: 2px;
	outline: none;
	border-radius: 25px;
	transition: all 0.5s ease-in-out;
	background-color: #49aba4;
	padding-right: 30px;
	color: #fff;
}
.input-search::placeholder {
	color: rgba(255, 255, 255, 0.5);
	font-size: 16px;
	font-weight: 100;
}
.btn-search {
	width: 40px;
	height: 40px;
	border: none;
	font-size: 18px;
	outline: none;
	cursor: pointer;
	border-radius: 50%;
	position: absolute;
	right: 0;
	color: #fff;
	background: transparent;
}
.search-box.active .input-search {
	width: 300px;
	border-radius: 25px;
	background-color: #49aba4;
	border-bottom: 5px solid rgba(255, 255, 255, 0.5);
	transition: all 500ms cubic-bezier(0, 0.11, 0.35, 2);
}

/* wyniki */
#results {
	scroll-margin-top: 80px;
	padding-bottom: 30px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	width: 80%;
	margin: auto;
	justify-items: start;
}
.search-result {
	box-sizing: border-box;
	padding: 0 10px;
}
.search-result img {
	max-width: 100%;
	height: auto;
}

/* paginacja */
.pagination-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 20px 0;
	gap: 10px;
}
.pagination-btn {
	background-color: var(--dominant-color);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.pagination-btn:hover {
	background-color: #3a8f8f;
}
.pagination-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

/* 📱 mobile */
@media (max-width: 768px) {
	.hero-content h1 {
		font-size: clamp(22px, 4vw, 32px);
	}
	.hero-content p {
		font-size: clamp(18px, 3vw, 24px);
		max-width: 90%;
	}

	.filter-contener {
		flex-direction: column;
		align-items: center;
	}
	.filter-card {
		margin: 5px auto;
		padding: 10px;
	}
	.filter-option.sort span {
		display: none;
	}
	.filter-option.sort {
		width: 42px;
		height: 42px;
		border-radius: 50%; /* na mobile też wyglądają jak ikonki */
		padding: 0;
	}
	#results {
		grid-template-columns: 1fr;
	}
	.search-result button {
		margin-bottom: 20px;
	}
}
