/* ==========================================================================
   Pracovné ponuky - frontend štýly
   Farebná schéma: primárna #E11B14, sekundárna #C00802
   ========================================================================== */

.jb-scope {
	--jb-primary: #E11B14;
	--jb-secondary: #C00802;
	--jb-ink: #1B1512;
	--jb-body: #574E47;
	--jb-paper: #F7F3EE;
	--jb-card: #FFFFFF;
	--jb-tint: #FDEAE8;
	--jb-border: #ECE3DB;
	--jb-shadow: rgba(37, 15, 10, 0.10);
	--jb-shadow-strong: rgba(37, 15, 10, 0.20);
	--jb-radius: 16px;
	--jb-font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
	--jb-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.jb-scope {
	font-family: var(--jb-font-body) !important;
	color: var(--jb-body);
	line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
	.jb-scope * {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* --------------------------------------------------------------------
   Filter
   -------------------------------------------------------------------- */

.jb-scope .jb-filter-formular {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 18px;
	background: var(--jb-card);
	border: 1px solid var(--jb-border);
	border-radius: var(--jb-radius);
	padding: 22px 26px;
	margin: 0 0 32px;
	box-shadow: 0 6px 20px var(--jb-shadow);
}

.jb-scope .jb-filter-pole {
	display: flex;
	flex-direction: column;
	gap: 7px;
	min-width: 190px;
}

.jb-scope .jb-filter-pole label {
	font-family: var(--jb-font-display) !important;
	font-weight: 500 !important;
	font-style: italic !important;
	font-size: 0.82em;
	letter-spacing: .03em;
	color: var(--jb-secondary) !important;
	text-transform: uppercase;
}

.jb-scope .jb-filter-pole select {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box !important;
	height: auto !important;
	line-height: 1.4 !important;
	overflow: visible !important;
	padding: 12px 38px 12px 14px;
	border: 1.5px solid var(--jb-border) !important;
	border-radius: 10px;
	font-family: var(--jb-font-body) !important;
	font-weight: 500;
	font-size: 0.95em;
	color: var(--jb-ink) !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C00802' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	transition: border-color .18s ease, box-shadow .18s ease;
	cursor: pointer;
	box-shadow: none;
}

.jb-scope .jb-filter-pole select:hover {
	border-color: var(--jb-primary);
}

.jb-scope .jb-filter-pole select:focus {
	outline: none;
	border-color: var(--jb-primary);
	box-shadow: 0 0 0 4px var(--jb-tint);
}

.jb-scope .jb-filter-tlacidla {
	flex-direction: row;
	gap: 10px;
	min-width: auto;
}

/* --------------------------------------------------------------------
   Zoznam ponúk - mriežka kariet
   -------------------------------------------------------------------- */

.jb-scope .jb-pocet-vysledkov {
	margin: 0 0 18px;
	font-family: var(--jb-font-display) !important;
	font-weight: 500 !important;
	font-style: italic !important;
	font-size: .92em;
	color: var(--jb-body);
}

.jb-scope .jb-zoznam-ponuk {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
	gap: 26px;
	margin: 24px 0;
}

@keyframes jbFadeUp {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.jb-scope .jb-karta-ponuky {
	position: relative;
	border: 1px solid var(--jb-border);
	border-radius: var(--jb-radius);
	overflow: hidden;
	background: var(--jb-card);
	box-shadow: 0 3px 14px var(--jb-shadow);
	display: flex;
	flex-direction: column;
	transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s cubic-bezier(.2,.7,.3,1), border-color .28s ease;
	animation: jbFadeUp .5s cubic-bezier(.2,.7,.3,1) both;
}

.jb-zoznam-ponuk .jb-karta-ponuky:nth-child(1) { animation-delay: .02s; }
.jb-zoznam-ponuk .jb-karta-ponuky:nth-child(2) { animation-delay: .08s; }
.jb-zoznam-ponuk .jb-karta-ponuky:nth-child(3) { animation-delay: .14s; }
.jb-zoznam-ponuk .jb-karta-ponuky:nth-child(4) { animation-delay: .20s; }
.jb-zoznam-ponuk .jb-karta-ponuky:nth-child(5) { animation-delay: .26s; }
.jb-zoznam-ponuk .jb-karta-ponuky:nth-child(6) { animation-delay: .32s; }
.jb-zoznam-ponuk .jb-karta-ponuky:nth-child(n+7) { animation-delay: .36s; }

.jb-scope .jb-karta-ponuky::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 5px;
	height: 100%;
	background: linear-gradient(180deg, var(--jb-primary), var(--jb-secondary));
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .3s ease;
}

.jb-scope .jb-karta-ponuky:hover {
	transform: translateY(-7px);
	box-shadow: 0 20px 38px var(--jb-shadow-strong);
	border-color: transparent;
}

.jb-scope .jb-karta-ponuky:hover::before {
	transform: scaleY(1);
}

.jb-scope .jb-karta-obrazok {
	overflow: hidden;
}

.jb-scope .jb-karta-obrazok img {
	width: 100%;
	height: 170px;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.jb-scope .jb-karta-ponuky:hover .jb-karta-obrazok img {
	transform: scale(1.06);
}

.jb-scope .jb-karta-obsah {
	padding: 22px 24px 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Stuha "Nova ponuka" */

.jb-scope .jb-nova-stitok {
	position: absolute;
	top: 16px;
	right: 16px;
	background: linear-gradient(135deg, var(--jb-primary), var(--jb-secondary));
	color: #fff;
	font-family: var(--jb-font-display);
	font-weight: 700;
	font-style: italic;
	font-size: 0.72em;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
	transform: rotate(-4deg);
	box-shadow: 0 6px 14px var(--jb-shadow-strong);
	z-index: 2;
}

.jb-scope .jb-nova-stitok-riadkovy {
	position: static;
	display: inline-block;
	margin-bottom: 12px;
	transform: rotate(0deg);
}

.jb-scope .jb-karta-kategorie {
	margin-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.jb-scope .jb-badge {
	display: inline-block;
	background: var(--jb-tint) !important;
	color: var(--jb-secondary) !important;
	border: 1px solid rgba(192, 8, 2, 0.18);
	border-radius: 999px;
	padding: 4px 12px;
	font-family: var(--jb-font-display) !important;
	font-weight: 700 !important;
	font-style: italic !important;
	font-size: .74em;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.jb-scope .jb-karta-nazov {
	margin: 0 0 6px;
	font-family: var(--jb-font-display) !important;
	font-weight: 700 !important;
	font-size: 1.28em;
	line-height: 1.25;
	letter-spacing: -.01em;
}

.jb-scope .jb-karta-nazov a {
	text-decoration: none !important;
	color: var(--jb-ink) !important;
	background-image: linear-gradient(var(--jb-primary), var(--jb-primary));
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: left bottom;
	transition: background-size .25s ease;
	padding-bottom: 2px;
	font-family: var(--jb-font-display) !important;
}

.jb-scope .jb-karta-ponuky:hover .jb-karta-nazov a {
	background-size: 100% 2px;
}

.jb-scope .jb-karta-firma {
	margin: 0 0 14px;
	font-family: var(--jb-font-display) !important;
	font-weight: 500 !important;
	font-style: italic !important;
	font-size: .95em;
	color: var(--jb-secondary) !important;
}

.jb-scope .jb-karta-info {
	list-style: none;
	margin: 0 0 14px;
	padding: 14px 0 0;
	border-top: 1px dashed var(--jb-border);
	font-size: .89em;
	color: var(--jb-body);
}

.jb-scope .jb-karta-info li {
	margin-bottom: 6px;
	display: flex;
	gap: 6px;
}

.jb-scope .jb-karta-info li::before {
	content: "";
	width: 6px;
	height: 6px;
	margin-top: 6px;
	border-radius: 50%;
	background: var(--jb-primary);
	flex-shrink: 0;
}

.jb-scope .jb-karta-perex {
	color: var(--jb-body);
	font-size: .95em;
	line-height: 1.55;
	flex-grow: 1;
	margin-bottom: 18px;
}

.jb-scope .jb-prazdny-zoznam {
	padding: 26px 28px;
	background: var(--jb-card);
	border: 1px solid var(--jb-border);
	border-radius: var(--jb-radius);
	box-shadow: 0 3px 14px var(--jb-shadow);
	font-weight: 500;
}

/* --------------------------------------------------------------------
   Tlačidlá
   -------------------------------------------------------------------- */

.jb-scope .jb-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: 10px;
	text-decoration: none !important;
	font-family: var(--jb-font-display) !important;
	font-weight: 700 !important;
	font-size: .92em;
	letter-spacing: .01em;
	text-align: center;
	cursor: pointer;
	border: 2px solid transparent;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
	overflow: hidden;
	box-shadow: none;
}

.jb-scope .jb-btn-outline {
	background: #fff !important;
	color: var(--jb-secondary) !important;
	border-color: var(--jb-primary) !important;
}

.jb-scope .jb-btn-outline:hover {
	background: var(--jb-primary) !important;
	color: #fff !important;
	transform: translateY(-2px);
	box-shadow: 0 10px 20px var(--jb-shadow-strong);
}

.jb-scope .jb-btn-plny {
	background: linear-gradient(120deg, var(--jb-primary), var(--jb-secondary)) !important;
	border-color: transparent !important;
	color: #fff !important;
	box-shadow: 0 8px 20px rgba(192, 8, 2, 0.28);
}

.jb-scope .jb-btn-plny:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(192, 8, 2, 0.38);
	background: linear-gradient(120deg, var(--jb-secondary), var(--jb-primary)) !important;
	color: #fff !important;
}

.jb-scope .jb-btn-plny:active,
.jb-scope .jb-btn-outline:active {
	transform: translateY(0);
}

.jb-scope .jb-arrow {
	display: inline-block;
	transition: transform .22s ease;
}

.jb-scope .jb-btn:hover .jb-arrow {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------
   Detail pracovnej ponuky
   -------------------------------------------------------------------- */

.jb-scope .jb-detail-wrapper {
	position: relative;
	padding: 28px 28px 8px;
	background: var(--jb-card);
	border: 1px solid var(--jb-border);
	border-radius: 20px;
	box-shadow: 0 10px 32px var(--jb-shadow);
	margin-top: 10px;
}

.jb-scope .jb-detail-wrapper::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	border-radius: 20px 20px 0 0;
	background: linear-gradient(90deg, var(--jb-primary), var(--jb-secondary));
}

.jb-scope .jb-detail-header {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 14px;
	margin: 6px 0 20px;
}

.jb-scope .jb-btn-prihlasit-roh {
	flex-shrink: 0;
	margin-left: auto;
	animation: jbFadeUp .5s ease both;
}

@media (max-width: 640px) {
	.jb-scope .jb-detail-wrapper {
		padding: 22px 18px 8px;
	}
	.jb-scope .jb-detail-header {
		flex-direction: column;
	}
	.jb-scope .jb-btn-prihlasit-roh {
		align-self: stretch;
		justify-content: center;
	}
}

.jb-scope .jb-detail-kategorie {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.jb-scope .jb-detail-info {
	list-style: none;
	margin: 10px 0 26px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 12px;
}

.jb-scope .jb-detail-info li {
	background: var(--jb-paper);
	border: 1px solid var(--jb-border);
	border-radius: 12px;
	padding: 13px 16px;
	font-size: .95em;
}

.jb-scope .jb-detail-info li strong {
	display: block;
	font-family: var(--jb-font-display) !important;
	font-weight: 700 !important;
	font-style: italic !important;
	color: var(--jb-secondary) !important;
	font-size: .78em;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 4px;
}

.jb-scope .jb-detail-obsah {
	padding: 8px 0 10px;
	line-height: 1.7;
}

.jb-scope .jb-detail-spodne-cta {
	margin: 26px -28px 0;
	padding: 24px 28px;
	background: var(--jb-paper);
	border-top: 1px solid var(--jb-border);
	border-radius: 0 0 20px 20px;
	text-align: center;
}

@media (max-width: 640px) {
	.jb-scope .jb-detail-spodne-cta {
		margin: 26px -18px 0;
		padding: 20px 18px;
	}
}

/* --------------------------------------------------------------------
   Prihlasovaci formular
   -------------------------------------------------------------------- */

.jb-scope .jb-formular {
	max-width: 660px;
	margin: 24px auto;
	background: var(--jb-card);
	border: 1px solid var(--jb-border);
	border-radius: 20px;
	padding: 32px 32px 28px;
	box-shadow: 0 10px 32px var(--jb-shadow);
	position: relative;
	animation: jbFadeUp .45s ease both;
}

.jb-scope .jb-formular::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 6px;
	border-radius: 20px 20px 0 0;
	background: linear-gradient(90deg, var(--jb-primary), var(--jb-secondary));
}

@media (max-width: 640px) {
	.jb-scope .jb-formular {
		padding: 26px 20px 22px;
	}
}

.jb-scope .jb-pole {
	margin-bottom: 20px;
	flex: 1;
}

.jb-scope .jb-pole-riadok {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.jb-scope .jb-pole label {
	display: block;
	font-family: var(--jb-font-display) !important;
	font-weight: 700 !important;
	font-style: italic !important;
	font-size: .84em;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--jb-secondary) !important;
	margin-bottom: 8px;
}

.jb-scope .jb-formular input[type="text"],
.jb-scope .jb-formular input[type="email"],
.jb-scope .jb-formular input[type="date"],
.jb-scope .jb-formular input[type="file"],
.jb-scope .jb-formular textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1.5px solid var(--jb-border) !important;
	border-radius: 10px;
	box-sizing: border-box;
	font-family: var(--jb-font-body) !important;
	font-size: 1em;
	color: var(--jb-ink) !important;
	background: #fff !important;
	box-shadow: none;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.jb-scope .jb-formular select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box !important;
	height: auto !important;
	line-height: 1.4 !important;
	overflow: visible !important;
	padding: 12px 38px 12px 14px;
	border: 1.5px solid var(--jb-border) !important;
	border-radius: 10px;
	font-family: var(--jb-font-body) !important;
	font-size: 1em;
	color: var(--jb-ink) !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C00802' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.jb-scope .jb-formular input:hover,
.jb-scope .jb-formular select:hover,
.jb-scope .jb-formular textarea:hover {
	border-color: #d8cfc6;
}

.jb-scope .jb-formular input:focus,
.jb-scope .jb-formular select:focus,
.jb-scope .jb-formular textarea:focus {
	outline: none;
	border-color: var(--jb-primary);
	box-shadow: 0 0 0 4px var(--jb-tint);
}

.jb-scope .jb-formular input[type="file"] {
	padding: 10px 12px;
	background: var(--jb-paper);
	border-style: dashed;
	cursor: pointer;
}

.jb-scope .jb-formular input[type="file"]:hover {
	border-color: var(--jb-primary);
	background: var(--jb-tint);
}

.jb-scope .jb-pole-checkbox label {
	font-family: var(--jb-font-body) !important;
	font-weight: 400 !important;
	font-style: normal !important;
	text-transform: none;
	color: var(--jb-body) !important;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	letter-spacing: normal;
}

.jb-scope .jb-pole-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--jb-primary);
	margin-top: 2px;
	flex-shrink: 0;
}

.jb-scope .jb-vybrana-pozicia {
	background: var(--jb-tint);
	border: 1px solid rgba(192, 8, 2, 0.18);
	padding: 14px 18px;
	border-radius: 12px;
	font-size: .95em;
}

.jb-scope .jb-vybrana-pozicia strong {
	font-family: var(--jb-font-display);
	color: var(--jb-secondary);
}

.jb-scope .jb-formular .jb-btn-plny {
	width: 100%;
	justify-content: center;
	padding: 15px 22px;
	font-size: 1em;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.jb-scope .jb-hlaska {
	max-width: 660px;
	margin: 0 auto 22px;
	padding: 16px 20px;
	border-radius: 12px;
	font-weight: 600;
	font-size: .95em;
	animation: jbFadeUp .35s ease both;
}

.jb-scope .jb-hlaska-ok {
	background: #EAF7EE;
	color: #1a7f37;
	border: 1px solid #bfe6cb;
}

.jb-scope .jb-hlaska-chyba {
	background: var(--jb-tint);
	color: var(--jb-secondary);
	border: 1px solid rgba(192, 8, 2, 0.25);
}
