/* ==========================================================================
   KOMPONENTY — drobčeková navigácia, karty služieb a článkov, Google
   odznak, hviezdičky, recenzie, posuvník, zoznam s fajkami, stránkovanie
   ========================================================================== */

/* ---- Odkaz cez celú kartu ---------------------------------------------- */

.enp-stretched::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

/* ---- Drobčeková navigácia ---------------------------------------------- */

.enp-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	font-family: var(--enp-font-body);
	font-size: var(--enp-fs-base);
	font-weight: var(--enp-weight-medium);
	line-height: var(--enp-lh-tight);
	color: var(--enp-navy);
}

.enp-crumbs li + li::before {
	content: "-";
	margin-inline: 6px;
	color: var(--enp-navy);
}

.enp-crumbs a {
	color: var(--enp-steel);
	transition: color var(--enp-duration) var(--enp-ease);
}

.enp-crumbs a:hover,
.enp-crumbs a:focus-visible {
	color: var(--enp-navy);
}

/* ---- Karta služby ------------------------------------------------------- */

.enp-service-card {
	justify-content: space-between;
	min-height: 100%;
}

.enp-service-card .enp-card__title {
	margin-top: 24px;
}

.enp-service-card .enp-card__title a {
	color: inherit;
}

.enp-service-card .enp-card__text {
	margin-top: 16px;
}

.enp-service-card:hover .btn--link,
.enp-service-card:focus-within .btn--link {
	color: var(--enp-navy);
}

.enp-service-card:hover .btn--link svg {
	transform: translateX(3px);
}

/* ---- Karta článku -------------------------------------------------------
   Obálka 16 : 10 (fotka alebo obálka v dizajne webu), meta, nadpis, perex.
   ------------------------------------------------------------------------- */

.enp-pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border: 2px solid var(--enp-line);
	border-radius: 24px;
	background: var(--enp-white);
	transition:
		box-shadow 0.3s var(--enp-ease),
		transform 0.3s var(--enp-ease);
}

.enp-pcard:hover {
	box-shadow: 0 14px 34px rgba(0, 53, 102, 0.1);
	transform: translateY(-3px);
}

.enp-pcard__cover {
	display: block;
	padding: 10px 10px 0;
}

.enp-pcard__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 18px 22px 22px;
}

.enp-pcard__title {
	font-family: var(--enp-font-heading);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--enp-navy);
}

.enp-pcard__title a {
	color: inherit;
}

.enp-pcard__excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	font-size: 15px;
	color: var(--enp-text);
}

.enp-pcard__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	font-family: var(--enp-font-heading);
	font-weight: 600;
	color: var(--enp-yellow-text);
}

.enp-pcard__more svg {
	width: 16px;
	height: 16px;
	transition: transform var(--enp-duration) var(--enp-ease);
}

.enp-pcard:hover .enp-pcard__more svg {
	transform: translateX(3px);
}

.enp-pcard--large .enp-pcard__title {
	font-size: clamp(22px, calc(16px + 0.8vw), 28px);
}

/* Meta: dátum · kategória · čas čítania */
.enp-pmeta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	font-size: 13px;
	color: var(--enp-steel);
}

.enp-pmeta__cat {
	position: relative;
	z-index: 2;
	font-weight: 600;
	color: var(--enp-blue);
}

.enp-pmeta__cat:hover {
	color: var(--enp-navy);
	text-decoration: underline;
}

/* Obálka */
.enp-cover {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 16px;
	background: var(--enp-navy) center / cover;
}

/* Obálka bez fotky — prechod vo farbách webu so žiarou a jemnou vlnou. */
.enp-cover--brand {
	background:
		radial-gradient(ellipse 70% 90% at 100% 0%, rgba(124, 154, 228, 0.45) 0%, rgba(124, 154, 228, 0) 70%),
		radial-gradient(ellipse 60% 70% at 0% 100%, rgba(77, 140, 198, 0.35) 0%, rgba(77, 140, 198, 0) 70%),
		linear-gradient(140deg, #0b4a87 0%, var(--enp-navy) 55%, #00264a 100%);
}

.enp-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s var(--enp-ease);
}

.enp-pcard:hover .enp-cover img {
	transform: scale(1.04);
}

