/* Widget Testimonial (TICKET-066) — layout kutipan, kartu sorotan, sorotan + kartu kecil, masonry. */

.akn-tm {
	--akn-tm-ink: #1A1F1D;
	--akn-tm-muted: #7A847F;
	--akn-tm-em: #8CC63F;
	--akn-tm-star: #C0573A;
	--akn-tm-qicon: #C9A27A;
	--akn-tm-dark: #1F2A26;
	--akn-tm-accent: #B65C3E;
	--akn-tm-ring: #C9A27A;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: clip;
}
.akn-tm *,
.akn-tm *::before,
.akn-tm *::after { box-sizing: border-box; }
.akn-tm--empty { padding: 32px; text-align: center; color: var(--akn-tm-muted); border: 1px dashed #D8DEDB; }

@property --akn-tm-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---------- Isi bersama ---------- */
.akn-tm .akn-tm__quote { margin: 0; font-size: 18px; line-height: 1.55; font-weight: 400; overflow-wrap: anywhere; }
.akn-tm .akn-tm__quote em { font-style: italic; color: var(--akn-tm-em); }
.akn-tm .akn-tm__name { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.akn-tm .akn-tm__sub { display: block; font-size: 14px; line-height: 1.3; opacity: .7; }
.akn-tm .akn-tm__stars { display: inline-flex; gap: 4px; color: var(--akn-tm-star); }
.akn-tm .akn-tm__stars .is-off { opacity: .25; }
.akn-tm .akn-tm__qicon { display: inline-flex; color: var(--akn-tm-qicon); }
.akn-tm .akn-tm__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	color: rgba(255, 255, 255, .85);
	border-radius: 50%;
}
.akn-tm .akn-tm__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.akn-tm .akn-tm__by { display: flex; align-items: center; gap: 14px; min-width: 0; }
.akn-tm .akn-tm__person { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Kartu */
.akn-tm .akn-tm__card {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 28px;
	color: var(--akn-tm-ink);
	min-width: 0;
	background: #fff;
	border-radius: 24px;
}
.akn-tm .akn-tm__card .akn-tm__sub { color: var(--akn-tm-muted); opacity: 1; }
.akn-tm .akn-tm__card.is-dark,
.akn-tm .akn-tm__card.is-feature { color: #fff; background: var(--akn-tm-dark); }
.akn-tm .akn-tm__card.is-accent { color: #fff; background: var(--akn-tm-accent); }
.akn-tm .akn-tm__card.is-dark .akn-tm__sub,
.akn-tm .akn-tm__card.is-feature .akn-tm__sub,
.akn-tm .akn-tm__card.is-accent .akn-tm__sub { color: rgba(255, 255, 255, .7); }
.akn-tm .akn-tm__card.is-dark .akn-tm__stars,
.akn-tm .akn-tm__card.is-accent .akn-tm__stars { color: #F6D58B; }

/* ============ Kutipan layar penuh ============ */
.akn-tm--quote { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.akn-tm--quote .akn-tm__stage { display: grid; width: 100%; max-width: 980px; }
.akn-tm--quote .akn-tm__slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	margin: 0;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .4s ease, transform .4s ease;
	pointer-events: none;
}
.akn-tm--quote .akn-tm__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.akn-tm--quote .akn-tm__quote { font-size: 44px; line-height: 1.2; letter-spacing: -.01em; }
.akn-tm--quote .akn-tm__by { color: inherit; opacity: .8; font-size: 15px; }
.akn-tm--quote .akn-tm__by .akn-tm__sub { display: inline; opacity: 1; }
.akn-tm--quote .akn-tm__by .akn-tm__name { display: inline; font-weight: 500; }

/* Pemilih satu baris; kalau tidak cukup lebar jadi geser horizontal + panah. */
.akn-tm .akn-tm__picks-wrap { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; max-width: 100%; margin-top: 12px; }
.akn-tm .akn-tm__picks {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	flex-wrap: nowrap;
	gap: 12px;
	min-width: 0;
	padding: 6px 4px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.akn-tm .akn-tm__picks::-webkit-scrollbar { display: none; }
.akn-tm .akn-tm__picks > .akn-tm__pick { flex: 0 0 auto; scroll-snap-align: center; }
.akn-tm .akn-tm__picks > .akn-tm__pick:first-child { margin-left: auto; }
.akn-tm .akn-tm__picks > .akn-tm__pick:last-child { margin-right: auto; }
.akn-tm .akn-tm__arrow {
	appearance: none;
	-webkit-appearance: none;
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	color: inherit;
	background: rgba(127, 127, 127, .12);
	border: 0;
	border-radius: 50%;
	box-shadow: none;
	cursor: pointer;
	transition: opacity .2s ease, background .2s ease;
}
.akn-tm .akn-tm__arrow:hover,
.akn-tm .akn-tm__arrow:focus { color: inherit; background: rgba(127, 127, 127, .22); outline: none; box-shadow: none; }
.akn-tm .akn-tm__arrow:focus-visible { outline: 2px solid var(--akn-tm-star); outline-offset: 2px; }
.akn-tm .akn-tm__picks-wrap.has-overflow .akn-tm__arrow { display: inline-flex; }
.akn-tm .akn-tm__arrow.is-disabled { opacity: .3; pointer-events: none; }
.akn-tm .akn-tm__pick {
	position: relative;
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 10px 24px 10px 10px;
	font: inherit;
	text-align: left;
	color: inherit;
	background: rgba(127, 127, 127, .08);
	border: 1.5px solid transparent;
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
	white-space: normal;
	opacity: .55;
	transition: opacity .2s ease, border-color .2s ease;
}
.akn-tm .akn-tm__pick:hover,
.akn-tm .akn-tm__pick:focus { color: inherit; background: rgba(127, 127, 127, .12); outline: none; box-shadow: none; opacity: .85; }
.akn-tm .akn-tm__pick:focus-visible { outline: 2px solid var(--akn-tm-star); outline-offset: 3px; }
.akn-tm .akn-tm__pick.is-active { opacity: 1; border-color: rgba(201, 162, 122, .7); }
.akn-tm .akn-tm__pick-text { display: flex; flex-direction: column; gap: 2px; }
.akn-tm .akn-tm__pick .akn-tm__name { font-size: 16px; }
.akn-tm .akn-tm__pick .akn-tm__sub { font-size: 14px; }

/* ============ Kartu sorotan + kotak huruf ============ */
.akn-tm--card { display: flex; flex-direction: column; gap: 24px; }
.akn-tm--card .akn-tm__card.is-feature { display: grid; gap: 20px; padding: 40px; min-height: 360px; border-radius: 32px; }
.akn-tm--card .akn-tm__slides { display: grid; align-self: center; }
.akn-tm--card .akn-tm__slide {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 22px;
	margin: 0;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .4s ease, transform .4s ease;
	pointer-events: none;
}
.akn-tm--card .akn-tm__slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.akn-tm--card .akn-tm__quote { font-size: 32px; line-height: 1.25; }
.akn-tm--card .akn-tm__sub { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.akn-tm .akn-tm__picks--tiles { gap: 10px; }
.akn-tm .akn-tm__picks--tiles > .akn-tm__pick:first-child { margin-left: 0; }
.akn-tm .akn-tm__picks-wrap:has(.akn-tm__picks--tiles) { margin-top: 0; }
.akn-tm .akn-tm__picks--tiles .akn-tm__pick { padding: 0; background: transparent; border-radius: 16px; }
.akn-tm .akn-tm__picks--tiles .akn-tm__pick .akn-tm__avatar { width: 64px; height: 64px; font-size: 22px; border-radius: 14px; }
.akn-tm .akn-tm__picks--tiles .akn-tm__pick.is-active { border-color: currentColor; }

/* ============ Sorotan + kartu kecil ============ */
.akn-tm--featured .akn-tm__featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.akn-tm--featured .akn-tm__card.is-feature { justify-content: space-between; gap: 28px; padding: 44px; border-radius: 32px; }
.akn-tm--featured .akn-tm__card.is-feature .akn-tm__quote { font-size: 32px; line-height: 1.3; }
.akn-tm--featured .akn-tm__side { display: flex; flex-direction: column; gap: 20px; }
.akn-tm--featured .akn-tm__side .akn-tm__card { flex: 1 1 0; justify-content: space-between; }

/* ============ Masonry ============ */
.akn-tm--masonry .akn-tm__masonry { column-count: 3; column-gap: 20px; }
.akn-tm--masonry .akn-tm__card { display: inline-flex; width: 100%; margin-bottom: 20px; break-inside: avoid; }

/* ============ Responsif ============ */
@media (max-width: 1024px) {
	.akn-tm--quote .akn-tm__quote { font-size: 34px; }
	.akn-tm--featured .akn-tm__featured { grid-template-columns: 1fr; }
	.akn-tm--card .akn-tm__card.is-feature { padding: 32px; }
	.akn-tm--card .akn-tm__quote,
	.akn-tm--featured .akn-tm__card.is-feature .akn-tm__quote { font-size: 26px; }
}
@media (max-width: 767px) {
	.akn-tm--quote .akn-tm__quote { font-size: 24px; }
	.akn-tm .akn-tm__picks { gap: 8px; }
	.akn-tm .akn-tm__arrow { width: 32px; height: 32px; }
	.akn-tm .akn-tm__pick { padding: 8px 16px 8px 8px; gap: 10px; }
	.akn-tm .akn-tm__pick-text .akn-tm__sub { display: none; }
	.akn-tm--card .akn-tm__card.is-feature,
	.akn-tm--featured .akn-tm__card.is-feature { padding: 24px; min-height: 0; }
	.akn-tm--card .akn-tm__quote,
	.akn-tm--featured .akn-tm__card.is-feature .akn-tm__quote { font-size: 21px; }
	.akn-tm .akn-tm__card { padding: 22px; }
	.akn-tm .akn-tm__picks--tiles .akn-tm__pick .akn-tm__avatar { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
	.akn-tm .akn-tm__slide { transition: none; }
}

/* Putar otomatis: cahaya berputar mengitari border pemilih aktif selama jeda, lalu pindah. */
.akn-tm[data-autoplay] .akn-tm__pick.is-active::after {
	content: "";
	position: absolute;
	inset: -2px;
	padding: 2px;
	border-radius: inherit;
	/* Komet: kepala terang di sudut aktif, ekor memudar di belakangnya (searah jarum jam). */
	background: conic-gradient(from var(--akn-tm-angle), transparent 0deg, transparent 230deg, color-mix(in srgb, var(--akn-tm-ring) 45%, transparent) 320deg, var(--akn-tm-ring) 360deg);
	filter: drop-shadow(0 0 5px var(--akn-tm-ring)) drop-shadow(0 0 10px var(--akn-tm-ring));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
	mask-composite: exclude;
	pointer-events: none;
	animation: akn-tm-sweep var(--akn-tm-int, 6s) linear forwards;
}
.akn-tm[data-autoplay]:hover .akn-tm__pick.is-active::after { animation-play-state: paused; }
@keyframes akn-tm-sweep { to { --akn-tm-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
	.akn-tm[data-autoplay] .akn-tm__pick.is-active::after { animation: none; background: var(--akn-tm-ring); filter: none; opacity: .6; }
}
