/*
 * Privatni pregled SEE ENERGY 2027 — samo dopune postojećeg sistema teme.
 * Sekcije koriste komponente iz home.css / conference-program.css / archive.css;
 * ovde su isključivo novi delovi (brojke, video redovi, govornici 5 + 5 + 5,
 * foto-reportaža) i to isključivo kroz postojeće tokene. Cilj: manje skrola,
 * posebno na telefonu.
 */

/* ---------- Traka pregleda (iznad topbara, nije deo javnog sajta) ---------- */
.ep-preview-bar {
	background: var(--c-accent);
	color: var(--c-on-accent);
}

.ep-preview-bar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	min-height: 2.25rem;
}

.ep-preview-bar .overline { color: inherit; }

.ep-preview-bar__link,
.ep-preview-bar__link:visited {
	color: inherit;
	font-size: var(--fs-overline);
	font-weight: var(--fw-semibold);
	letter-spacing: var(--ls-overline);
	text-transform: uppercase;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

@media (min-width: 783px) {
	.seeenergy-preview.admin-bar .site-header { top: 32px; }
}

@media (min-width: 601px) and (max-width: 782px) {
	.seeenergy-preview.admin-bar .site-header { top: 46px; }
}

/* ---------- Hero 2027 ---------- */
.ep-hero__date {
	margin: var(--sp-6) 0 0;
	color: var(--c-accent);
	font-size: var(--fs-price);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-heading);
	letter-spacing: var(--ls-heading);
}

.ep-hero__lead { max-width: 40rem; }
.ep-hero__lead p { margin: 0; }
.ep-hero__lead p + p,
.ep-hero__more { margin-top: var(--sp-4); }

.ep-hero__toggle {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin-top: var(--sp-4);
	padding: 0 0 var(--sp-1);
	border: 0;
	border-bottom: 1px solid var(--c-accent);
	border-radius: 0;
	background: none;
	color: var(--c-text);
	font: inherit;
	font-size: var(--fs-btn);
	font-weight: var(--fw-medium);
	letter-spacing: var(--ls-btn);
	text-transform: uppercase;
	cursor: pointer;
}

.ep-hero__toggle::after {
	content: '↓';
	color: var(--c-accent);
}

.ep-hero__toggle[aria-expanded='true']::after { content: '↑'; }

.ep-hero__toggle:focus-visible {
	outline: 2px solid var(--c-accent-blue);
	outline-offset: 4px;
}

@media (min-width: 768px) {
	.ep-hero__toggle { display: none !important; }

	.ep-hero__stats { grid-template-columns: repeat(3, 1fr); }
	.ep-hero__stats .hero__stat:nth-child(n) { border-top: 0; }
	.ep-hero__stats .hero__stat + .hero__stat { border-left: 1px solid var(--c-border); }
}

@media (max-width: 767px) {
	.ep-hero__lead.is-collapsible:not(.is-open) .ep-hero__more { display: none; }
}

/* ---------- Pregled 2026: video + brojke u jednoj sekciji ---------- */
.ep-recap__action { margin-top: var(--sp-8); }
.ep-recap .highlights__top { margin-bottom: var(--sp-14); }

.ep-figures__title { margin: 0 0 var(--sp-6); }

.ep-figures__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0;
	border-top: 1px solid var(--c-border);
	border-bottom: 1px solid var(--c-border);
}

.ep-figures__item {
	display: flex;
	flex-direction: column;
	gap: var(--sp-2);
	min-width: 0;
	padding: var(--sp-6);
	border-left: 1px solid var(--c-border);
}

.ep-figures__item:first-child { border-left: 0; }

.ep-figures__value {
	order: -1;
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	margin: 0;
	color: var(--c-text);
	font-size: var(--fs-price-lg);
	font-weight: var(--fw-bold);
	line-height: 1;
	letter-spacing: var(--ls-display);
}

.ep-figures__icon {
	flex: none;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--c-accent);
}

.ep-figures__label {
	color: var(--c-text-muted);
	font-size: var(--fs-small);
	line-height: 1.45;
}

/* ---------- Govornici 2026: tri reda 5 + 5 + 5, kompaktne kartice ---------- */
.ep-speakers-section .speakers__heading {
	align-items: center;
	margin-bottom: var(--sp-10);
}

@media (min-width: 1024px) {
	.ep-speakers .splide__list {
		grid-template-columns: repeat(10, minmax(0, 1fr));
		row-gap: var(--sp-6);
	}

	.ep-speakers .splide__slide { grid-column: span 2; }

	/* Pet u redu (15 = 5 + 5 + 5). Ako se broj promeni, nepotpun poslednji red ostaje centriran. */
	.ep-speakers .splide__slide:nth-child(5n + 1):nth-last-child(4) { grid-column: 2 / span 2; }
	.ep-speakers .splide__slide:nth-child(5n + 1):nth-last-child(3) { grid-column: 3 / span 2; }
	.ep-speakers .splide__slide:nth-child(5n + 1):nth-last-child(2) { grid-column: 4 / span 2; }
	.ep-speakers .splide__slide:nth-child(5n + 1):nth-last-child(1) { grid-column: 5 / span 2; }

	.ep-speakers .speaker-card__photo { aspect-ratio: 4 / 5; }
	.ep-speakers .speaker-card__media { margin-bottom: var(--sp-3); }
	.ep-speakers .speaker-card__logo { padding-top: var(--sp-3); }
	.ep-speakers.speakers__grid { margin-bottom: 0; }
}

