/**
 * Header profile dropdown — FSE + JoinEnel public routes.
 */

.eh-profile-menu-shell {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-shrink: 0;
}

.eh-profile-menu {
	position: relative;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.eh-profile-menu__summary {
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.28rem 0.45rem 0.28rem 0.32rem;
	margin: 0;
	cursor: pointer;
	background: #fff;
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 999px;
	box-shadow: 0 1px 2px rgba(10, 31, 30, 0.06);
	user-select: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.eh-profile-menu__summary:hover,
.eh-profile-menu[open] .eh-profile-menu__summary {
	border-color: rgba(46, 124, 126, 0.45);
	box-shadow: 0 4px 14px rgba(46, 124, 126, 0.1);
}

.eh-profile-menu__summary::-webkit-details-marker {
	display: none;
}

.eh-profile-menu__summary::marker {
	display: none;
}

.eh-profile-menu__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border-radius: 50%;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
	color: #fff;
	background: linear-gradient(135deg, #4f7df5 0%, #6b3ad6 55%, #4a1d8c 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.eh-profile-menu__avatar--icon {
	color: #5c6b69;
	background: #f1f5f4;
	box-shadow: none;
}

.eh-profile-menu--guest .eh-profile-menu__avatar--icon {
	color: #fff;
	background: linear-gradient(135deg, #4f7df5 0%, #6b3ad6 55%, #4a1d8c 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.eh-profile-menu__avatar--icon svg {
	display: block;
}

.eh-profile-menu__chevron {
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-right: 0.15rem;
	border-right: 2px solid #94a3b8;
	border-bottom: 2px solid #94a3b8;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.eh-profile-menu[open] .eh-profile-menu__chevron {
	transform: rotate(225deg) translateY(2px);
	border-color: #2e7c7e;
}

.eh-profile-menu__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.45rem);
	min-width: 14.5rem;
	padding: 0.4rem;
	background: #fff;
	border: 1px solid var(--eh-pub-border, #e2e8e0);
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(8, 19, 40, 0.12);
	z-index: 50;
	overflow: hidden;
}

.eh-profile-menu__meta {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	padding: 0.55rem 0.65rem 0.65rem;
	margin-bottom: 0.25rem;
	border-bottom: 1px solid var(--eh-pub-border, #e2e8e0);
}

.eh-profile-menu__email-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.65rem;
	height: 1.65rem;
	margin-top: 0.05rem;
	border-radius: 50%;
	color: #2e7c7e;
	background: rgba(46, 124, 126, 0.1);
}

.eh-profile-menu__email-icon svg {
	display: block;
}

.eh-profile-menu__email {
	margin: 0;
	padding-top: 0.1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.35;
	color: #374151;
	word-break: break-word;
}

.eh-profile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0.15rem 0 0;
}

.eh-profile-menu__list li {
	margin: 0;
}

.eh-profile-menu__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0.65rem;
	min-height: 2.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1;
	color: #0f172a;
	text-decoration: none;
	border-radius: 10px;
	transition: background 0.15s ease, color 0.15s ease;
}

.eh-profile-menu__link:hover {
	background: rgba(46, 124, 126, 0.08);
	color: #0d4f57;
}

.eh-profile-menu__link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: inherit;
}

.eh-profile-menu__link-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.eh-profile-menu__link-label {
	display: block;
	line-height: 1;
	padding-top: 1px;
}

.eh-profile-menu__link--danger {
	color: #9f1239;
}

.eh-profile-menu__link--danger:hover {
	color: #881337;
	background: rgba(254, 226, 226, 0.65);
}
