/*
 * DF Citat Slideshow — styles for the "Citater - moduler" element
 * (Figma-varianten "Slideshow udtalelse"). Colours reference the "DataFacility"
 * design-system CSS variables, with hex fallbacks mirroring mock-styles.css.
 * Navigation/behaviour lives in assets/js/df-citat-slideshow.js.
 */

.df-citat-slideshow {
	--df-section-bg: var(--petrol, #0f2e33);
	--df-quote:      var(--creme, #eaf0ef);
	--df-name:       var(--creme, #eaf0ef);
	--df-company:    var(--muted-lys, #adbdbe);
	--df-bracket:    var(--orange, #f78e1e);
	--df-arrow-bg:   #2b545e;
	--df-arrow-icon: var(--creme, #eaf0ef);

	position: relative;
	display: flex;
	justify-content: center;
	padding: 88px 5%;
	background-color: var(--df-section-bg);
	overflow: hidden;
}

/* ── Farvetema: Lys (papir) ─────────────────────────────────── */
.df-citat-slideshow--lys {
	--df-section-bg: var(--papir, #f5f4f1);
	--df-quote:      var(--petrol, #0f2e33);
	--df-name:       var(--petrol, #0f2e33);
	--df-company:    var(--tekst-lys, #5c6e71);
	--df-arrow-bg:   var(--kort-moerk, #173a40);
}

/* ── Farvetema: Blå (tonet flade) ───────────────────────────── */
.df-citat-slideshow--blaa {
	--df-section-bg: var(--tonet, #e6eeed);
	--df-quote:      var(--petrol, #0f2e33);
	--df-name:       var(--petrol, #0f2e33);
	--df-company:    var(--tekst-lys, #5c6e71);
	--df-arrow-bg:   var(--kort-moerk, #173a40);
}

/* ── Farvetema: Grøn (petrol flade) — som Figma ─────────────── */
.df-citat-slideshow--groen {
	--df-section-bg: var(--petrol, #0f2e33);
	--df-quote:      var(--creme, #eaf0ef);
	--df-name:       var(--creme, #eaf0ef);
	--df-company:    var(--muted-lys, #adbdbe);
	--df-arrow-bg:   #2b545e;
	--df-arrow-icon: var(--creme, #eaf0ef);
}

/* ── Indre wrapper: afgrænser bredden, pilene sidder ved kanten ─ */
.df-citat-slideshow__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: var(--container, 1600px);
}

/* ── Bane (slides) ──────────────────────────────────────────── */
.df-citat-slideshow__viewport {
	width: 100%;
	max-width: 800px;
	overflow: hidden;
}

.df-citat-slideshow__track {
	display: flex;
	align-items: stretch;
	transition: transform .45s cubic-bezier(.4, 0, .2, 1);
	will-change: transform;
}

.df-citat-slideshow__slide {
	flex: 0 0 100%;
	min-width: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: 14px 20px;
}

/* ── Citat + hjørnemærker ───────────────────────────────────── */
.df-citat-slideshow__quotewrap {
	position: relative;
	padding: 16px 24px;
}

.df-citat-slideshow__quotewrap::before,
.df-citat-slideshow__quotewrap::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 18px;
	border: 2.6px solid var(--df-bracket);
	pointer-events: none;
}

.df-citat-slideshow__quotewrap::before {
	top: 0;
	left: 0;
	border-right: 0;
	border-bottom: 0;
}

.df-citat-slideshow__quotewrap::after {
	bottom: 0;
	right: 0;
	border-left: 0;
	border-top: 0;
}

.df-citat-slideshow__quote {
	margin: 0;
	font-family: var(--font-heading, 'Space Grotesk', sans-serif);
	font-weight: 700;
	font-size: 32px;
	line-height: 1.3;
	letter-spacing: -0.64px;
	text-align: center;
	color: var(--df-quote);
}

/* ── Afsender ───────────────────────────────────────────────── */
.df-citat-slideshow__person {
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Orange cirkel/ring om avataren. */
.df-citat-slideshow__avatarwrap {
	display: inline-flex;
	border: 2px solid var(--df-bracket);
	border-radius: 50%;
	line-height: 0;
}

.df-citat-slideshow__avatar {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.df-citat-slideshow__name {
	margin: 10px 0 0 0;
	font-family: var(--font-heading, 'Space Grotesk', sans-serif);
	font-weight: 700;
	font-size: 16px;
	text-align: center;
	color: var(--df-name);
}

.df-citat-slideshow__company {
	margin: 0;
	font-family: var(--font-body, 'Inter', sans-serif);
	font-weight: 400;
	font-size: 13px;
	text-align: center;
	color: var(--df-company);
}

/* ── Pile ───────────────────────────────────────────────────── */
.df-citat-slideshow__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background-color: var(--df-arrow-bg);
	color: var(--df-arrow-icon);
	cursor: pointer;
	transition: filter .18s ease, opacity .18s ease;
}

.df-citat-slideshow__arrow:hover {
	filter: brightness(1.12);
}

.df-citat-slideshow__arrow:focus-visible {
	outline: 2px solid var(--df-bracket);
	outline-offset: 2px;
}

.df-citat-slideshow__arrow--prev {
	left: 0;
}

.df-citat-slideshow__arrow--next {
	right: 0;
}

.df-citat-slideshow__arrow--prev .df-citat-slideshow__arrowicon {
	transform: rotate(180deg);
}

.df-citat-slideshow__arrow[disabled] {
	opacity: .35;
	cursor: default;
}

.df-citat-slideshow__arrowicon {
	display: block;
}

/* ── Responsivt ─────────────────────────────────────────────── */
@media (max-width: 991px) {
	.df-citat-slideshow {
		padding: 64px 5%;
	}
}

@media (max-width: 767px) {
	.df-citat-slideshow {
		padding: 56px 5%;
	}

	.df-citat-slideshow__quote {
		font-size: 24px;
	}

	/* På mobil navigeres med swipe (pilene ville overlappe teksten). */
	.df-citat-slideshow__arrow {
		display: none;
	}
}