/* ---------- Program 2026: video redovi u ritmu agende ---------- */
.ep-program .section-title { margin-bottom: 0; }

.ep-video-row {
	display: grid;
	grid-template-columns: 12rem minmax(0, 1fr);
	grid-template-areas:
		'thumb head'
		'thumb body';
	align-content: start;
	gap: var(--sp-2) var(--sp-6);
	padding: var(--sp-6) 0;
}

.ep-video-row__thumb {
	grid-area: thumb;
	position: relative;
	display: block;
	align-self: start;
	overflow: hidden;
	border: 1px solid var(--c-border-subtle);
	background: var(--c-bg-alt);
}

.ep-video-row__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	opacity: 0.92;
	transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}

.ep-video-row__thumb .video-facade__play {
	width: 2.5rem;
	height: 2.5rem;
	font-size: 0.75rem;
}

.ep-video-row__thumb:hover img,
.ep-video-row__thumb:focus-visible img {
	opacity: 1;
	transform: scale(1.03);
}

.ep-video-row__thumb:hover .video-facade__play,
.ep-video-row__thumb:focus-visible .video-facade__play { border-color: var(--c-accent); }

.ep-video-row__thumb:focus-visible {
	outline: 2px solid var(--c-accent-blue);
	outline-offset: 4px;
}

.ep-video-row__head {
	grid-area: head;
	min-width: 0;
}

.ep-video-row__body {
	grid-area: body;
	min-width: 0;
}

.ep-video-row .agenda__label {
	margin: 0 0 var(--sp-1);
	text-transform: uppercase;
}

.ep-video-row__title {
	margin: 0;
	font-size: var(--fs-body-lg);
	line-height: var(--lh-heading);
}

.ep-video-row__question {
	max-width: 46rem;
	margin: 0;
	color: var(--c-text-body);
	font-size: var(--fs-small);
	line-height: var(--lh-body);
}

.ep-video-row__people {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--sp-3) var(--sp-6);
	margin: var(--sp-4) 0 0;
}

.ep-video-row__people dd {
	margin: var(--sp-1) 0 0;
	color: var(--c-text);
	font-size: var(--fs-small);
	line-height: 1.5;
}

.ep-video-row__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--sp-3) var(--sp-6);
	margin-top: var(--sp-4);
}

.ep-video-row__actions .link-arrow,
.ep-sessions__extra .link-arrow {
	flex-wrap: wrap;
	row-gap: 0;
}

.ep-file-meta {
	color: var(--c-text-muted);
	font-weight: var(--fw-regular);
	letter-spacing: 0;
	text-transform: none;
}

.ep-materials[open] { flex-basis: 100%; }

.ep-materials > summary {
	list-style: none;
	cursor: pointer;
}

.ep-materials > summary::-webkit-details-marker { display: none; }

.ep-materials__toggle {
	position: relative;
	display: inline-block;
	width: 0.75rem;
	height: 0.75rem;
	color: var(--c-accent);
}

.ep-materials__toggle::before,
.ep-materials__toggle::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	background: currentColor;
	transform: translate(-50%, -50%);
}

.ep-materials__toggle::before { width: 10px; height: 2px; }
.ep-materials__toggle::after { width: 2px; height: 10px; }
.ep-materials[open] .ep-materials__toggle::after { display: none; }

.ep-materials__list {
	max-width: 40rem;
	margin: var(--sp-3) 0 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--c-border);
}

.ep-materials__list a {
	display: flex;
	justify-content: space-between;
	gap: var(--sp-4);
	padding: var(--sp-3) 0;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-text);
	font-size: var(--fs-small);
	line-height: 1.5;
	text-decoration: none;
}

.ep-materials__list a:hover span:first-child,
.ep-materials__list a:focus-visible span:first-child { color: var(--c-accent); }

.ep-materials__list .ep-file-meta { flex: none; }

/* Posebne sesije — centriran naslov, isti redovi kao paneli */
.ep-sessions { margin-top: var(--sp-14); }

.ep-program .ep-sessions__title {
	margin: 0 0 var(--sp-10);
	font-size: var(--fs-price);
	text-align: center;
}

.ep-sessions__grid .agenda__session:last-child { border-bottom: 1px solid var(--c-border-heavy); }

.ep-sessions__extra {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-3) var(--sp-6);
	margin: var(--sp-6) 0 0;
}

/* Desktop: dve kolone panela i sesija — upola manje skrola */
@media (min-width: 1024px) {
	.ep-program .agenda__day,
	.ep-sessions__grid {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--sp-10);
		border-bottom: 1px solid var(--c-border-heavy);
	}

	.ep-program .agenda__day .agenda__session:last-child,
	.ep-sessions__grid .agenda__session:last-child { border-bottom: 0; }

	.ep-video-row { grid-template-columns: 10rem minmax(0, 1fr); }
}