.enp-cover__chip {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	padding: 5px 10px;
	border-radius: 6px;
	background: var(--enp-yellow);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--enp-navy);
}

.enp-cover__icon {
	position: absolute;
	top: 50%;
	right: -6%;
	width: 52%;
	color: var(--enp-white);
	opacity: 0.12;
	transform: translateY(-58%);
}

.enp-cover__icon svg {
	width: 100%;
	height: auto;
}

.enp-cover__icon svg rect {
	fill: none;
}

.enp-cover__title {
	position: absolute;
	right: 18px;
	bottom: 16px;
	left: 18px;
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	font-family: var(--enp-font-heading);
	font-size: clamp(17px, calc(12px + 0.6vw), 21px);
	font-weight: 600;
	line-height: 1.25;
	color: var(--enp-white);
}

.enp-hl {
	color: var(--enp-yellow);
}

/* Malá karta — náhľad vľavo */
.enp-pcard-s {
	position: relative;
	display: grid;
	grid-template-columns: 116px minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	padding: 12px;
	border: 2px solid var(--enp-line);
	border-radius: 20px;
	background: var(--enp-white);
	transition: box-shadow 0.3s var(--enp-ease);
}

.enp-pcard-s:hover {
	box-shadow: 0 10px 26px rgba(0, 53, 102, 0.08);
}

.enp-pcard-s__thumb .enp-cover {
	aspect-ratio: 4 / 3;
	border-radius: 12px;
}

.enp-pcard-s__thumb .enp-cover__chip {
	display: none;
}

.enp-pcard-s__thumb .enp-cover__icon {
	right: 18%;
	width: 64%;
	opacity: 0.2;
}

.enp-pcard-s__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.enp-pcard-s__title {
	font-family: var(--enp-font-heading);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--enp-navy);
}

.enp-pcard-s__title a {
	color: inherit;
}

.enp-pcard-s:hover .enp-pcard-s__title {
	color: var(--enp-blue);
}

/* Filter kategórií (čipy) */
.enp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
}

.enp-chips a {
	display: inline-flex;
	align-items: center;
	padding: 9px 16px;
	border: 2px solid var(--enp-line);
	border-radius: 999px;
	background: var(--enp-white);
	font-size: 14px;
	font-weight: 600;
	color: var(--enp-navy);
	transition:
		border-color var(--enp-duration) var(--enp-ease),
		background-color var(--enp-duration) var(--enp-ease);
}

.enp-chips a:hover {
	border-color: var(--enp-periwinkle);
}

.enp-chips a[aria-current="true"] {
	border-color: var(--enp-navy);
	background: var(--enp-navy);
	color: var(--enp-white);
}

.enp-chips__count {
	margin-left: 6px;
	font-weight: 500;
	opacity: 0.6;
}

/* ---- Google odznak ------------------------------------------------------ */

.enp-gbadge {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 10px 20px 10px 14px;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: var(--enp-white);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	font-family: var(--enp-font-body);
	color: #111827;
	transition: box-shadow var(--enp-duration) var(--enp-ease);
}

a.enp-gbadge:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.enp-gbadge__logo svg {
	width: 28px;
	height: 28px;
}

.enp-gbadge__body {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.enp-gbadge__label {
	font-size: 11px;
	letter-spacing: 0.02em;
	color: #6b7280;
}

.enp-gbadge__row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.enp-gbadge__row strong {
	font-size: 17px;
	font-weight: var(--enp-weight-bold);
}

.enp-gbadge__count {
	font-size: 12px;
	color: #6b7280;
}

/* ---- Hviezdičky --------------------------------------------------------- */

.enp-stars {
	display: inline-flex;
	gap: 2px;
	color: #fbbc04;
}

.enp-star svg {
	width: 14px;
	height: 14px;
}

.enp-star.is-empty {
	color: #d7dbe0;
}

/* ---- Zoznam s fajkami --------------------------------------------------- */

.enp-checklist {
	display: flex;
	flex-direction: column;
	gap: 6px;
	list-style: none;
}

.enp-checklist li {
	display: flex;
	align-items: baseline;
	gap: 9px;
	color: var(--enp-text);
}

.enp-checklist svg {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	color: var(--enp-navy);
	transform: translateY(2px);
}

/* ---- Posuvník ----------------------------------------------------------- */

.enp-slider {
	position: relative;
}

.enp-slider__track {
	display: flex;
	gap: var(--enp-slider-gap, 24px);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--enp-slider-pad, 0px);
	padding-inline: var(--enp-slider-pad, 0px);
	/* Miesto pre tieň karty pri prejdení myšou — posuvník (overflow) by ho
	   inak orezal do ostrého obdĺžnika. */
	padding-block: 20px 44px;
	margin-block: -20px -44px;
	scrollbar-width: none;
}

