/**
 * WLRE Theme - Header profile dropdown (logged-in state).
 *
 * Figma: [Header -> Logged in] 6086-86153, [Profile Dropdown] 6086-112973.
 */

.wlre-account-menu {
	position: relative;
}

.wlre-account-menu__trigger {
	display: inline-flex;
	align-items: center;
	gap: var(--wlre-space-8);
	height: var(--wlre-tap-target);
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--wlre-color-white);
	font-family: var(--wlre-font-body);
	font-weight: 700;
	font-size: var(--wlre-font-size-l);
	line-height: var(--wlre-line-height-body);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.wlre-account-menu__trigger:hover,
.wlre-account-menu.wlre-dropdown[data-open="true"] .wlre-account-menu__trigger {
	color: var(--wlre-color-accent-500);
}

.wlre-account-menu__avatar {
	width: var(--wlre-tap-target-inline);
	height: var(--wlre-tap-target-inline);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--wlre-color-accent-500);
	color: var(--wlre-color-brand-900);
	border-radius: 50%;
	font-family: var(--wlre-font-heading);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.02em;
}

.wlre-account-menu__name {
	max-width: 140px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wlre-account-menu__chevron {
	width: var(--wlre-space-24);
	height: var(--wlre-space-24);
	transition: transform 0.15s ease;
}

.wlre-account-menu.wlre-dropdown[data-open="true"] .wlre-account-menu__chevron {
	transform: rotate(180deg);
}

.wlre-account-menu__list {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 182px;
	min-width: 182px;
	background: var(--wlre-color-white);
	border-radius: var(--wlre-radius-sm);
	box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
	list-style: none;
	margin: 0;
	padding: var(--wlre-space-12) var(--wlre-space-20);
	display: none;
	z-index: 100;
}

.wlre-account-menu.wlre-dropdown[data-open="true"] .wlre-account-menu__list {
	display: block;
}

.wlre-account-menu__list a,
.wlre-account-menu__list button {
	display: block;
	width: 100%;
	text-align: start;
	padding: var(--wlre-space-12) 0;
	background: none;
	border: none;
	color: var(--wlre-color-text-900);
	font-family: var(--wlre-font-body);
	font-weight: 400;
	font-size: var(--wlre-font-size-m);
	line-height: var(--wlre-line-height-body);
	text-decoration: none;
	border-radius: 0;
	cursor: pointer;
	transition: color 0.15s ease;
}

.wlre-account-menu__list a:hover,
.wlre-account-menu__list button:hover {
	color: var(--wlre-color-brand-900);
}

.wlre-account-menu__list .wlre-account-menu__logout {
	color: var(--wlre-color-error);
}

.wlre-account-menu__list .wlre-account-menu__logout:hover {
	color: var(--wlre-color-error);
}