/* ---------- Foto-galerija 2026: foto-reportaža, bez slajdera ---------- */
.ep-gallery__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-6) var(--sp-10);
	margin-bottom: var(--sp-10);
}

.ep-gallery__head .section-title { margin: 0; }

.ep-gallery__meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--sp-4);
	flex: none;
}

.ep-gallery__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-auto-rows: clamp(7rem, 11vw, 10.5rem);
	grid-auto-flow: dense;
	gap: var(--sp-3);
}

.ep-shot {
	display: block;
	height: 100%;
	grid-column: span 3;
}

.ep-shot--m { grid-column: span 4; }

.ep-shot--xl {
	grid-column: span 6;
	grid-row: span 2;
}

.ep-shot--right { grid-column: 7 / span 6; }

.ep-gallery__grid .gallery-grid__img {
	width: 100%;
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
}

.ep-shot:focus-visible {
	outline: 2px solid var(--c-accent-blue);
	outline-offset: 3px;
}

/* ---------- Utisci (intervjui) ---------- */
.ep-interviews__heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sp-10);
	margin-bottom: var(--sp-10);
}

.ep-interviews__heading .section-title { margin: 0; }

.ep-interviews__heading .highlights__sub {
	max-width: 27rem;
	margin: 0;
}

.ep-interviews__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sp-10) var(--sp-6);
}

.ep-interview__name {
	margin: var(--sp-6) 0 0;
	color: var(--c-text);
	font-size: var(--fs-body-lg);
	font-weight: var(--fw-semibold);
	line-height: var(--lh-heading);
}

.ep-interview__role {
	margin: var(--sp-1) 0 0;
	color: var(--c-text-muted);
	font-size: var(--fs-small);
	line-height: 1.5;
}

.ep-interview .interview-card__company { margin-top: var(--sp-2); }

/* ---------- Pregled partner forme: slanje isključeno ---------- */
.ep-form-note { margin: 0 0 var(--sp-6); }

.ep-form-disabled .es-form__submit[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
	.ep-figures__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }

	.ep-figures__item:nth-child(3n + 1) { border-left: 0; }
	.ep-figures__item:nth-child(n + 4) { border-top: 1px solid var(--c-border); }

	.ep-gallery__head,
	.ep-interviews__heading {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--sp-6);
	}

	.ep-gallery__meta {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
	}
}

/* ---------- Telefon ---------- */
@media (max-width: 767px) {
	.ep-hero__date { font-size: var(--fs-body-lg); }

	.ep-recap .highlights__top { margin-bottom: var(--sp-10); }

	/* Brojke: dve kolone, poslednja preko cele širine */
	.ep-figures__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ep-figures__item { padding: var(--sp-4); }
	.ep-figures__item:nth-child(n) { border-left: 0; border-top: 1px solid var(--c-border); }
	.ep-figures__item:nth-child(-n + 2) { border-top: 0; }
	.ep-figures__item:nth-child(2n) { border-left: 1px solid var(--c-border); }
	.ep-figures__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.ep-figures__value { font-size: var(--fs-price); }
	.ep-figures__icon { width: 1.25rem; height: 1.25rem; }

	/* Govornici: postojeći carousel teme; dugme ispod naslova */
	.ep-speakers-section .speakers__heading { margin-bottom: var(--sp-8); }

	/* Video redovi: mala sličica pored naslova, detalji ispod preko cele širine */
	.ep-video-row {
		grid-template-columns: 8.5rem minmax(0, 1fr);
		grid-template-areas:
			'thumb head'
			'body body';
		gap: var(--sp-3) var(--sp-4);
		padding: var(--sp-4) 0;
	}

	.ep-video-row__title { font-size: var(--fs-body); }

	/* Sličica sa play ikonom već otvara video — tekstualni link bi samo dodao red. */
	.ep-video-row__watch { display: none; }
	.ep-video-row__thumb .video-facade__play { width: 2rem; height: 2rem; }
	.ep-video-row__people { grid-template-columns: minmax(0, 1fr); margin-top: var(--sp-3); }
	.ep-materials__list a { flex-direction: column; gap: var(--sp-1); }

	.ep-sessions { margin-top: var(--sp-10); }
	.ep-program .ep-sessions__title {
		margin-bottom: var(--sp-6);
		font-size: var(--fs-body-lg);
	}

	/* Galerija: isti ritam u 6 kolona — velike scene preko cele širine */
	.ep-gallery__head { margin-bottom: var(--sp-6); }

	.ep-gallery__grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
		grid-auto-rows: 6rem;
		gap: var(--sp-2);
	}

	.ep-shot { grid-column: span 3; }
	.ep-shot--m { grid-column: span 2; }
	.ep-shot--xl,
	.ep-shot--right { grid-column: 1 / -1; }

	.ep-interviews__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
	.ep-interview__name { margin-top: var(--sp-4); }
}