.enp-slider__track::-webkit-scrollbar {
	display: none;
}

.enp-slider__track:focus-visible {
	outline: 2px solid var(--enp-navy);
	outline-offset: 4px;
	border-radius: var(--enp-radius);
}

.enp-slider__slide {
	flex: 0 0 var(--enp-slide, 300px);
	min-width: 0;
	scroll-snap-align: start;
}

.enp-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid var(--enp-line);
	border-radius: 50%;
	background: var(--enp-white);
	color: var(--enp-navy);
	box-shadow: var(--enp-shadow-soft);
	transform: translateY(-50%);
	transition:
		opacity var(--enp-duration) var(--enp-ease),
		background-color var(--enp-duration) var(--enp-ease);
}

.enp-slider__arrow:hover,
.enp-slider__arrow:focus-visible {
	background: var(--enp-tint);
}

.enp-slider__arrow svg {
	width: 16px;
	height: 16px;
}

.enp-slider__arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}

.enp-slider__arrow--prev {
	left: -23px;
}

.enp-slider__arrow--next {
	right: -23px;
}

.enp-slider__progress {
	position: relative;
	width: 200px;
	max-width: 60%;
	height: 4px;
	margin: 24px auto 0;
	border-radius: 4px;
	background: var(--enp-line);
	overflow: hidden;
}

.enp-slider__progress span {
	position: absolute;
	inset: 0 auto 0 0;
	width: 30%;
	border-radius: inherit;
	background: var(--enp-navy);
	transition: left 0.15s linear, width 0.15s linear;
}

.enp-slider.is-static .enp-slider__arrow,
.enp-slider.is-static .enp-slider__progress {
	display: none;
}

/* ---- Recenzia ----------------------------------------------------------- */

.enp-review {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 40px 24px 32px;
	border-radius: var(--enp-radius-tile);
	background: var(--enp-white);
}

.enp-review__author {
	display: flex;
	align-items: center;
	gap: 15px;
}

.enp-review__photo {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	background: var(--enp-tint);
}

.enp-review__initial {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #7b5cc7;
	color: var(--enp-white);
	font-weight: var(--enp-weight-semibold);
}

.enp-review__name {
	margin-bottom: 4px;
	font-family: var(--enp-font-body);
	font-size: var(--enp-fs-base);
	font-weight: var(--enp-weight-semibold);
	line-height: var(--enp-lh-tight);
	color: var(--enp-navy);
}

.enp-review__date {
	font-size: var(--enp-fs-small);
	line-height: var(--enp-lh-tight);
	color: var(--enp-text);
}

.enp-review__body {
	margin: 24px 0 28px;
}

/* Dlhé recenzie sa skrátia na 6 riadkov — karty v rade ostanú rovnako
   vysoké bez prázdneho miesta; celý text sa dá rozbaliť. */
.enp-review__text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	color: var(--enp-text);
}

.enp-review.is-open .enp-review__text {
	display: block;
	-webkit-line-clamp: unset;
}

.enp-review__more {
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: var(--enp-fs-small);
	font-weight: 600;
	color: var(--enp-navy);
	text-decoration: underline;
	text-decoration-color: var(--enp-yellow-strong);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	cursor: pointer;
}

.enp-review__more:hover {
	color: var(--enp-blue);
}

.enp-review__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.enp-review__foot .enp-star svg {
	width: 16px;
	height: 16px;
}

.enp-review__google {
	height: 18px;
	font-family: "Product Sans", var(--enp-font-body);
	font-size: 18px;
	font-weight: var(--enp-weight-medium);
	line-height: 1;
	letter-spacing: -0.02em;
	color: #6b6b6b;
}

/* ---- Stránkovanie ------------------------------------------------------- */

