/* Ticketing loaded globally via fonts.css */

:root {
	--aoe-sidebar-width: 200px;
	--aoe-sidebar-exposed: 40px;
	--aoe-indigo: #3E50B6;
}

/* Floating overlay — no body padding adjustments */

/* ═══════════════════════════════════════════════════════
   SIDEBAR SHELL — semi-ellipse floating on left edge
═══════════════════════════════════════════════════════ */
.aoe-user-sidebar {
	position: fixed;
	left: 0;
	top: 50%;
	width: var( --aoe-sidebar-width );
	height: 420px;
	z-index: 9000;
	overflow: hidden;

	/* Flat left edge, rounded right — half-ellipse */
	border-radius: 0 210px 210px 0;

	background: linear-gradient( 175deg,
		#ffffff 0%,
		#dae9f7 25%,
		#b9c8d3 50%,
		#dae9f7 75%,
		#ffffff 100%
	);

	border-right: 2px solid rgba( 185, 200, 211, 0.7 );
	box-shadow:
		4px 0 24px rgba( 185, 200, 211, 0.35 ),
		inset -1px 0 0 rgba( 218, 233, 247, 0.5 );

	/* Centre vertically; translateX handles collapse */
	transform: translateY( -50% );
	transition: transform 0.4s cubic-bezier( 0.23, 1, 0.32, 1 );
}


.aoe-user-sidebar.is-collapsed {
	/* Slide mostly off-screen, leave --aoe-sidebar-exposed px of the curved right edge */
	transform: translateY( -50% ) translateX( calc( -1 * var( --aoe-sidebar-width ) + var( --aoe-sidebar-exposed ) ) );
}

/* Hover always expands on pointer devices */
@media ( hover: hover ) {
	.aoe-user-sidebar:hover {
		transform: translateY( -50% ) translateX( 0 );
	}
}

/* ── Inner content ────────────────────────────── */
.aoe-user-sidebar__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
	height: calc( 100% - 32px );
	/* Right padding accounts for the ellipse curve narrowing */
	padding: 16px 72px 16px 20px;
	overflow: hidden;
}

/* ═══════════════════════════════════════════════════════
   PROFILE GROUP — avatar + username as one flex item
═══════════════════════════════════════════════════════ */
.aoe-user-sidebar__profile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   AVATAR
═══════════════════════════════════════════════════════ */
.aoe-user-sidebar__avatar-wrap {
	display: flex;
	justify-content: center;
}

.aoe-user-sidebar__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #b9c8d3;
	box-shadow:
		0 0 0 3px rgba( 218, 233, 247, 0.5 ),
		0 0 14px rgba( 185, 200, 211, 0.5 );
	transition: box-shadow 0.3s ease;
}

.aoe-user-sidebar__avatar:hover {
	box-shadow:
		0 0 0 3px rgba( 185, 200, 211, 0.6 ),
		0 0 24px rgba( 185, 200, 211, 0.7 );
}

.aoe-user-sidebar__avatar--guest {
	background: linear-gradient( 135deg, #fff, #dae9f7 );
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Continuum', monospace;
	font-size: 36px;
	color: #3a4d60;
	text-decoration: none;
}

/* ═══════════════════════════════════════════════════════
   USERNAME
═══════════════════════════════════════════════════════ */
.aoe-user-sidebar__username {
	text-align: center;
	width: 100%;
}

.aoe-user-sidebar__username a,
.aoe-user-sidebar__login-link {
	font-family: 'Continuum', monospace;
	font-size: 12px;
	letter-spacing: 1px;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-decoration: none;
	color: #3a4d60;
	transition: color 0.2s ease;
}

.aoe-user-sidebar__username a:hover {
	color: #7b8fc4;
}

.aoe-user-sidebar__login-link:hover {
	color: #7b8fc4;
}

/* ═══════════════════════════════════════════════════════
   ACTION LINKS — chrome gradient text, pill border
═══════════════════════════════════════════════════════ */
.aoe-user-sidebar__links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.aoe-user-sidebar__action-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 5px 10px;
	border-radius: 999px;
	font-family: 'Continuum', monospace;
	font-size: 30px;
	font-weight: bold;
	letter-spacing: 1px;
	text-decoration: none;
	white-space: nowrap;
	position: relative;
	z-index: 1;

	/* Chrome gradient text — matches top-nav links */
	background: linear-gradient( 180deg, #63bdff 0%, #ffffff 100% );
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	-webkit-text-stroke: 1.5px #1d7a93;
	paint-order: stroke fill;

	transition: filter 0.2s ease;
}

.aoe-user-sidebar__action-link::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: transparent;
	transition: background 0.2s ease;
	z-index: -1;
}

.aoe-user-sidebar__action-link:hover::before,
.aoe-user-sidebar__action-link:focus::before {
	background: rgba( 255, 255, 255, 0.35 );
}

.aoe-user-sidebar__action-link:hover,
.aoe-user-sidebar__action-link:focus {
	filter: brightness( 1.2 );
	outline: none;
}

/* ═══════════════════════════════════════════════════════
   COLLAPSE TOGGLE — visible in the exposed right-edge tab
═══════════════════════════════════════════════════════ */
.aoe-user-sidebar__toggle {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY( -50% );
	width: 20px;
	height: 44px;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: #3a4d60;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
	z-index: 1;
	-webkit-tap-highlight-color: transparent;
}

.aoe-user-sidebar__toggle:focus:not( :focus-visible ) {
	outline: none;
}

.aoe-user-sidebar__toggle:hover {
	color: var( --aoe-indigo );
}

.aoe-user-sidebar__toggle-icon {
	display: inline-block;
	transition: transform 0.4s cubic-bezier( 0.23, 1, 0.32, 1 );
	line-height: 1;
	font-size: 36px;
	font-family: 'Continuum', monospace;
}

/* When collapsed, rotate icon to point the other way */
.aoe-user-sidebar.is-collapsed .aoe-user-sidebar__toggle-icon {
	transform: rotate( 180deg );
}

/* ═══════════════════════════════════════════════════════
   TABLET (≤ 1024px) — shrink to avoid crowding content
═══════════════════════════════════════════════════════ */
@media ( max-width: 1024px ) {
	.aoe-user-sidebar {
		--aoe-sidebar-width: 170px;
		--aoe-sidebar-exposed: 32px;
		width: var( --aoe-sidebar-width );
		height: 340px;
		border-radius: 0 170px 170px 0;
	}

	.aoe-user-sidebar__inner {
		padding: 16px 56px 16px 16px;
	}

	.aoe-user-sidebar__avatar {
		width: 72px;
		height: 72px;
	}

	.aoe-user-sidebar__action-link {
		font-size: 24px;
	}
}

/* ═══════════════════════════════════════════════════════
   MOBILE (≤ 640px) — minimal footprint
═══════════════════════════════════════════════════════ */
@media ( max-width: 640px ) {
	.aoe-user-sidebar {
		--aoe-sidebar-width: 150px;
		--aoe-sidebar-exposed: 28px;
		width: var( --aoe-sidebar-width );
		height: 300px;
		border-radius: 0 150px 150px 0;
	}

	.aoe-user-sidebar__inner {
		padding: 12px 48px 12px 14px;
	}

	.aoe-user-sidebar__avatar {
		width: 60px;
		height: 60px;
	}

	.aoe-user-sidebar__action-link {
		font-size: 20px;
	}

	.aoe-user-sidebar__username a,
	.aoe-user-sidebar__login-link {
		font-size: 11px;
	}
}
