/* =========================================
   Encyklopedie profesí — InWork
   BEM CSS
   ========================================= */

/* Blok: ep */
.ep {
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 16px 24px;
	font-family: 'Rubik', sans-serif;
}

/* Header */
.ep__header {
	text-align: center;
	margin-bottom: 28px;
}

.ep__title {
	font-size: 28px;
	font-weight: 700;
	color: var(--ep-gray);
	margin: 0 0 8px;
}

.ep__subtitle {
	font-size: 15px;
	color: var(--ep-gray-light);
	margin: 0;
	max-width: 560px;
	margin-left: auto;
	margin-right: auto;
}

/* =========================================
   VYHLEDÁVÁNÍ
   ========================================= */

.ep__search {
	margin-bottom: 20px;
}

.ep__search-wrap {
	position: relative;
	max-width: 560px;
	margin: 0 auto;
}

.ep__search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--ep-gray-light);
	pointer-events: none;
}

.ep__search-input {
	width: 100%;
	padding: 13px 44px 13px 44px;
	font-size: 16px;
	font-family: 'Rubik', sans-serif;
	border: 2px solid var(--ep-border);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.2s;
	color: var(--ep-gray);
	background: var(--ep-white);
	box-sizing: border-box;
}

.ep__search-input:focus {
	border-color: var(--ep-primary);
}

.ep__search-input::placeholder {
	color: #aaa;
}

.ep__search-clear {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 22px;
	color: var(--ep-gray-light);
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
}

.ep__search-clear:hover {
	color: var(--ep-gray);
}

.ep__search-info {
	text-align: center;
	font-size: 14px;
	color: var(--ep-gray-light);
	margin-top: 10px;
}

.ep__search-info strong {
	color: var(--ep-primary);
}

/* =========================================
   FILTRACE
   ========================================= */

.ep__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 20px;
	padding: 0 8px;
}

.ep__filter {
	padding: 7px 16px;
	font-size: 13px;
	font-family: 'Rubik', sans-serif;
	font-weight: 500;
	border: 1px solid var(--ep-border);
	border-radius: 20px;
	background: var(--ep-white);
	color: var(--ep-gray-mid);
	cursor: pointer;
	transition: all 0.15s;
	white-space: nowrap;
}

.ep__filter:hover {
	border-color: var(--ep-primary);
	color: var(--ep-primary);
}

.ep__filter--active {
	background: var(--ep-primary);
	border-color: var(--ep-primary);
	color: var(--ep-white);
}

.ep__filter--active:hover {
	background: var(--ep-primary-dark);
	color: var(--ep-white);
}

/* =========================================
   CTA — odkaz na kalkulačku
   ========================================= */

.ep__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px;
	background: var(--ep-primary-light);
	border-radius: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.ep__cta-text {
	font-size: 14px;
	color: var(--ep-gray-mid);
}

.ep__cta-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--ep-primary);
	text-decoration: none;
}

.ep__cta-link:hover {
	text-decoration: underline;
}

/* =========================================
   VÝPIS — SEKTORY A PROFESE
   ========================================= */

.ep__sector {
	margin-bottom: 24px;
}

.ep__sector-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	background: var(--ep-bg);
	border: 1px solid var(--ep-border);
	border-radius: 10px 10px 0 0;
	border-bottom: 2px solid var(--ep-primary);
}

.ep__sector-icon {
	font-size: 22px;
	line-height: 1;
}

.ep__sector-name {
	font-size: 18px;
	font-weight: 700;
	color: var(--ep-gray);
	margin: 0;
	flex: 1;
}

.ep__sector-count {
	font-size: 13px;
	color: var(--ep-gray-light);
	white-space: nowrap;
}

.ep__sector-jobs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px;
	border: 1px solid var(--ep-border);
	border-top: none;
	border-radius: 0 0 10px 10px;
	background: var(--ep-white);
}

/* Jednotlivá profese — tlačítko */
.ep__job {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 14px 22px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	background: var(--ep-white);
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
	flex: 0 1 auto;
	min-width: calc(50% - 10px);
	box-sizing: border-box;
}

.ep__job:hover {
	border-color: var(--ep-primary);
	background: #f0f7ff;
	box-shadow: 0 2px 8px rgba(0, 106, 230, 0.12);
}

.ep__job-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--ep-primary);
}

.ep__job-salary {
	font-size: 14px;
	font-weight: 500;
	color: var(--ep-gray-mid);
	white-space: nowrap;
	margin-left: auto;
}

/* Zvýraznění hledaného textu */
.ep__highlight {
	background: #fef08a;
	color: inherit;
	border-radius: 2px;
	padding: 0 1px;
}

/* Prázdný stav */
.ep__empty {
	text-align: center;
	padding: 48px 16px;
}

.ep__empty-text {
	font-size: 16px;
	color: var(--ep-gray-light);
}

/* =========================================
   SEO TEXT
   ========================================= */

.ep-seo {
	max-width: 900px;
	margin: 0 auto;
	padding: 16px 16px 48px;
}

.ep-seo__title {
	font-size: 24px;
	font-weight: 700;
	color: #707070;
	margin: 0 0 20px;
	padding-top: 32px;
	border-top: 1px solid var(--ep-border);
}

.ep-seo__content p {
	font-size: 15px;
	line-height: 1.7;
	color: #858585;
	margin: 0 0 16px;
}

.ep-seo__subtitle {
	font-size: 18px;
	font-weight: 600;
	color: #707070;
	margin: 28px 0 10px;
}

.ep-seo__content strong {
	color: #707070;
}

.ep-seo__content a {
	color: var(--ep-primary);
	text-decoration: none;
}

.ep-seo__content a:hover {
	text-decoration: underline;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 600px) {
	.ep {
		padding: 20px 12px 16px;
	}

	.ep__title {
		font-size: 22px;
	}

	.ep__filters {
		gap: 6px;
	}

	.ep__filter {
		padding: 6px 12px;
		font-size: 12px;
	}

	.ep__sector-header {
		padding: 12px 14px;
	}

	.ep__sector-name {
		font-size: 16px;
	}

	.ep__sector-jobs {
		gap: 8px;
		padding: 12px;
	}

	.ep__job {
		min-width: 100%;
		padding: 12px 16px;
		gap: 12px;
	}

	.ep__job-name {
		font-size: 13px;
	}

	.ep__job-salary {
		font-size: 12px;
	}

	.ep__cta {
		flex-direction: column;
		text-align: center;
		gap: 4px;
	}
}