.enp-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 48px;
	list-style: none;
}

.enp-pagination a,
.enp-pagination span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding-inline: 14px;
	border-radius: var(--enp-radius);
	background: var(--enp-white);
	box-shadow: inset 0 0 0 2px var(--enp-line);
	font-weight: var(--enp-weight-semibold);
	color: var(--enp-navy);
}

.enp-pagination .current {
	background: var(--enp-navy);
	box-shadow: none;
	color: var(--enp-white);
}

.enp-pagination a:hover {
	background: var(--enp-tint);
}

@media (max-width: 767px) {
	.enp-slider__arrow--prev {
		left: 4px;
	}

	.enp-slider__arrow--next {
		right: 4px;
	}
}

/* ---- Dlhý text (právne stránky, články) --------------------------------- */

.enp-prose {
	color: var(--enp-text);
	line-height: 1.6;
}

.enp-prose > * + * {
	margin-top: 1em;
}

.enp-prose h2,
.enp-prose h3,
.enp-prose h4 {
	font-family: var(--enp-font-heading);
	font-weight: 600;
	line-height: 1.25;
	color: var(--enp-navy);
}

.enp-prose h2 {
	margin-top: 1.8em;
	font-size: clamp(22px, calc(18px + 0.6vw), 28px);
}

.enp-prose h3 {
	margin-top: 1.5em;
	font-size: 20px;
}

.enp-prose h4 {
	margin-top: 1.3em;
	font-size: 18px;
}

.enp-prose > :first-child {
	margin-top: 0;
}

.enp-prose strong,
.enp-prose b {
	font-weight: 600;
	color: var(--enp-navy);
}

.enp-prose h2 b,
.enp-prose h2 strong {
	font-weight: inherit;
}

.enp-prose a {
	color: var(--enp-navy);
	text-decoration: underline;
	text-decoration-color: var(--enp-yellow-strong);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.enp-prose a:hover {
	color: var(--enp-blue);
}

/* Zoznamy v jemne žltom boxe — body sa čítajú ako samostatný celok. */
.enp-prose ul,
.enp-prose ol {
	padding: 20px 24px 20px 48px;
	border-radius: var(--enp-radius);
	background: #fff8e1;
}

.enp-prose ul {
	list-style: none;
	padding-left: 24px;
}

.enp-prose ol > li::marker {
	font-family: var(--enp-font-heading);
	font-weight: 700;
	color: var(--enp-yellow-text);
}

.enp-prose li ul,
.enp-prose li ol {
	margin-top: 0.4em;
	padding: 0 0 0 4px;
	background: none;
}

.enp-prose ul > li {
	position: relative;
	padding-left: 24px;
}

.enp-prose ul > li::before {
	content: "";
	position: absolute;
	top: 0.62em;
	left: 4px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--enp-yellow-text);
}

.enp-prose li + li {
	margin-top: 0.4em;
}

.enp-prose blockquote {
	padding: 20px 24px;
	border-left: 4px solid var(--enp-yellow-strong);
	border-radius: 0 var(--enp-radius) var(--enp-radius) 0;
	background: var(--enp-tint);
	color: var(--enp-navy);
}

.enp-prose img {
	border-radius: var(--enp-radius-card);
}

.enp-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.enp-prose th,
.enp-prose td {
	padding: 10px 14px;
	border: 1px solid var(--enp-line);
	text-align: left;
	vertical-align: top;
}

.enp-prose th {
	background: var(--enp-tint);
	font-weight: 600;
	color: var(--enp-navy);
}

@media (max-width: 767px) {
	.enp-prose table {
		display: block;
		overflow-x: auto;
	}
}

/* ---- Obsah stránky bez sekcií (editor WordPressu) ---------------------- */

.enp-pagecontent {
	max-width: calc(900px + 2 * var(--enp-gutter));
	padding-bottom: 80px;
}

.enp-pagecontent:not(:has(.wp-block-post-content > *)) {
	display: none;
}

/* Obálka karty bez textu — ikona kategórie na stred (názov je pod obálkou). */
.enp-pcard__cover .enp-cover--brand .enp-cover__icon {
	right: 50%;
	width: 34%;
	opacity: 0.2;
	transform: translate(50%, -50%);
}
