/* ============================================================================
   FINOVAI · Content widgets (Phase 3a): Speakers, Agenda, Sponsors.
   Loaded on-demand via Elementor style_depends. Token-driven.
   ============================================================================ */

/* ---- Carousel (shared) --------------------------------------------------- */
.fv-carousel { position: relative; }
.fv-carousel__viewport { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding-bottom: .5rem; scrollbar-width: none; }
.fv-carousel__viewport::-webkit-scrollbar { display: none; }
.fv-carousel__viewport > * { scroll-snap-align: start; flex: 0 0 clamp(230px, calc(100% / var(--sp-cols, 4) - 1rem), 320px); }
.fv-carousel__nav { position: absolute; top: -3.6rem; right: 0; display: flex; gap: .5rem; }
.fv-carousel__btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--fv-border); background: var(--fv-bg); color: var(--fv-fg); cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s, border-color .25s, opacity .25s; }
.fv-carousel__btn:hover { background: var(--fv-accent); color: #fff; border-color: var(--fv-accent); }
.fv-carousel__btn[disabled] { opacity: .35; cursor: default; }
.fv-carousel__btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 600px) { .fv-carousel__nav { display: none; } }

/* ---- Speakers ------------------------------------------------------------ */
.fv-speakers { display: grid; grid-template-columns: repeat(var(--sp-cols, 4), 1fr); gap: 1.8rem 1.4rem; }

/* ---- Speaker card -------------------------------------------------------
   Shares the Summit homepage design: portrait on top, text beneath. On hover
   a violet wash rises from the foot of the image, the social badges fade up
   from the lower-left, and the corner arrow swings from diagonal to level.

   Token-driven rather than hardcoded, so the card inherits any palette
   override from the widget's Style tab and reads correctly on both light and
   dark sections.
   ------------------------------------------------------------------------ */
.fv-spk {
	--spk-violet: #7C3AED;
	--spk-violet-deep: #6D28D9;
	position: relative;
	background: none;
	border: 0;
	border-radius: 0;
	overflow: visible;
	aspect-ratio: auto;
}

.fv-spk--clickable { cursor: pointer; }

.fv-spk__media {
	position: relative;
	border-radius: var(--fv-radius);
	overflow: hidden;
	/* Matches the 1000x1060 source portraits, which carry the company logo in
	   a strip at the foot of the image — a taller crop cuts it off. */
	aspect-ratio: 1000 / 1060;
	background: var(--fv-surface);
	isolation: isolate;
}

.fv-spk__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s var(--fv-ease);
}

.fv-spk:hover .fv-spk__img,
.fv-spk:focus-within .fv-spk__img { transform: scale(1.04); }

.fv-spk__ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-family: var(--fv-font-display);
	font-weight: 700;
	font-size: 3.2rem;
	color: color-mix(in srgb, var(--fv-accent) 45%, var(--fv-surface));
}

/* multiply keeps the portrait legible under the wash instead of flattening it
   to a solid block of colour. */
.fv-spk__veil {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: 0;
	background: linear-gradient(
		180deg,
		rgba(124, 58, 237, 0) 0%,
		rgba(124, 58, 237, .30) 32%,
		rgba(124, 58, 237, .72) 62%,
		var(--spk-violet-deep) 100%
	);
	mix-blend-mode: multiply;
	transition: opacity .45s var(--fv-ease);
}

.fv-spk:hover .fv-spk__veil,
.fv-spk:focus-within .fv-spk__veil { opacity: 1; }

/* Social badges */
.fv-spk__socials {
	position: absolute;
	z-index: 3;
	left: .9rem;
	bottom: .9rem;
	display: flex;
	gap: .4rem;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .35s var(--fv-ease), transform .35s var(--fv-ease);
}

.fv-spk:hover .fv-spk__socials,
.fv-spk:focus-within .fv-spk__socials { opacity: 1; transform: translateY(0); }

.fv-spk__socials a {
	width: 30px;
	height: 30px;
	border-radius: 4px;
	display: grid;
	place-items: center;
	background: #fff;
	color: var(--spk-violet-deep);
	transition: background .25s, color .25s;
}

.fv-spk__socials a:hover,
.fv-spk__socials a:focus-visible { background: var(--fv-fg); color: var(--fv-bg); }
.fv-spk__socials svg { width: 16px; height: 16px; fill: currentColor; }

/* Text block */
.fv-spk__body { padding: 0; }

.fv-spk__role {
	font-family: var(--fv-font-mono);
	font-size: .68rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--fv-fg-soft);
	margin: 1rem 0 .3rem;
}

.fv-spk__name {
	font-family: var(--fv-font-display);
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--fv-fg);
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
}

.fv-spk__link { color: inherit; text-decoration: none; }

/* Stretched link — only present when the bio popup is off, so it never
   competes with the popup's click handler. Socials sit on a higher layer and
   stay independently clickable either way. */
.fv-spk__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: var(--fv-radius);
}

.fv-spk__link:focus-visible { outline: none; }
.fv-spk__link:focus-visible::after { outline: 2px solid var(--fv-accent); outline-offset: 3px; }

.fv-spk--clickable:focus-visible { outline: 2px solid var(--fv-accent); outline-offset: 3px; }

.fv-spk__arrow {
	width: 16px;
	height: 16px;
	flex: none;
	color: var(--fv-accent);
	transition: transform .4s var(--fv-ease), color .3s;
}

/* The resting glyph points up-right; 45deg brings it level. */
.fv-spk:hover .fv-spk__arrow,
.fv-spk:focus-within .fv-spk__arrow { transform: rotate(45deg); color: var(--spk-violet); }

