/* Eventixa event profile single page. */

.evx-page--event-profile {
	padding-block: 32px;
}

.evx-event-profile-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
	gap: 24px;
	align-items: start;
}

.evx-event-profile-page__layout.has-sessions {
	grid-template-columns: minmax(30%, 40%) minmax(0, 1fr);
	justify-content: stretch;
}

.evx-event-profile-page__profile-column,
.evx-event-profile-page__sessions-column {
	min-width: 0;
}

.evx-event-profile {
	display: grid;
	gap: 0;
	overflow: hidden;
}

.evx-event-profile__media {
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--evx-surface-soft);
}

.evx-event-profile__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.evx-event-profile__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	font-size: clamp(48px, 8vw, 96px);
	font-weight: 700;
	color: var(--evx-primary);
	background: var(--evx-primary-soft);
}

.evx-event-profile__body {
	padding: 22px;
}

.evx-event-profile__eyebrow,
.evx-event-profile-session__type {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-bottom: 8px;
	padding: 4px 9px;
	border-radius: 999px;
	background: var(--evx-primary-soft);
	color: var(--evx-primary);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.evx-event-profile__header h1 {
	margin: 0 0 8px;
	font-size: clamp(27px, 3vw, 34px);
	line-height: 1.2;
}

.evx-event-profile__designation {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 600;
	color: var(--evx-text-primary);
}

.evx-event-profile__organization {
	margin: 0;
	color: var(--evx-text-muted);
}

.evx-event-profile__summary {
	margin: 18px 0 0;
	font-size: 15px;
	line-height: 1.7;
	color: var(--evx-text-muted);
}

.evx-event-profile__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.evx-event-profile__links .evx-event-profile__social-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--evx-border);
	border-radius: 50%;
	background: var(--evx-surface);
	color: var(--evx-text-primary);
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}

.evx-event-profile__links .evx-event-profile__social-link:hover,
.evx-event-profile__links .evx-event-profile__social-link:focus-visible {
	transform: translateY(-1px);
	border-color: currentColor;
	background: var(--evx-surface);
	box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
	text-decoration: none;
}

.evx-event-profile__social-link::after {
	content: attr(data-label);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	z-index: 5;
	transform: translate(-50%, 4px);
	padding: 5px 8px;
	border-radius: 4px;
	background: var(--evx-text-primary);
	color: var(--evx-surface);
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
}

.evx-event-profile__social-link:hover::after,
.evx-event-profile__social-link:focus-visible::after {
	transform: translate(-50%, 0);
	opacity: 1;
}

.evx-event-profile__social-link svg {
	display: block;
	flex: 0 0 auto;
}

.evx-event-profile__social-link--website { color: #2563eb; }
.evx-event-profile__social-link--facebook { color: #1877f2; }
.evx-event-profile__social-link--x { color: #000; }
.evx-event-profile__social-link--instagram { color: #e4405f; }
.evx-event-profile__social-link--linkedin { color: #0a66c2; }
.evx-event-profile__social-link--youtube { color: #ff0000; }

.evx-event-profile__about {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--evx-border);
}

.evx-event-profile__about h2,
.evx-event-profile-sessions > h2 {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

.evx-event-profile__about-content {
	font-size: 14px;
	line-height: 1.7;
	color: var(--evx-text-muted);
}

.evx-event-profile__about-content > :first-child,
.evx-event-profile-session__description > :first-child {
	margin-top: 0;
}

.evx-event-profile__about-content > :last-child,
.evx-event-profile-session__description > :last-child {
	margin-bottom: 0;
}

.evx-event-profile-sessions {
	padding: 20px;
}

.evx-event-profile-sessions__list {
	display: grid;
	gap: 12px;
}

.evx-event-profile-session {
	display: grid;
	grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
	gap: 18px;
	padding: 16px;
	border: 1px solid var(--evx-border);
	border-radius: 8px;
	background: var(--evx-surface);
}

.evx-event-profile-session__meta {
	display: grid;
	align-content: start;
	gap: 8px;
	font-size: 13px;
	color: var(--evx-text-muted);
}

.evx-event-profile-session__meta span,
.evx-event-profile-session__event {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.evx-event-profile-session__meta svg,
.evx-event-profile-session__event svg {
	flex: 0 0 auto;
	color: var(--evx-primary);
}

.evx-event-profile-session__body h3 {
	margin: 0;
	font-size: 17px;
	line-height: 1.4;
}

.evx-event-profile-session__event {
	width: fit-content;
	margin-top: 7px;
	color: var(--evx-primary);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.evx-event-profile-session__event:hover,
.evx-event-profile-session__event:focus-visible {
	text-decoration: underline;
}

.evx-event-profile-session__description {
	margin-top: 12px;
	font-size: 14px;
	line-height: 1.65;
	color: var(--evx-text-muted);
}

@media (max-width: 980px) {
	.evx-event-profile-page__layout.has-sessions {
		grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
		gap: 18px;
	}

	.evx-event-profile-session {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

@media (max-width: 782px) {
	.evx-page--event-profile {
		padding-block: 24px;
	}

	.evx-event-profile-page__layout,
	.evx-event-profile-page__layout.has-sessions {
		grid-template-columns: 1fr;
	}

	.evx-event-profile {
		max-width: 520px;
		margin-inline: auto;
	}
}

@media (max-width: 480px) {
	.evx-event-profile__body,
	.evx-event-profile-sessions {
		padding: 16px;
	}

	.evx-event-profile__links .evx-event-profile__social-link {
		width: 36px;
		height: 36px;
	}
}
