/* User Menu Block Styles */
.skillpulse-user-menu {
	display: inline-block;
}

.user-profile-dropdown {
	position: relative;
	display: inline-block;
}

.profile-toggle {
	background: none;
	border: none;
	cursor: pointer;
	padding: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 20px;
	transition: all 0.2s ease;
	color: var(--wp--preset--color--gray-700, #374151);
}

.profile-toggle:hover {
	background: var(--wp--preset--color--gray-100, #f3f4f6);
}

.avatar-container {
	position: relative;
	display: inline-block;
}

.user-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--wp--preset--color--white, #ffffff);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.avatar-status {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #10b981;
	border: 2px solid var(--wp--preset--color--white, #ffffff);
}

.dropdown-arrow {
	color: var(--wp--preset--color--gray-500, #6b7280);
	transition: transform 0.2s ease;
}

.profile-toggle[aria-expanded="true"] .dropdown-arrow {
	transform: rotate(180deg);
}

.dropdown-menu {
	position: absolute;
	top: 100%;
	right: 0;
	background: #ffffff;
	border: 1px solid var(--wp--preset--color--gray-200, #e5e7eb);
	border-radius: 12px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	min-width: 260px;
	z-index: 1000;
	margin-top: 8px;
	overflow: hidden;
}

.dropdown-menu[hidden] {
	display: none;
}

.dropdown-header {
	padding: 16px;
	background: var(--wp--preset--color--gray-50, #f9fafb);
	display: flex;
	align-items: center;
	gap: 12px;
}

.dropdown-avatar {
	flex-shrink: 0;
}

.dropdown-avatar img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--wp--preset--color--white, #ffffff);
}

.user-info {
	flex: 1;
	min-width: 0;
}

.user-name {
	font-weight: 600;
	color: var(--wp--preset--color--gray-900, #111827);
	font-size: 0.875rem;
	line-height: 1.25;
	margin-bottom: 2px;
}

.user-email {
	color: var(--wp--preset--color--gray-500, #6b7280);
	font-size: 0.75rem;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dropdown-divider {
	height: 1px;
	background: var(--wp--preset--color--gray-200, #e5e7eb);
}

.dropdown-items {
	padding: 8px;
}

.dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	color: var(--wp--preset--color--gray-700, #374151);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.15s ease;
	margin-bottom: 2px;
}

.dropdown-item:hover {
	background: var(--wp--preset--color--gray-100, #f3f4f6);
	color: var(--wp--preset--color--gray-900, #111827);
}

.dropdown-item svg {
	color: var(--wp--preset--color--gray-500, #6b7280);
	transition: color 0.15s ease;
}

.dropdown-item:hover svg {
	color: var(--wp--preset--color--primary, #1e3a8a);
}

.logout-item:hover {
	background: #fef2f2;
	color: #dc2626;
}

.logout-item:hover svg {
	color: #dc2626;
}

/* Login Buttons */
.login-buttons {
	display: flex;
	gap: 12px;
	align-items: center;
}

.login-btn {
	color: var(--wp--preset--color--primary, #1e3a8a);
	text-decoration: none;
	padding: 8px 16px;
	border: 1px solid var(--wp--preset--color--primary, #1e3a8a);
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
	background: transparent;
}

.login-btn:hover {
	background: var(--wp--preset--color--primary, #1e3a8a);
	color: #ffffff;
}

.signup-btn {
	background: var(--wp--preset--color--primary, #1e3a8a);
	color: #ffffff;
	text-decoration: none;
	padding: 8px 20px;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid var(--wp--preset--color--primary, #1e3a8a);
}

.signup-btn:hover {
	background: var(--wp--preset--color--secondary, #687bb1);
	border-color: var(--wp--preset--color--secondary, #687bb1);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}