.fv-spk__co { color: var(--fv-fg-soft); font-size: .82rem; margin-top: .2rem; }

.fv-spk__full { display: none; }

@media (hover: none) {
	/* No hover on touch — reveal the badges permanently rather than leaving
	   them unreachable. */
	.fv-spk__socials { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.fv-spk__img,
	.fv-spk__veil,
	.fv-spk__socials,
	.fv-spk__arrow { transition-duration: .01ms; }
	.fv-spk:hover .fv-spk__img { transform: none; }
}

@media (max-width: 900px) { .fv-speakers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fv-speakers { grid-template-columns: 1fr 1fr; } }

/* ---- Speaker modal ------------------------------------------------------- */
.fv-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.fv-modal.is-open { display: flex; }
.fv-modal__bg { position: absolute; inset: 0; background: rgba(5,7,15,.7); backdrop-filter: blur(6px); }
.fv-modal__card { position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 86vh; overflow: auto; background: var(--fv-bg); color: var(--fv-fg); border: 1px solid var(--fv-border); border-radius: var(--fv-radius-lg); padding: 2rem; }
.fv-modal__close { position: absolute; top: 1rem; right: 1rem; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--fv-border); background: transparent; color: var(--fv-fg); cursor: pointer; font-size: 20px; line-height: 1; }
.fv-modal__name { font-family: var(--fv-font-display); font-weight: 700; font-size: 1.5rem; margin-bottom: .3rem; }
.fv-modal__role { font-family: var(--fv-font-mono); font-size: .8rem; color: var(--fv-accent); margin-bottom: 1.2rem; }
.fv-modal__bio { color: var(--fv-fg-soft); line-height: 1.65; }
.fv-modal__socials { display: flex; gap: .5rem; margin-top: 1.4rem; }
.fv-modal__socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fv-border); color: var(--fv-fg); }
.fv-modal__socials a:hover { background: var(--fv-accent); color: #fff; border-color: var(--fv-accent); }
.fv-modal__socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ---- Agenda -------------------------------------------------------------- */
.fv-agenda__tabs { display: inline-flex; flex-wrap: wrap; gap: .35rem; padding: .35rem; border: 1px solid var(--fv-border); border-radius: var(--fv-radius-pill); margin-bottom: 2.4rem; background: var(--fv-surface); }
.fv-agenda__tab { font-family: var(--fv-font-display); font-weight: 600; font-size: .88rem; color: var(--fv-fg-soft); background: none; border: none; padding: .6rem 1.3rem; border-radius: var(--fv-radius-pill); cursor: pointer; transition: color .25s, background .25s; }
.fv-agenda__tab.is-active { color: var(--fv-bg); background: var(--fv-fg); }
.fv-tl { position: relative; padding-left: 1.7rem; }
.fv-tl[hidden] { display: none; }
.fv-tl::before { content: ""; position: absolute; left: 5px; top: .4rem; bottom: .4rem; width: 1px; background: linear-gradient(180deg, var(--fv-accent), var(--fv-accent-2), transparent); }
.fv-tl__row { display: grid; grid-template-columns: 130px 1fr auto; gap: 1.5rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--fv-border); position: relative; }
.fv-tl__row::before { content: ""; position: absolute; left: -1.7rem; top: 1.9rem; width: 11px; height: 11px; border-radius: 50%; background: var(--fv-bg); border: 2px solid var(--fv-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fv-accent) 10%, transparent); }
.fv-tl__time { font-family: var(--fv-font-mono); font-size: .9rem; color: var(--fv-fg); font-variant-numeric: tabular-nums; }
.fv-tl__track { font-family: var(--fv-font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fv-accent); margin-bottom: .5rem; }
.fv-tl__title { font-family: var(--fv-font-display); font-weight: 600; font-size: 1.15rem; }
.fv-tl__spk { color: var(--fv-fg-soft); font-size: .9rem; margin-top: .5rem; }
.fv-tl__room { font-family: var(--fv-font-mono); font-size: .78rem; color: var(--fv-fg-soft); border: 1px solid var(--fv-border); border-radius: 8px; padding: .4rem .8rem; white-space: nowrap; align-self: center; }
@media (max-width: 640px) { .fv-tl__row { grid-template-columns: 90px 1fr; } .fv-tl__room { display: none; } }

/* ---- Sponsors ------------------------------------------------------------ */
.fv-sponsors__tier { margin-bottom: 2.6rem; }
.fv-sponsors__tier-name { font-family: var(--fv-font-mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--fv-fg-soft); text-align: center; margin-bottom: 1.2rem; }
.fv-sponsors__grid { display: grid; grid-template-columns: repeat(var(--sp-cols, 5), 1fr); gap: 1rem; }
.fv-sponsor { display: grid; place-items: center; padding: 1.6rem; border: 1px solid var(--fv-border); border-radius: var(--fv-radius); background: var(--fv-surface); transition: border-color .3s, transform .3s; }
.fv-sponsor:hover { transform: translateY(-3px); border-color: var(--fv-accent); }
.fv-sponsor img { max-height: 54px; width: auto; object-fit: contain; }
.fv-sponsors--gray .fv-sponsor img { filter: grayscale(1); opacity: .68; transition: filter .3s, opacity .3s; }
.fv-sponsors--gray .fv-sponsor:hover img { filter: none; opacity: 1; }
.fv-sponsor__name { font-family: var(--fv-font-display); font-weight: 600; color: var(--fv-fg-soft); font-size: 1rem; }
@media (max-width: 900px) { .fv-sponsors__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .fv-sponsors__grid { grid-template-columns: 1fr 1fr; } }
